Get Python Matplotlib Radiobutton selection

2019-09-06 13:53发布

问题:

In Python, I can create Matplotlib Radiobuttons using code like this:

rb = RadioButtons(pl.axes([0.01,0.5,0.08,0.14]),('A','B','C',))

How do I get the index of the currently active radio button outside the callback function?