Problems with optimize on in pylab

I get the error Cannot combine None with str from line
709 in pylab.py

figimage.__doc__ = Figure.figimage.__doc__ + """
Addition kwargs: hold = [True|False] overrides default
hold state"""

I removed the str part of the line and then get the
following error:

  File
"/usr/lib/python2.3/site-packages/matplotlib/pylab.py",
line 709, in ?
    Figimage.__doc__ = Figure.figimage.__doc__
NameError: name 'Figimage' is not defined

I saw a reference to this error on the list before but
there was no reference to except turning off optimize
mode. Unfortunately that is not an option in my
production env. Any suggestions??

Thanks,

Vineet

Hi Vineet,

In the my mail from 12/04/2005 17:51 I attached a pylab.py file which corrects this. This is a matplotlib 0.8 file, but as you can see the fix is easy, so if you use another version just do the same in pylab.py or just comment out all this doc lines.

See you
Werner

Vinj Vinj wrote:

···

I get the error Cannot combine None with str from line
709 in pylab.py

figimage.__doc__ = Figure.figimage.__doc__ + """
Addition kwargs: hold = [True|False] overrides default
hold state"""

I removed the str part of the line and then get the
following error:

  File
"/usr/lib/python2.3/site-packages/matplotlib/pylab.py",
line 709, in ?
    Figimage.__doc__ = Figure.figimage.__doc__
NameError: name 'Figimage' is not defined

I saw a reference to this error on the list before but
there was no reference to except turning off optimize
mode. Unfortunately that is not an option in my
production env. Any suggestions??

Thanks,

Vineet

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20