[BACK]Return to simple.dem CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / gnuplot / demo

Annotation of OpenXM_contrib/gnuplot/demo/simple.dem, Revision 1.1.1.2

1.1       maekawa     1: #
1.1.1.2 ! maekawa     2: # $Id: simple.dem,v 1.1.1.1.2.1 1999/10/11 13:24:20 lhecking Exp $
1.1       maekawa     3: #
                      4: # Requires data files "[123].dat" from this directory,
                      5: # so change current working directory to this directory before running.
                      6: # gnuplot> set term <term-type>
                      7: # gnuplot> load 'simple.dem'
                      8: #
1.1.1.2 ! maekawa     9: set key left box
1.1       maekawa    10: set samples 50
                     11: plot [-10:10] sin(x),atan(x),cos(atan(x))
                     12: pause -1 "Hit return to continue"
                     13:
1.1.1.2 ! maekawa    14: set key right nobox
1.1       maekawa    15: set samples 100
                     16: plot [-pi/2:pi] cos(x),-(sin(x) > sin(x+1) ? sin(x) : sin(x+1))
                     17: pause -1 "Hit return to continue"
                     18:
1.1.1.2 ! maekawa    19: set key left box
1.1       maekawa    20: set samples 200
                     21: plot [-3:5] asin(x),acos(x)
                     22: pause -1 "Hit return to continue"
                     23:
                     24: plot [-30:20] besj0(x)*0.12e1 with impulses, (x**besj0(x))-2.5 with points
                     25: pause -1 "Hit return to continue"
                     26:
                     27: set samples 400
                     28: plot [-10:10] real(sin(x)**besj0(x))
                     29: pause -1 "Hit return to continue"
                     30:
1.1.1.2 ! maekawa    31: set key outside below
1.1       maekawa    32: plot [-5*pi:5*pi] [-5:5] real(tan(x)/atan(x)), 1/x
                     33: pause -1 "Hit return to continue"
                     34:
1.1.1.2 ! maekawa    35: set key left box
1.1       maekawa    36: set autoscale
                     37: set samples 800
                     38: plot [-30:20] sin(x*20)*atan(x)
                     39: pause -1 "Hit return to continue"
                     40:
                     41: plot [-19:19] '1.dat'with impulses ,'2.dat' ,'3.dat' with lines
                     42: pause -1 "Hit return to continue"
                     43: f(x) = x/100
                     44: plot [-19:19] '1.dat'with impulses ,'2.dat' thru f(x) ,'3.dat' with lines
                     45: pause -1 "Hit return to continue"
1.1.1.2 ! maekawa    46: reset
1.1       maekawa    47:

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>