matplotlib.widgets issue

2) How do I make a CheckButtons class with only one button? The

    >> example below fails with a "TypeError: unsubscriptable object".

    > I still don't know the answer to this problem.

This was fixed in revision 1.15 of widgets.py in CVS, available at

  matplotlib download | SourceForge.net

You should be able to just drop the updated file in
site-packages/matplotlib.

Cheers,
JDH

Thanks John,

I works fine now but I think you need to switch lines 269 and 270 in
widgets.py (and maybe 272 and 273 for aestetic reasons). dy is referenced
before it is used when you have more than one check button.

Cheers,
Jesper

···

On Monday 04 July 2005 16:24, John Hunter wrote:

    >> 2) How do I make a CheckButtons class with only one button? The
    >> example below fails with a "TypeError: unsubscriptable object".

    > I still don't know the answer to this problem.

This was fixed in revision 1.15 of widgets.py in CVS, available at

matplotlib download | SourceForge.net
widgets.py?rev=1.15&view=log

You should be able to just drop the updated file in
site-packages/matplotlib.