Posted By

evertwh on 03/23/10


Tagged

standarddeviation plotting


Versions (?)

plot mean and standard deviations


 / Published in: Gnuplot
 

  1. set style fill transparent solid 0.5 noborder
  2.  
  3. # expect mean in column 2, sdev in column 4.
  4.  
  5. # transparent region between mean +- sdev
  6. # requires terminal capable of transparency, e.g. 'png'
  7. plot 'bar' using 2:($2+$4):($2-$4) with filledcu ls 1
  8.  
  9. # errorbars between mean +- sdev, mean superimposed
  10. replot 'bar' using 0:2:4 with errorbars ls 1, 'bar' using 2 with lines ls 2

Report this snippet  

You need to login to post a comment.