67d9d0bba4041d1cc647701bcc8e2c839bd02eb7
[gnuplot] / demo / layout.dem
1 #
2 # Gnuplot version 4.1 demo of multiplot
3 # auto-layout capability
4 #
5 #
6 set multiplot layout 3, 1 title "Multiplot layout 3, 1"
7 set title "Plot 1"
8 plot sin(x)/x
9 #
10 set title "Plot 2"
11 plot 'silver.dat' using 1:2 ti 'silver.dat'
12 #
13 set style histogram columns
14 set style fill solid
15 set key autotitle column
16 set boxwidth 0.8
17 set format y "    "
18 set tics scale 0
19 set title "Plot 3"
20 plot 'immigration.dat' using 2 with histograms, \
21      '' using 7  with histograms , \
22      '' using 8  with histograms , \
23      '' using 11 with histograms 
24 #
25 unset multiplot
26 #
27 #
28 #
29 pause -1 "<cr> to continue"
30 reset
31 set multiplot layout 1,3 title "Multiplot layout 1, 3"
32 set xtics rotate
33 set bmargin 5
34 #
35 set title "Plot 1"
36 plot sin(x)/x
37 #
38 set title "Plot 2"
39 plot 'silver.dat' using 1:2 ti 'silver.dat'
40 #
41 set title "Plot 3"
42 set style histogram columns
43 set style fill solid
44 set key autotitle column
45 set boxwidth 0.8
46 set format y "    "
47 set tics scale 0
48 plot 'immigration.dat' using 2 with histograms , \
49      '' using  7 with histograms , \
50      '' using  8 with histograms , \
51      '' using 11 with histograms 
52 #
53 unset multiplot
54 #
55 #
56 #
57 #
58 pause -1 "<cr> to continue"
59 reset
60 set multiplot layout 1,3 title "Same plot with a multi-line title\nshowing adjustment of plot area\n to accommodate it"
61 set xtics rotate
62 set bmargin 5
63 #
64 set title "Plot 1"
65 plot sin(x)/x
66 #
67 set title "Plot 2"
68 plot 'silver.dat' using 1:2 ti 'silver.dat'
69 #
70 set title "Plot 3"
71 set style histogram columns
72 set style fill solid
73 set key autotitle column
74 set boxwidth 0.8
75 set format y "    "
76 set tics scale 0
77 plot 'immigration.dat' using 2 with histograms , \
78      '' using  7 with histograms , \
79      '' using  8 with histograms , \
80      '' using 11 with histograms 
81 #
82 unset multiplot
83 pause -1 "<cr> to continue"
84 reset