|
From: Paul I. <piv...@gm...> - 2011-04-21 19:56:47
|
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 |