| 1 | set terminal pdfcairo color enhanced size 6.5in,2.0in font "Times,17"
|
|---|
| 2 |
|
|---|
| 3 | set size 1.0, 1.0 # scale of plot area inside terminal
|
|---|
| 4 | set origin 0.0, 0.0 # bottom-left corner
|
|---|
| 5 |
|
|---|
| 6 | INDIR="build"
|
|---|
| 7 | OUTDIR="build"
|
|---|
| 8 |
|
|---|
| 9 | set macros
|
|---|
| 10 | set output OUTDIR."/plot-list-legend-rel-i-swift.pdf"
|
|---|
| 11 |
|
|---|
| 12 | set grid
|
|---|
| 13 | set nokey
|
|---|
| 14 |
|
|---|
| 15 | set logscale y (2**0.2)
|
|---|
| 16 | set yrange [0.47:2.1];
|
|---|
| 17 | set format y ""
|
|---|
| 18 | set ytics (0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.2, 1.4, 1.6, 1.8, 2.0) scale 0
|
|---|
| 19 |
|
|---|
| 20 | set logscale y2 (2**0.2)
|
|---|
| 21 | set y2range [0.47:2.1];
|
|---|
| 22 | set format y2 ""
|
|---|
| 23 | set y2tics (0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.2, 1.4, 1.6, 1.8, 2.0) nomirror
|
|---|
| 24 |
|
|---|
| 25 | # Draw fake x axis at y=1.0; use vertical-only bounding 'H'
|
|---|
| 26 | unset border
|
|---|
| 27 | set arrow from graph 0, first 1 to graph 1, first 1 nohead lt -1 lw 2
|
|---|
| 28 | set arrow 101 from graph 1, graph 0 to graph 1, graph 1 nohead lw 1 front
|
|---|
| 29 |
|
|---|
| 30 | set xrange [-0.75:16.5];
|
|---|
| 31 | set xlabel "Size Zone; Prevalence"
|
|---|
| 32 | set xtics ( \
|
|---|
| 33 | "" 0, \
|
|---|
| 34 | "Small (/4)" 1, \
|
|---|
| 35 | "" 2, \
|
|---|
| 36 | "" 3, \
|
|---|
| 37 | \
|
|---|
| 38 | "" 6, \
|
|---|
| 39 | "Medium (/4)" 7, \
|
|---|
| 40 | "" 8, \
|
|---|
| 41 | "" 9, \
|
|---|
| 42 | \
|
|---|
| 43 | "" 12, \
|
|---|
| 44 | "Both (/8)" 13, \
|
|---|
| 45 | "" 14, \
|
|---|
| 46 | "" 15, \
|
|---|
| 47 | ) scale 0 offset first 0.5,0
|
|---|
| 48 |
|
|---|
| 49 | #set bmargin 0
|
|---|
| 50 | #set tmargin 0.1
|
|---|
| 51 | set lmargin 0
|
|---|
| 52 | set rmargin 0.1
|
|---|
| 53 |
|
|---|
| 54 | barHtScale_fx = 0.30
|
|---|
| 55 |
|
|---|
| 56 |
|
|---|
| 57 | #---------------------
|
|---|
| 58 |
|
|---|
| 59 | # legend, augmented
|
|---|
| 60 | set key outside top center horizontal maxrows 1 samplen 2 width +1 # offset -10,0
|
|---|
| 61 | set object 2 rect from first 2.62, screen 0.882 to first 3.42, screen 0.972 fc rgb "blue" fs transparent solid 0.20 border lc rgb "blue" lw 0.3
|
|---|
| 62 | set object 3 rect from first 5.5, screen 0.882 to first 6.3 , screen 0.972 fc rgb "dark-orange" fs transparent solid 0.25 border lc rgb "dark-orange" lw 0.3
|
|---|
| 63 | set object 4 rect from first 8.4, screen 0.882 to first 9.2 , screen 0.972 fc rgb "magenta" fs transparent solid 0.20 border lc rgb "magenta" lw 0.3
|
|---|
| 64 | set object 5 rect from first 11.3, screen 0.882 to first 12.1 , screen 0.972 fc rgb "dark-violet" fs transparent solid 0.25 border lc rgb "dark-violet" lw 0.3
|
|---|
| 65 | # word "mean" is title of a data series plotted froom $Singleton
|
|---|
| 66 | set arrow 99 from first 12.2, screen 0.925 to first 12.8, screen 0.925 nohead lw 1 dt 2
|
|---|
| 67 | #---------------------
|
|---|
| 68 |
|
|---|
| 69 | set errorbars 0 linewidth 4
|
|---|
| 70 | set pointintervalbox 0
|
|---|
| 71 |
|
|---|
| 72 | # One row, to plot one-off points
|
|---|
| 73 | $Singleton <<EOD
|
|---|
| 74 | 0
|
|---|
| 75 | EOD
|
|---|
| 76 |
|
|---|
| 77 |
|
|---|
| 78 | plot INDIR."/plot-list-histo-rel-i-swift.sum.dat" \
|
|---|
| 79 | i 4 + 0 using ( 0 + 0):1:( 0 + 0):( 0 + 0 + .8) title "{/Helvetica=15 C{/Symbol \42}}" with xerrorbars lc rgb "blue" pt 7 ps 1.0, \
|
|---|
| 80 | '' i 4 + 3 using ( 0 + 1):1:( 0 + 1):( 0 + 1 + .8) title "{/Symbol \155}C++" with xerrorbars lc rgb "dark-orange" pt 9 ps 1.2, \
|
|---|
| 81 | '' i 4 + 2 using ( 0 + 2):1:( 0 + 2):( 0 + 2 + .8) title "LQ {/Helvetica=15 tailq}" with xerrorbars lc rgb "magenta" pt 11 ps 1.2, \
|
|---|
| 82 | '' i 4 + 1 using ( 0 + 3):1:( 0 + 3):( 0 + 3 + .8) title "LQ {/Helvetica=15 list}" with xerrorbars lc rgb "dark-violet" pt 13 ps 1.4, \
|
|---|
| 83 | $Singleton \
|
|---|
| 84 | using (0):(0.1):("This text is placed offscrean-low") title "↕ mean" with labels, \
|
|---|
| 85 |
|
|---|