Plotting parametric equations in gnuplot

3.5k Views Asked by At

I am trying to plot the following parametric equation in gnuplot:

fx(t) = -35*cos(t) + 65*cos(-.35*t)

fy(t) = -35*sin(t) - 65*sin(-.35*t)

I am not using much more code than pasted above. The result is fairly ugly.It is very angular, and obviously there must be some command to smooth it out.

I have tried to use commands like smooth cspline and smooth bezier to no avail.

How do I make a nice smooth graph of this function in gnuplot?

2

There are 2 best solutions below

1
On BEST ANSWER

Just change the samples value typing, for example,

set samples 10000

Here is the complete command:

set parametric
set xrange [-110:110]
set yrange [-110:120]
set trange [0:300]
set samples 10000
plot -35*cos(t)+65*cos(-.35*t),-35*sin(t)-65*sin(-.35*t)

enter image description here

0
On