gnuplot

Ceci est une ancienne révision du document !


Gnuplot

Exemple de code:

set datafile separator ','
# set key autotitle columnhead # use the first line as title
set title "title" noenhanced
set ylabel "Duration (s)"
set xlabel "Number of workers"
# set key center top
set terminal pngcairo size 800,600 enhanced font 'Segoe UI,10'
set output 'mpi-pipelined-all.png'
 
# set y2tics # enable second axis
# set ytics nomirror # dont show the tics on that side
# set y2label "Number of iterations per second" # label for second axis
 
set grid
 
set xrange [3:]
 
plot \
    "1-mpi/result.csv" using 1:2 title "1 node" with linespoints, \
    "2-mpi/result.csv" using 1:2 title "2 nodes (nb workers x 2)" with linespoints, \
    "1-mpi/result.csv" using 1:($2/2) title "2 nodes with perfect scalability" with linespoints dashtype "--"
stats "result.csv" using 4 prefix "A"
stats "result.csv" using 5 prefix "B"
 
set yrange [0:1.1]
plot "result.csv" using 1:($4/A_max) title columnhead(4) with linespoints, "" using 1:($5/B_max) title columnhead(5) with linespoints
  • gnuplot.1616753489.txt.gz
  • Dernière modification : 2021/04/04 17:01
  • (modification externe)