hi, I get this error when I'm generating numerous .png files using matplotlib 0.9.2 in py2.4 on WinXP ----------------------------- Fail to allocate bitmap
This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. Unable to free colormap, palette is still selected. This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. ----------------------------- The code is simple: import matplotlib import matplotlib.pyplot as pylab pylabFigure = pylab.figure() pylabFigure.clf() pylab.rcdefaults() pylab.plot(p[0::2], p[1::2], 'b-', linewidth=3) pylab.title('Endpointing Plot for '+StepMillName) pylab.xlabel('Mill Distance ('+m_unit+')') pylab.ylabel('~ Electron response ~' ) pylab.grid(True) pylabFigure.savefig('EPP_'+StepMillName+'.png', facecolor='lightgrey', edgecolor='w') pylab.close('all') pylabFigure = None I can put this code in a simple program and generate many images without seeing the allocate bitmap error. Perhaps it is colliding with something else in my main app. Is there a command that can clear, flush, or unselect the palette and/or colormap? I don't see the allocate error if I switch the backend to 'SVG', that has it own set of issues though: telling me it can't use, but then generating SVG files anyway. thanks -- Chris Kennedy http://www.coventor.com Sr. Product Manager Ph: 919-854-7500 x156 Cary, NC ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users