I can reproduce this bug with the current svn.
Matthias, can you file a bug on this in the issue tracker?

I think the bug is related with the changes made back in august.

 http://old.nabble.com/ginput-default-mouse-configuration-td24924861.html

Attached is a quick fix, so please test it.
I didn't thoroughly follow the changes made related with the above
conversation, so I hope those involved (Jack Sankey, John and Gaël)
take a look and make a relevant changes if necessary.

Regards,

-JJ


On Tue, Dec 15, 2009 at 10:22 AM, Matthias Michler
<matthiasmich...@gmx.net> wrote:
> Hello list,
>
> I run into trouble with the formelly working
> example ''ginput_manual_clabel.py'' or the following minimal example (in
> ipython -pylab)
>
> CS = plt.contour(reshape(arange(20)%3, (4, 5)), [0, 1, 2])
> CL = plt.clabel( CS, manual=True )
>
> First of all I get a DeprecationWarning during the startup (for GTKAGG and
> TKAGG)
>
> /scratch/michler/SOFT/lib/python2.5/site-packages/matplotlib/backend_bases.py:1793:
> DeprecationWarning: Using default event loop until function specific to this
> GUI is implemented
>  warnings.warn(str,DeprecationWarning)
>
> and the worse point is that I am not able to select some clabel-positions
> (GTKAGG, TKAGG and WXAGG) and
> if I try to leave the selection mode I get
>
> GTKAGG:
> <type 'exceptions.TypeError'>: stop_event_loop() takes exactly 1 argument (2
> given)
>  /scratch/michler/SOFT/lib/python2.5/site-packages/matplotlib/blocking_input.py(196)mouse_event_stop()
>    195         # returned before using data.
> --> 196         self.fig.canvas.stop_event_loop(event)
>    197
>
> TKAGG:
>  File "/usr/lib/python2.5/lib-tk/Tkinter.py", line 920, in update
>    self.tk.call('update')
> _tkinter.TclError: can't invoke "update" command:  application has been
> destroyed
>
> WXAGG:
> nothing
>
> Could anybody help me?
>
> Kind regards,
> Matthias
>
>
> ------------------------------------------------------------------------------
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
>
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>

Attachment: ginput_clabeler.patch
Description: Binary data

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to