Matplotlib crashes my GTK program

Hi all,

This will probably end up being my very silly mistake, but at the moment, Matplotlib crashes my program with an X error whenever my window isn't expanded far enough.

For those interested, it is a front-end for the strategy and analysis software for the Sunswift solar car (http://www.sunswift.com). I attach a screenshot (when it is expanded to the full screen, and therefore works) in case it helps.

Picture 8.png

GraphingMPL.py (5.3 KB)

David Snowdon wrote:

Hi all,

This will probably end up being my very silly mistake, but at the moment, Matplotlib crashes my program with an X error whenever my window isn't expanded far enough.

For those interested, it is a front-end for the strategy and analysis software for the Sunswift solar car (http://www.sunswift.com). I attach a screenshot (when it is expanded to the full screen, and therefore works) in case it helps.

daves@...2601...:~/projects/sunswift/carsoft/scanalysis$ python -c "import matplotlib; print matplotlib.__version__"
0.91.2

I read the code you sent. You shouldn't import pylab (neither pyplot?), although you don't seem to be using it. Maybe the paint_event is firing when it shouldn't?

Aside from that, my only advice would be to update matplotlib to the latest version.

JLS