ユーザ用ツール

サイト用ツール


サイドバー

gnuplot

積み上げグラフの作成

 set terminal postscript eps noenhanced defaultplex \
   leveldefault color colortext \
   dashed dashlength 1.0 linewidth 1.0 butt noclip \
   nobackground \
   palfuncparam 2000,0.003 \
   "Helvetica" 24  fontscale 1.0 

unset clip points
set clip one
unset clip two
set bar 1.000000 front
set border 31 front linetype -1 linewidth 1.000
set timefmt z "%d/%m/%y,%H:%M"
set zdata 
set timefmt y "%d/%m/%y,%H:%M"
set ydata 
set timefmt x "%d/%m/%y,%H:%M"
set xdata 
set timefmt cb "%d/%m/%y,%H:%M"
set timefmt y2 "%d/%m/%y,%H:%M"
set y2data 
set timefmt x2 "%d/%m/%y,%H:%M"
set x2data 
set boxwidth 0.6 relative
set style fill   solid 1.00 border
set style rectangle back fc lt -3 fillstyle   solid 1.00 border lt -1
set style circle radius graph 0.02, first 0, 0 
set style ellipse size graph 0.05, 0.03, first 0 angle 0 units xy
set dummy x,y
set format x "% g"
set format y "% g"
set format x2 "% g"
set format y2 "% g"
set format z "% g"
set format cb "% g"
set format r "% g"
set angles radians
unset grid
set raxis
set key title ""
set key inside right top vertical Right noreverse enhanced autotitles nobox
set key noinvert samplen 4 spacing 1 width 0 height 0 
set key maxcolumns 0 maxrows 0
set key noopaque
unset label
unset arrow
set style increment default
unset style line
unset style arrow
set style histogram rowstacked title  offset character 0, 0, 0
unset logscale
set offsets 0, 0, 0, 0
set pointsize 1
set pointintervalbox 1
set encoding default
unset polar
unset parametric
unset decimalsign
set view 60, 30, 1, 1
set samples 100, 100
set isosamples 10, 10
set surface
unset contour
set clabel '%8.3g'
set mapping cartesian
set datafile separator whitespace
unset hidden3d
set cntrparam order 4
set cntrparam linear
set cntrparam levels auto 5
set cntrparam points 5
set size ratio 0 1,1
set origin 0,0
set style data histograms
set style function lines
set xzeroaxis linetype -2 linewidth 1.000
set yzeroaxis linetype -2 linewidth 1.000
set zzeroaxis linetype -2 linewidth 1.000
set x2zeroaxis linetype -2 linewidth 1.000
set y2zeroaxis linetype -2 linewidth 1.000
set ticslevel 0.5
set mxtics default
set mytics default
set mztics default
set mx2tics default
set my2tics default
set mcbtics default
set xtics border in scale 1,0.5 mirror norotate  offset character 0, 0, 0 autojustify
set xtics  norangelimit
set xtics   ()
set ytics border in scale 1,0.5 mirror norotate  offset character 0, 0, 0 autojustify
set ytics autofreq  norangelimit
set ztics border in scale 1,0.5 nomirror norotate  offset character 0, 0, 0 autojustify
set ztics autofreq  norangelimit
set nox2tics
set noy2tics
set cbtics border in scale 1,0.5 mirror norotate  offset character 0, 0, 0 autojustify
set cbtics autofreq  norangelimit
set rtics axis in scale 1,0.5 nomirror norotate  offset character 0, 0, 0 autojustify
set rtics autofreq  norangelimit
set title "" 
set title  offset character 0, 0, 0 font "" norotate
set timestamp bottom 
set timestamp "" 
set timestamp  offset character 0, 0, 0 font "" norotate
set rrange [ * : * ] noreverse nowriteback
set trange [ * : * ] noreverse nowriteback
set urange [ * : * ] noreverse nowriteback
set vrange [ * : * ] noreverse nowriteback
set xlabel "Number of CPU : p" 
set xlabel  offset character 0, 0, 0 font "" textcolor lt -1 norotate
set x2label "" 
set x2label  offset character 0, 0, 0 font "" textcolor lt -1 norotate
set xrange [ * : * ] noreverse nowriteback
set x2range [ * : * ] noreverse nowriteback
set ylabel "Wall-clock time [s]" 
set ylabel  offset character 0, 0, 0 font "" textcolor lt -1 rotate by -270
set y2label "" 
set y2label  offset character 0, 0, 0 font "" textcolor lt -1 rotate by -270
set yrange [ * : * ] noreverse nowriteback
set y2range [ * : * ] noreverse nowriteback
set zlabel "" 
set zlabel  offset character 0, 0, 0 font "" textcolor lt -1 norotate
set zrange [ * : * ] noreverse nowriteback
set cblabel "" 
set cblabel  offset character 0, 0, 0 font "" textcolor lt -1 rotate by -270
set cbrange [ * : * ] noreverse nowriteback
set zero 1e-08
set lmargin  -1
set bmargin  -1
set rmargin  -1
set tmargin  -1
set locale "ja_JP.UTF-8"
set pm3d explicit at s
set pm3d scansautomatic
set pm3d interpolate 1,1 flush begin noftriangles nohidden3d corners2color mean
set palette positive nops_allcF maxcolors 0 gamma 1.5 color model RGB 
set palette rgbformulae 7, 5, 15
set colorbox default
set colorbox vertical origin screen 0.9, 0.2, 0 size screen 0.05, 0.6, 0 front bdefault
set style boxplot candles range  1.50 outliers pt 7 separation 1 labels auto unsorted
set loadpath 
set fontpath 
set psdir
set fit noerrorvariables noprescale
GNUTERM = "qt"
COL = 4
 set output 'ddbstackedc0.eps'	
plot [][0:90000] for [COL=2:4] 'totaltimed0.dat' using COL:xticlabels(1)/60. title columnheader
 set output 'ddbstackedc1.eps'	
plot [][0:90000] for [COL=2:4] 'totaltimed1.dat' using COL:xticlabels(1)/60 title columnheader
 set output 'ddbstackedc2.eps'	
plot [][0:90000] for [COL=2:4] 'totaltimed2.dat' using COL:xticlabels(1)/60 title columnheader
 set output 'ddbstackedc3.eps'	
plot [][0:90000] for [COL=2:4] 'totaltimed3.dat' using COL:xticlabels(1)/60 title columnheader
#    EOF

totaltimed*.datの内容は以下の通り.

CPU	SOLVE	SEARCH	OTHERS
1     59638.5068190098        13791.9333076477        12474.2621161938   
2     31982.0676805973        8396.42161893845        7011.35931539536   
4     18010.9199364185        5702.27792763710        4349.39937496185   
8     13611.2483651638        6592.78487396240        3436.70050883293   
16    6707.11156940460        3510.47356200218        2185.67948675156   
32    5301.08660387993        3439.21731495857        2032.07787322998   
  
CPU	SOLVE	SEARCH	OTHERS
1   44719.8306965828        12396.0431091785        10290.5386810303     
2   24614.4720692635        7700.59484314919        5934.40788054466     
4   14355.7716853619        5225.72845101357        3781.65275454521     
8   9174.39900326729        3809.76240348816        2648.93298435211     
16   4977.48970770836        2418.23683285713        1757.64755058289     
32   4119.45890879631        2347.72714042664        1649.34123969078 
    
CPU	SOLVE	SEARCH	OTHERS
1     43176.9125797749        11930.2495830059        9976.28972601891     
2     24901.6543874741        7838.89214730263        5941.72809505463     
4     14559.5463516712        5395.94462180138        3788.01015353203     
8     9244.62504553795        3810.70472002029        2553.32816243172     
16    5015.49458074570        2490.37185597420        1760.43278646469     
32    4122.30455350876        2292.93185162544        1606.72654080391   
CPU	SOLVE	SEARCH	OTHERS
1     45234.6656711102        12493.6429431438        10382.9610948563     
2     23400.1541295052        7663.10976076126        5644.78654670715     
4     13731.5612764359        5364.94921183586        3625.77893567085     
8     9233.42270207405        3979.52362322807        2562.96541762352     
16    5059.84184360504        2542.71278667450        1781.09652376175     
32    4305.15650248528        2291.52211451530        1624.11808490753     
gnuplot.txt · 最終更新: 2018/02/19 11:17 by saito