[proFit-list] parametric curves
pro Fit Support
profit at quansoft.com
Mon Oct 1 09:50:25 CDT 2012
Dear Chris
Check out the Lissajous example files that you will find under
Example Files/Programming 4 - drawing/
They basically restart to issuing a series of MoveTo/LineTo statements into the drawing window. In other words, they generate a polygon in the drawing window.
If you want to to the same as a curve within the graph, you must bracket the calls to MoveTo/LineTo within calls to OpenCurve() and CloseCurve().
Hope this helps
Kurt Sutter
QuantumSoft
On 28 Sep 2012, at 2:02, Chris Lee <laserboy at fusemail.com> wrote:
> Hi All,
>
> Is there a simple way to plot a parametric curve? So, for instance:
>
> from numpy import cos, sin
> def lisajFigures(t, A, omega_a, B, omega_B):
> x = A*cos(omega_a*t)
> y = B*sin(omega_b*t)
> return x, y
>
> Now, I am not interested in x vs t or y vs t, but x vs y. I can't think of a good way to do this other than to tabulate and plot the data… Is there something better?
>
> Cheers
> Chris
>
>
>
>
> _______________________________________________
> proFit-list mailing list
> proFit-list at quantum-soft.com
> http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com
More information about the proFit-list
mailing list