It seems as a bug in the pdf backend, which can be fixed by the simple patch below. I didn't commit this fix as I think it would be better if original author (Jouni?) make sure this is a correct way. Neil, your code will work okay if you don't use hatch. Or, you may apply the patch by yourself.
-JJ ps. I didn't know that hatch is supported in pdf backend. The documentation needs update. http://matplotlib.sourceforge.net/api/artist_api.html#matplotlib.patches.Patch.set_hatch Index: lib/matplotlib/backends/backend_pdf.py =================================================================== --- lib/matplotlib/backends/backend_pdf.py (revision 6687) +++ lib/matplotlib/backends/backend_pdf.py (working copy) @@ -942,4 +942,4 @@ def hatchPattern(self, lst): pattern = self.hatchPatterns.get(lst, None) if pattern is not None: - return pattern[0] + return pattern name = Name('H%d' % self.nextHatch) self.nextHatch += 1 On Sat, Dec 20, 2008 at 2:02 AM, Neil Conway <n...@cs.berkeley.edu> wrote: > On Sat, Dec 20, 2008 at 1:32 AM, Neil Conway <n...@cs.berkeley.edu> wrote: >> I see the following error using matplotlib 0.95.1: > > Sorry: that should be 0.98.5.1. > > Neil > > ------------------------------------------------------------------------------ > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ------------------------------------------------------------------------------ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users