views:

64

answers:

1

How do you add a shaded area between two points in a matplotlib plot?

In the example matplotlib plot below, I manually added the shaded, yellow area using Skitch. I'd like to know how to do this sans-Skitch.

alt text

+3  A: 

this example: http://matplotlib.sourceforge.net/examples/pylab_examples/axhspan_demo.html should cover you.

bpowah