Showing posts with label plotly. Show all posts
Showing posts with label plotly. Show all posts

Thursday, February 10, 2022

Plotly Classic Animations

TSSFL Open Discussion Forums


Tuesday, December 17, 2019

Simple Plotly Charts

<script src='https://cdn.plot.ly/plotly-latest.min.js'></script> was added in the page head.

Monday, December 16, 2019

Fun Plotly

<script src='https://cdn.plot.ly/plotly-latest.min.js'></script> was added in the page head.

Thursday, December 12, 2019

Polar & Parametric Forms of Functions


from IPython.display import HTML
HTML("""<script src='https://cdn.plot.ly/plotly-latest.min.js'></script>
<div id='test_plotly' style='width:600px;height:600px;'/>
<script>TEST=document.getElementById('test_plotly');
function f(t) {return Math.exp(Math.pow(Math.cos(0.001*t),2)+Math.sin(0.001*t))-3*Math.cos(0.004*t);};
function arx(a) {return Array(6400).fill(1+0.1*a).map((r,t) => r*f(t)*Math.cos(0.001*t));};
function ary(a) {return Array(6400).fill(1+0.1*a).map((r,t) => r*f(t)*Math.sin(0.001*t));};
function col(a) {return 'rgb('+(1-0.05*a).toString()+',0,'+(0.05*a).toString()+')';};
function plt(a) {return Plotly.plot(TEST,[{x:arx(a),y:ary(a),line:{color:col(a)},name:a.toString()}]);};
for (i=1; i<20; i++) {plt(i);}
</script>""")

Wednesday, December 11, 2019

Parametric & Polar Functions

<script src='https://cdn.plot.ly/plotly-latest.min.js'></script> was added in the page head.


Parametric Plotting with Random Coefficients 2

<script src='https://cdn.plot.ly/plotly-latest.min.js'></script> was added in the page head.


Tuesday, December 10, 2019

Functions with JavaScript & HTML & Plotly

<script type='text/javascript' src='https://cdn.plot.ly/plotly-latest.min.js'></script> was added in the page head.