clabel( CS, manual=True ) / ginput_manual_clabel.py - broken?

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

ginput_manual_clabel.py (2.39 KB)

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

ginput_clabeler.patch (984 Bytes)

···

On Tue, Dec 15, 2009 at 10:22 AM, Matthias Michler <MatthiasMichler@...361...> 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
matplotlib-users List Signup and Options

Hi JJ,

I'm sorry for the late response - I was on chrismas holidays and in fact even
now I have not much time.
I tested you patch and there arise labels - thanks a lot so far.

Where should I post the bug report? on sourgeforge.net in the "Bug Tracking
System" of matplotlib?

Kind regards,
Matthias

···

On Saturday 19 December 2009 19:53:56 Jae-Joon Lee wrote:

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 > > <MatthiasMichler@...361...> 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_base
>s.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_in
>put.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
> matplotlib-users List Signup and Options

Hi JJ,

Bugs item #2922835, was opened at 2009-12-29 15:29

Happy New Year!

Kind regards,
Matthias

···

On Tuesday 29 December 2009 15:13:39 Matthias Michler wrote:

Hi JJ,

I'm sorry for the late response - I was on chrismas holidays and in fact
even now I have not much time.
I tested you patch and there arise labels - thanks a lot so far.

Where should I post the bug report? on sourgeforge.net in the "Bug Tracking
System" of matplotlib?

Kind regards,
Matthias

On Saturday 19 December 2009 19:53:56 Jae-Joon Lee wrote:
> 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 > > > > <MatthiasMichler@...361...> 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_ba
> >se s.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_
> >in put.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