Icons are changed
[gnuplot] / demo / fillstyle.dem
1 #
2 # $Id: fillstyle.dem,v 1.3 2003/10/17 15:02:21 mikulik Exp $
3 #
4 # E A Merritt <merritt@u.washington.edu>          24-Sep-2002
5 #
6 # Demo for revised fillstyle code selected by 
7 # ./configure --enable-filledboxes --enable-relative-boxwidth
8 #
9 reset
10
11 set samples 25
12 unset xtics
13 unset ytics
14 set yrange [0:120]
15
16 set title "A demonstration of boxes with default properties"
17 plot [-10:10] 100/(1.0+x*x) title 'distribution' with boxes
18
19 pause -1 "Now draw the boxes with solid fill"
20
21 set title "A demonstration of boxes with style fill solid 1.0"
22 set style fill solid 1.0
23 replot
24
25 pause -1 "Now draw the boxes with a black border"
26
27 set title "A demonstration of boxes with style fill solid border -1"
28 set style fill solid border -1
29 replot
30
31 pause -1 "Now make the boxes a little less wide"
32
33 set title "Filled boxes of reduced width"
34 set boxwidth 0.5 
35 replot
36
37 pause -1 "And now let's try a different fill density"
38
39 set title "Filled boxes at 50% fill density"
40 set style fill solid 0.25 border
41 replot
42
43 pause -1 "Now draw the boxes with no border"
44
45 set title "A demonstration of boxes with style fill solid 0.25 noborder"
46 set style fill solid 0.25 noborder
47 replot
48
49 pause -1 "Or maybe a pattern fill, instead?"
50
51 set title "A demonstration of boxes in mono with style fill pattern"
52 set samples 11
53 set boxwidth 0.5 
54 set style fill pattern border
55 plot [-2.5:4.5] 100/(1.0+x*x) title 'pattern 0' with boxes lt -1, \
56                  80/(1.0+x*x) title 'pattern 1' with boxes lt -1, \
57                  40/(1.0+x*x) title 'pattern 2' with boxes lt -1, \
58                  20/(1.0+x*x) title 'pattern 3' with boxes lt -1
59
60 pause -1 "Finished this demo"
61
62 reset
63