plotting problems in qt4agg backend on Mac OS X

jan_strube <curiousjan@...287...> writes:

  File
"/home/jstrube/local//lib64/python2.6/site-packages/matplotlib/backends/backend_pdf.py",
line 1723, in _fillp
    (len(self._fillcolor) <= 3 or self._fillcolor[3] != 0.0))
TypeError: object of type 'NoneType' has no len()

Yes, that looks like a bug. It seems that the hatch support doesn't get
a lot of use, so you have run into an edge case that no-one has
encountered before.

This is the case not only for the pdf backend, but for the qt4agg backend as
well.

Do you mean that saving as pdf from the qt4agg backend causes the same
error, or is there a different error raised from that particular
backend? When you save as pdf, you (usually) invoke the pdf backend, no
matter what interactive backend you use.

Yes, the example works just fine. I am attaching a self-contained example to
reproduce the problem.

Thank you for the report and the example! I think I have fixed this for
the svg and pdf backends, but the PostScript backend still needs work.

···

--
Jouni K. Sepp�nen
http://www.iki.fi/jks

Hi Jouni,

Jouni K. Seppänen wrote:

jan_strube <curiousjan@...287...> writes:

Do you mean that saving as pdf from the qt4agg backend causes the same
error, or is there a different error raised from that particular
backend? When you save as pdf, you (usually) invoke the pdf backend, no
matter what interactive backend you use.

Yes, same error.

Thank you for the report and the example! I think I have fixed this for
the svg and pdf backends, but the PostScript backend still needs work.

The pdf example seems to somewhat work, both on mac os x and on linux. The
hatch lines are really faint, but I can probably play with the matplotlibrc
settings to fix that.
The svg works on linux, but not quite on mac osx.
Safari complains:

This page contains the following errors:

error on line 354 at column 2372: Extra content at the end of the document
Below is a rendering of the page up to the first error.

Thanks for the fix.
Cheers,
    Jan

···

--
Jouni K. Seppänen
http://www.iki.fi/jks

--
View this message in context: http://www.nabble.com/plotting-problems-in-qt4agg-backend-on-Mac-OS-X-tp24499919p24546274.html
Sent from the matplotlib - users mailing list archive at Nabble.com.