plot mean and standard deviations


/ Published in: Gnuplot
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.