update to 3.10 is leading to some errors, and the changes are not backward compatible e.g. RadioButtons in scousecoverage.py (fix below). There may be more...
def make_radiobuttons(ax,options,function,**kwargs):
"""
GUI setup
"""
from matplotlib.widgets import RadioButtons
myradiobuttons=RadioButtons(ax,options, radio_props=dict(marker='o', s=12), **kwargs)
# for circle in myradiobuttons.circles: # adjust radius here. The default is 0.05
# circle.set_radius(0.05)
myradiobuttons.on_clicked(function)
return myradiobuttons
update to 3.10 is leading to some errors, and the changes are not backward compatible e.g. RadioButtons in scousecoverage.py (fix below). There may be more...
def make_radiobuttons(ax,options,function,**kwargs):
"""
GUI setup
"""
from matplotlib.widgets import RadioButtons
myradiobuttons=RadioButtons(ax,options, radio_props=dict(marker='o', s=12), **kwargs)
# for circle in myradiobuttons.circles: # adjust radius here. The default is 0.05
# circle.set_radius(0.05)
myradiobuttons.on_clicked(function)
return myradiobuttons