PDF not readable by Adobe PDF readers

Ghostscript's -dPDFDEBUG option pointed to an operation in the page
description that sets the line width to the string "2", which is
nonsensical. When I manually edited that to be the number 2, Adobe
Reader displayed the file. Does the source code by any chance include
something like this:

   plot(..., lw='2')

If so, the solution would be to add some type checks in the backend
(and possibly in the frontend). If not, there must be a stranger bug
somewhere in the matplotlib innards.

···

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

Thx a lot you guys, as suggested by Jouni, it was indeed the line

ax.axvline(x=1, c='#000000', lw='2', alpha=0.5)

which caused the problem. Jens' trick to change the backend also led me to
the same line as it complains about this misplaced string '2'.

You helped me a lot, I was clueless :), thx again!

···

--
View this message in context: http://matplotlib.1069221.n5.nabble.com/PDF-not-readable-by-Adobe-PDF-readers-tp42580p42613.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.