X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=demo%2Fparam.dem;fp=demo%2Fparam.dem;h=334e62d2bf33b19c75ef1d31cff7f67d40d11c0c;hb=39ec1247a71f61152a4a7f502a30f06a3896c5da;hp=0000000000000000000000000000000000000000;hpb=06be459be4f5f6a7c6ff878e84f355fb2575caa8;p=gnuplot diff --git a/demo/param.dem b/demo/param.dem new file mode 100644 index 0000000..334e62d --- /dev/null +++ b/demo/param.dem @@ -0,0 +1,46 @@ +# +# $Id: param.dem,v 1.5 2003/10/17 15:02:21 mikulik Exp $ +# +# Show some of the new parametric capabilities. +# +set parametric +set dummy t +set autoscale +set samples 160 +set title "" +set key box +set key below +plot t,sin(t)/t title "t,sin(t)/t or sin(x)/x" +pause -1 "Hit return to continue" + +plot sin(t)/t,t +pause -1 "Hit return to continue" + +plot sin(t),cos(t) +pause -1 "Hit return to continue" + +set xrange [-3:3] +set yrange [-3:3] +set title "Parametric Conic Sections" +plot -t,t,cos(t),cos(2*t),2*cos(t),sin(t),-cosh(t),sinh(t) +set title "" +pause -1 "Hit return to continue" + +set xrange [-5:5] +set yrange [-5:5] +plot tan(t),t,t,tan(t) +pause -1 "Hit return to continue" + +set trange [0.00001:3] +plot t,log(t),-t,log(t),sin(t),t**2,-sin(t),t**2 +pause -1 "Hit return to continue" + +set autoscale x +set yrange [-1.5:1.5] +set trange [0.0001:10*pi] +plot sin(t)/t,cos(t)/t +pause -1 "Hit return to continue" + +# undo what we've done above +reset +