bobptz
1
Hi
Suppose this code:
ar=null;
ar[25]=1.8;
ar[34]=1.2;
ar[51]=2.7;
ar[89]=1.5;
ar[105]=2.1;
I want to plot a line that connects those points.
I could make a loop and use the LINEARRAY to construct a new array and then plot this.
Is there a faster, more straightforward way that I am missing?
if you need a straight line from say the first to the second point etc. then I would indeed use linearray.
if you need a best fit through these points you could use my plugin, see:
https://sites.google.com/view/contentfortrading/tools/polynomial-fit
a spline through these points then you could use:
https://sites.google.com/view/contentfortrading/tools/cubic-spline
1 Like
bobptz
3
Thank you very much Edward.
The spline is also very interesting idea.