gibuu is hosted by Hepforge, IPPP Durham
GiBUU

Changes between Initial Version and Version 1 of HowToGnuplotStacked


Ignore:
Timestamp:
Jul 25, 2008, 2:33:06 PM (16 years ago)
Author:
gallmei
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowToGnuplotStacked

    v1 v1  
     1= HOWTO: Stacked Plots with Gnuplot =
     2
     3If you want to generate stacked plots with Gnuplot like this...
     4
     5[[Image(http://gibuu.physik.uni-giessen.de/GiBUU/chrome/site/files/DummyGnuplot.png)]]
     6
     7...you find here the corresponding script:
     8
     9{{{
     10reset
     11
     12set yrange [-0.5:1.5]
     13set xrange [0:10]
     14set xtics 0,2,9
     15set ytics -0.4,0.2,1.2
     16
     17set lmargin 0
     18set bmargin 0
     19set tmargin 0
     20set rmargin 0
     21
     22
     23unset bars
     24
     25set terminal postscript  eps enhanced color 'Helvetica' 24 size 5,5
     26set output "Dummy.eps"
     27
     28set multiplot layout 3,4 scale 1,1 offset 0.5,0
     29
     30
     31
     32set format x ""
     33
     34set format y
     35set ylabel "  "
     36set label 1 "{/=18 Plot 1}" at graph 0.92, graph 0.92 right
     37plot sin(x*1) t ""
     38
     39set format y ""
     40set ylabel "  "
     41
     42set label 1 "{/=18 Plot 2}" at graph 0.92, graph 0.92 right
     43plot sin(x*2) t ""
     44
     45set label 1 "{/=18 Plot 3}" at graph 0.92, graph 0.92 right
     46plot sin(x*3) t ""
     47
     48set label 1 "{/=18 Plot 4}" at graph 0.92, graph 0.92 right
     49plot sin(x*4) t ""
     50
     51set format y
     52set ylabel "y-label"
     53set label 1 "{/=18 Plot 5}" at graph 0.92, graph 0.92 right
     54plot sin(x*5) t ""
     55     
     56set format y ""
     57set ylabel "  "
     58set label 1 "{/=18 Plot 6}" at graph 0.92, graph 0.92 right
     59plot sin(x*6) t ""
     60     
     61set label 1 "{/=18 Plot 7}" at graph 0.92, graph 0.92 right
     62plot sin(x*7) t ""
     63
     64set label 1 "{/=18 Plot 8}" at graph 0.92, graph 0.92 right
     65plot sin(x*8) t ""
     66
     67
     68set format x
     69set xlabel "  "
     70set format y
     71set ylabel "  "
     72set label 1 "{/=18 Plot 9}" at graph 0.92, graph 0.92 right
     73plot sin(x*9) t ""
     74
     75     
     76set xlabel "x-label" offset graph 0.5, 0
     77set format y ""
     78set ylabel "  "
     79set label 1 "{/=18 Plot 10}" at graph 0.92, graph 0.92 right
     80plot sin(x*10) t ""
     81
     82set xlabel "  "
     83set label 1 "{/=18 Plot 11}" at graph 0.92, graph 0.92 right
     84plot sin(x*11) t ""
     85
     86set xlabel "  "
     87set label 1 "{/=18 Plot 12}" at graph 0.92, graph 0.92 right
     88plot sin(x*12) t ""
     89
     90unset multiplot
     91
     92set output
     93set terminal x11
     94
     95}}}