I am trying to plot some data with en ellipse on top in gnuplot. I want to plot the ellipse parametrically, and not using set object ellipse.
The following code will plot the data:
plot "my_file.dat" u 1:2
The following code will plot the ellipse:
x0 = 1
y0 = 2
a = 3
b = 2
f(t) = x0 + a*cos(t)
g(t) = y0 + b*sin(t)
set parametric
plot [0:2*pi] f(t),g(t)
How do I combine these plots in a single plot?
I am running gnuplot 5.2.