Initial release of Maemo 5 port of gnuplot
[gnuplot] / demo / steps.dem
1 #
2 # $Id: steps.dem,v 1.5 2003/10/17 15:02:21 mikulik Exp $
3 #
4 # This file will serve as the datafile used in demonstrating the 
5 # "plot with steps" option.   Here is a gnuplot input file
6 # which uses "plot with steps", inverse error function, normal
7 # distribution function, and the inverse normal distribution
8 # function.
9
10 set title "Compare steps, fsteps and histeps"
11 plot [0:12][0:13] "steps.dat" notitle with points,  \
12  "steps.dat" title 'steps' with steps, \
13  'steps.dat' title 'fsteps' with fsteps, \
14  'steps.dat' title 'histeps' with histeps
15
16 pause -1 "Hit return for demonstration of automatic histogram creation"
17 set title "Histogram built from unsorted data by 'smooth frequency'"
18 set ylabel 'counts per bin'
19 set xlabel 'bins'
20 plot 'hemisphr.dat' u (floor($1*20)):(1) smooth frequency with histeps
21 unset xlabel
22 unset ylabel
23
24 pause -1 "Hit return for normal distribution function."
25 set title "Normal Distribution Function"
26 plot [-3:3][0:1] norm(x)
27
28 pause -1 "Hit return for inverse error function."
29 set title "Inverse Error Function"
30 plot [-1:1] inverf(x)
31
32 pause -1 "Hit return for inverse normal distribution function."
33 set title "Inverse Normal Distribution Function"
34 plot [0:1] invnorm(x)
35
36 pause -1 "Press return to continue"
37 reset