Thanks for pointing this out. This is now fixed in SVN. Cheers, Mike
izak marais wrote: > The vertical and horizontal hatch styles are swapped. According to > the docs: > | - vertical > - - horizontal > but '|' gives horizontal and '-' vertical patterns. The reaming styles > appear to work correctly. > > > ----- Original Message ---- > From: John Hunter <[EMAIL PROTECTED]> > To: izak marais <[EMAIL PROTECTED]> > Cc: matplotlib-users@lists.sourceforge.net > Sent: Wednesday, June 25, 2008 3:49:56 PM > Subject: Re: [Matplotlib-users] histogram hatching > > On Wed, Jun 25, 2008 at 6:05 AM, izak marais <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Hi, > > > > I see there is a "hatch: unknown" kwarg mentioned in the hist() > > documentation. Can anyone shed some light on how to use this please? I > > assume it might be used to generate monochrome rectangles with > > differentiating hatched fills? > > The rectangles generates by "hist" are matplotlib.patch.Rectangle > instances, and the "hatch" property is controlled by the "set_hatch" > method. Here is the docstring which should tell you most everything > you need to know. Note the caveat at the end that it is only > currently supported on postscript -- patches for other backends much > obliged > > def set_hatch(self, h): > """ > Set the hatching pattern > > hatch can be one of:: > > / - diagonal hatching > \ - back diagonal > | - vertical > - - horizontal > # - crossed > x - crossed diagonal > > Letters can be combined, in which case all the specified > hatchings are done. If same letter repeats, it increases the > density of hatching in that direction. > > CURRENT LIMITATIONS: > > 1. Hatching is supported in the PostScript backend only. > > 2. Hatching is done with solid black lines of width 0. > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users