|
From: Thomas S. <t.s...@fz...> - 2008-10-27 13:13:43
|
> I am new to gnuplot and I need to draw an ellipse on a distribution of data. > I know the center of the ellipse and the semimajor and semiminor axis. > > Has someone some example code ? center of ellipse: xm,ym semimajor axis: a semiminor axis: b for example: xm = 5 ym = 2 a = 2 b = 1 set xrange [-1:10] set yrange [-1:5] set zeroaxis set parametric fx(t)=xm+a*cos(t) fy(t)=ym+b*sin(t) set arrow 1 from xm,ym to (xm+a),ym set arrow 2 from xm,ym to xm,(ym+b) plot fx(t),fy(t) -- View this message in context: http://www.nabble.com/Plot-an-ellipse-knowing-center-and-axis-tp20184644p20187442.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |