Maemo "optification" was added
[gnuplot] / demo / simple.dem
1 #
2 # $Id: simple.dem,v 1.4 2006/06/30 02:17:22 sfeam Exp $
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 #
9 set key left box
10 set samples 50
11 plot [-10:10] sin(x),atan(x),cos(atan(x))
12 pause -1 "Hit return to continue"
13
14 set key right nobox
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
19 set key left box
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
31 set key bmargin center horizontal
32 plot [-5*pi:5*pi] [-5:5] real(tan(x)/atan(x)), 1/x
33 pause -1 "Hit return to continue"
34
35 set key left box
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"
46 reset
47