Jason Heeris, on 2011-04-21 12:23, wrote: > I'm playing around with using Matplotlib in my PyGTK app, and keep > triggering a crash. I've narrowed it down to this bit of code: ... > Am I doing something obviously wrong? (Apart from the lack of plots, I > mean... I removed them because they didn't change the behaviour.)
Thanks for the report, Jason. It's a bug - could you please file a bug report, so we can keep track of it? It looks like this gets triggered by the fact that the ylabel is being clipped. I don't have time to look into this further, but here are two workaround for you. Either do: figure.subplotpars.right=.8 # make smaller if still crashes or if it's an option, use gtkagg, which doesn't suffer from the crash. from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg as FigureCanvasGTK best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
signature.asc
Description: Digital signature
------------------------------------------------------------------------------ Fulfilling the Lean Software Promise Lean software platforms are now widely adopted and the benefits have been demonstrated beyond question. Learn why your peers are replacing JEE containers with lightweight application servers - and what you can gain from the move. http://p.sf.net/sfu/vmware-sfemails
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users