On 7/14/07, Adam Mercer <[EMAIL PROTECTED]> wrote:

> I'm trying to shade a couple of areas of a plot I'm creating, I need
> to shade the area above one line and the area below another.
> According to the documentation it looks like I need to use the fill()
> method but I can't get it to work, the code I use for creating the
> plot is below:


The cookbook entry

http://www.scipy.org/Cookbook/Matplotlib/SigmoidalFunctions

illustrates how to fill below lines -- it is a little more
complicated, because it fills below the intersection of two lines, but
it should help.  See also
http://matplotlib.sf.net/examples/fill_demo.py


JDH

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to