hatched fill_between ?

Hi all,

What would be really useful for me, is to be able to hatch the area filled using the fill_between() method, instead of using solid color. Does anybody know if this is possible?

Thanks in advance,

Matt

It seems that there is no support of hatching in Collection, although
I don't see any reason.
I think the easiest way for now is to create extra patch objects for hatching.
Try something like below.

-JJ

p = ax1.fill_between(x, 0, y1)
p.set_facecolors("none")

from matplotlib.patches import PathPatch
for path in p.get_paths():
    p1 = PathPatch(path, fc="none", hatch="/")
    ax1.add_patch(p1)
    p1.set_zorder(p.get_zorder()-0.1)

ยทยทยท

On Wed, Oct 7, 2009 at 7:08 AM, Matthew Czesarski <matthew.czesarski@...287...> wrote:

Hi all,
What would be really useful for me, is to be able to hatch the area filled
using the fill_between() method, instead of using solid color. Does anybody
know if this is possible?
Thanks in advance,
Matt
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options