Brian Blais ha scritto:
I want to write a wxPython script to pull up pylab plots (in a separate window), based on menu or button choices. The script below crashes with a segmentation fault. Am I doing something wrong here? Is there a workaround or fix?

As far as I know, mixing wxpython and pylab this way is BAD.

You should better choose between:
- (1)Launch pylab in a separate thread
- (2) (What I do) Using WxMPL and embedding a matplotlib plot in a
wxPanel or wxFrame. You have to use the OO interface to matplotlib.

m.
--
Massimo Sandal
University of Bologna
Department of Biochemistry "G.Moruzzi"

snail mail:
Via Irnerio 48, 40126 Bologna, Italy

email:
[EMAIL PROTECTED]

tel: +39-051-2094388
fax: +39-051-2094387

begin:vcard
fn:Massimo Sandal
n:Sandal;Massimo
org:University of Bologna;Department of Biochemistry
adr:;;Via Irnerio 48;Bologna;;40126;Italy
email;internet:[EMAIL PROTECTED]
tel;work:+39-051-2094388
tel;fax:+39-051-2094387
x-mozilla-html:FALSE
version:2.1
end:vcard

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to