Re: [Matplotlib-users] segfault while getting fig_manager while embedded in Wx

2009-05-20 Thread guillaume ranquet
Christopher Barker wrote: > John Hunter wrote: >> You cannot import pylab or pyplot is you are embedding mpl in wx >> (totally unsupported and expected to fail) -- you need to follow the >> patterns in >> >> http://matplotlib.sourceforge.net/examples/user_interfaces/index.html > > or use wxMPL: >

Re: [Matplotlib-users] segfault while getting fig_manager while embedded in Wx

2009-05-19 Thread Christopher Barker
John Hunter wrote: > You cannot import pylab or pyplot is you are embedding mpl in wx > (totally unsupported and expected to fail) -- you need to follow the > patterns in > > http://matplotlib.sourceforge.net/examples/user_interfaces/index.html or use wxMPL: http://agni.phys.iit.edu/~kmcivor/wxm

Re: [Matplotlib-users] segfault while getting fig_manager while embedded in Wx

2009-05-19 Thread John Hunter
On Tue, May 19, 2009 at 10:10 AM, guillaume ranquet wrote: > this bit of code: > > manager = pylab.get_current_fig_manager() > > segfaults when I'm using pylab embedded in Wx. > it works well with gtkAgg. > > I'm using it in an event handler, directly taken from the cookbook: > http://www.scipy.or

[Matplotlib-users] segfault while getting fig_manager while embedded in Wx

2009-05-19 Thread guillaume ranquet
this bit of code: manager = pylab.get_current_fig_manager() segfaults when I'm using pylab embedded in Wx. it works well with gtkAgg. I'm using it in an event handler, directly taken from the cookbook: http://www.scipy.org/Cookbook/Matplotlib/Interactive_Plotting I wonder what I'm doing wrong?