X-Git-Url: http://git.maemo.org/git/?p=gnuplot;a=blobdiff_plain;f=demo%2Flayout.dem;fp=demo%2Flayout.dem;h=67d9d0bba4041d1cc647701bcc8e2c839bd02eb7;hp=0000000000000000000000000000000000000000;hb=39ec1247a71f61152a4a7f502a30f06a3896c5da;hpb=06be459be4f5f6a7c6ff878e84f355fb2575caa8 diff --git a/demo/layout.dem b/demo/layout.dem new file mode 100644 index 0000000..67d9d0b --- /dev/null +++ b/demo/layout.dem @@ -0,0 +1,84 @@ +# +# Gnuplot version 4.1 demo of multiplot +# auto-layout capability +# +# +set multiplot layout 3, 1 title "Multiplot layout 3, 1" +set title "Plot 1" +plot sin(x)/x +# +set title "Plot 2" +plot 'silver.dat' using 1:2 ti 'silver.dat' +# +set style histogram columns +set style fill solid +set key autotitle column +set boxwidth 0.8 +set format y " " +set tics scale 0 +set title "Plot 3" +plot 'immigration.dat' using 2 with histograms, \ + '' using 7 with histograms , \ + '' using 8 with histograms , \ + '' using 11 with histograms +# +unset multiplot +# +# +# +pause -1 " to continue" +reset +set multiplot layout 1,3 title "Multiplot layout 1, 3" +set xtics rotate +set bmargin 5 +# +set title "Plot 1" +plot sin(x)/x +# +set title "Plot 2" +plot 'silver.dat' using 1:2 ti 'silver.dat' +# +set title "Plot 3" +set style histogram columns +set style fill solid +set key autotitle column +set boxwidth 0.8 +set format y " " +set tics scale 0 +plot 'immigration.dat' using 2 with histograms , \ + '' using 7 with histograms , \ + '' using 8 with histograms , \ + '' using 11 with histograms +# +unset multiplot +# +# +# +# +pause -1 " to continue" +reset +set multiplot layout 1,3 title "Same plot with a multi-line title\nshowing adjustment of plot area\n to accommodate it" +set xtics rotate +set bmargin 5 +# +set title "Plot 1" +plot sin(x)/x +# +set title "Plot 2" +plot 'silver.dat' using 1:2 ti 'silver.dat' +# +set title "Plot 3" +set style histogram columns +set style fill solid +set key autotitle column +set boxwidth 0.8 +set format y " " +set tics scale 0 +plot 'immigration.dat' using 2 with histograms , \ + '' using 7 with histograms , \ + '' using 8 with histograms , \ + '' using 11 with histograms +# +unset multiplot +pause -1 " to continue" +reset