A few weeks ago I reported a double draw problem in the qt backends. They
both have a draw() method that looked like this:
def draw( self ):
self.replot = True
FigureCanvasAgg.draw(self)
self.repaint( False )
It turned out that FCA::draw() and self.repaint() both did a draw which
slowed everything down. Commenting out the FCA draw call seemed to work
fine:
def draw( self ):
self.replot = True
self.repaint( False )
However, this breaks when running code like this:
import pylab as p
p.plot( [1,2,3] )
p.savefig( 'image.png' )
The image is never drawn in this case. If you do a show() and save the
image from the gui, then everything is fine. I did some experimenting and
the solution may be to do this:
def draw( self ):
self.replot = True
FigureCanvasAgg.draw(self)
Which does seem to work for the cases I have. Could someone else take a
look and see if this doesn't break anything (You'll have to edit your local
backends, I haven't changed anything).
Ted
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel