plotting lines with shaded / transparent region for standard deviation

John Hunter wrote:

hi all,

is there a way in matplotlib to plot lines with errorbars, e.g. using
errorbar(...) but instead of lines just have shaded, partly transparent
regions that represent the error bars? people often use this to show
confidence intervals or error bars... an example is here:

http://eva.nersc.no/vhost/arctic-roos.org/doc/observations/images/ssmi1_ice_ext.png

where the black line has shaded grey bands around. i'd like to plot
something like this but have the band be partly transparent.

I use fill_between for this -- draw the line with "plot" and the
shaded region with "fill_between".

Hi,

I also need error band plotting regularly (also the loglog and semilog
versions) and currently have some quickly written code to do this in
matplotlib.

If I clean up my code and submit a patch to axes and pyplot classes,
would it have a chance to be accepted?

Teemu

···

On Wed, Aug 5, 2009 at 9:40 AM, per freem<perfreem@...1235...> wrote:

Teemu Ikonen wrote:

Hi,

I also need error band plotting regularly (also the loglog and semilog
versions) and currently have some quickly written code to do this in
matplotlib.

If I clean up my code and submit a patch to axes and pyplot classes,
would it have a chance to be accepted?

Yes.

Eric

···

Teemu

Teemu Ikonen wrote:

I also need error band plotting regularly (also the loglog and semilog
versions) and currently have some quickly written code to do this in
matplotlib.

If I clean up my code and submit a patch to axes and pyplot classes,
would it have a chance to be accepted?

Teemu

Also, if you haven't already, see http://matplotlib.sourceforge.net/devel/coding_guide.html.

Eric