Christian Meesters <meesters@...>
> is it somehow possible to have a hatch in parts of the background, which
> would achieve something like this pseudo-parameter to axvspan
> pylab.axvspan(2, 10, hatch='//')?
Do you mean something like this?
In : phi=pi*array((0,.2,.4,.6,.8,1,-.8,-.6,-.4,-.2))
In : fill(cos(phi), sin(phi))
Out: [<matplotlib.patches.Polygon instance at 0x1894cda0>]
In : a=gca()
In : setp(getp(a,'frame'), hatch='//')
(For some reason I don't see the hatch pattern in Agg-based backends, in
current svn, but it is there in e.g. eps and pdf.)
Jouni K. Seppänen
Get latest updates about Open Source Projects, Conferences and News.