[Matplotlib-users] C++ Assertion failure during savefig

2008-04-03 Thread Chris Squibb
Hey,

Up until recently I have been using mpl 0.90.1, and my application
worked fine.  Yesterday I upgraded to 0.91.2 and am now getting the
following traceback:

  File application.
py, line 667, in plot
radial_plot_figure.savefig(png_file, dpi=self.dpi)
  File C:\Python25\Lib\site-packages\matplotlib\figure.py, line 770,
in savefig
self.canvas.print_figure(*args, **kwargs)
  File C:\Python25\Lib\site-packages\matplotlib\backends\backend_wxagg.py,
line 101, in print_figu
re
FigureCanvasAgg.print_figure(self, filename, *args, **kwargs)
  File C:\Python25\Lib\site-packages\matplotlib\backend_bases.py,
line 1202, in print_figure
self.figure.canvas.draw()
  File C:\Python25\Lib\site-packages\matplotlib\backends\backend_wxagg.py,
line 65, in draw
self.gui_repaint()
  File C:\Python25\Lib\site-packages\matplotlib\backends\backend_wx.py,
line 987, in gui_repaint
drawDC.DrawBitmap(self.bitmap, 0, 0)
  File C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\_gdi.py,
line 3387, in DrawBitmap
return _gdi_.DC_DrawBitmap(*args, **kwargs)
PyAssertionError: C++ assertion hdcDst  hdcSrc failed at
..\..\src\msw\dc.cpp(2559) in AlphaBlt(
): AlphaBlt(): invalid HDC


Does anyone have any suggestions to why this is happening?

Thanks.

-
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-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] C++ Assertion failure during savefig

2008-04-03 Thread John Hunter
On Thu, Apr 3, 2008 at 6:19 AM, Chris Squibb [EMAIL PROTECTED] wrote:
 Hey,

  Up until recently I have been using mpl 0.90.1, and my application
  worked fine.  Yesterday I upgraded to 0.91.2 and am now getting the
  following traceback:

Are you getting that with every mpl script, eg the canconical simple_plot.py

http://matplotlib.sf.net/examples/simple_plot.py

If not, we may need to see a little code to help diagnose what is going on

JDH

-
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-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users