slider_demo.py (online) and radio_buttons.py (svn-examples) broken

Hello list,

the nice example of sliders and buttons from the matplotlib screenshots
doesn't work anymore (at least) for me under mpl 0.91.2 and latest svn.

In http://matplotlib.sourceforge.net/screenshots/slider_demo.py
the replacement >hovercolor=0.975<
                        -> >hovercolor="0.975"<
is needed.

The second problem arises only with latest svn.
At the end of the mail there's the Traceback, which arises after clicking the
radiobutton during running examples/widgets/radio_buttons.py.

Any suggestions are welcome.

regards Matthias

···

-------------------------------------------------------------------------------------------------------------------------
Traceback (most recent call last):
  
File "/media/disk/SOFT//lib/python2.5/site-packages/matplotlib/backends/backend_gtk.py",
line 193, in button_press_event
    FigureCanvasBase.button_press_event(self, x, y, event.button)
  
File "/media/disk/SOFT//lib/python2.5/site-packages/matplotlib/backend_bases.py",
line 915, in button_press_event
    self.callbacks.process(s, mouseevent)
  File "/media/disk/SOFT//lib/python2.5/site-packages/matplotlib/cbook.py",
line 157, in process
    func(*args, **kwargs)
  File "/media/disk/SOFT//lib/python2.5/site-packages/matplotlib/widgets.py",
line 462, in _clicked
    xy = self.ax.transAxes.inverse_xy_tup((event.x, event.y))
AttributeError: 'BboxTransformTo' object has no attribute 'inverse_xy_tup'

Matthias Michler wrote:

The second problem arises only with latest svn. At the end of the mail there's the Traceback, which arises after clicking the radiobutton during running examples/widgets/radio_buttons.py.
  

This is now fixed in SVN. It hadn't been updated to use the new transforms framework.

Cheers,
Mike

···

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

Hello list,

Matthias Michler wrote:
> The second problem arises only with latest svn.
> At the end of the mail there's the Traceback, which arises after clicking
> the radiobutton during running examples/widgets/radio_buttons.py.

This is now fixed in SVN. It hadn't been updated to use the new
transforms framework.

First of all: Thank you Mike for the fast implementation.

Secondly I ask again for changing the online-version of the nice Slider-demo
at http://matplotlib.sourceforge.net/screenshots/slider_demo.py , where the
replacement
hovercolor=0.975
to hovercolor="0.975"
is needed to fulfill standards of mpl colors, please.
We refered our students to the nice collection of screenshots on mpl-homepage
and therefore it would be great, if someone could change that, so that we
don't run into much bug reports on our side.

Thanks in advance.
Matthias

···

On Wednesday 07 May 2008 19:08:23 Michael Droettboom wrote:

Sorry -- I don't know where slider_demo.py lives and am not too familiar with how the website is updated. Anyone?

Cheers,
Mike

Matthias Michler wrote:

···

Hello list,

On Wednesday 07 May 2008 19:08:23 Michael Droettboom wrote:
  

Matthias Michler wrote:
    

The second problem arises only with latest svn.
At the end of the mail there's the Traceback, which arises after clicking
the radiobutton during running examples/widgets/radio_buttons.py.
      

This is now fixed in SVN. It hadn't been updated to use the new
transforms framework.
    
First of all: Thank you Mike for the fast implementation.

Secondly I ask again for changing the online-version of the nice Slider-demo at http://matplotlib.sourceforge.net/screenshots/slider_demo.py , where the replacement hovercolor=0.975
to hovercolor="0.975"
is needed to fulfill standards of mpl colors, please.
We refered our students to the nice collection of screenshots on mpl-homepage and therefore it would be great, if someone could change that, so that we don't run into much bug reports on our side.

Thanks in advance. Matthias

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
  
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA