On Tue, May 19, 2009 at 10:10 AM, guillaume ranquet <granq...@wyplay.com> 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.org/Cookbook/Matplotlib/Interactive_Plotting
>
> I wonder what I'm doing wrong?
> should I access the toolbar states in another way when embedding in Wx?

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

JDH

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to