mpl-extensions / mpl-interactions

Sliders to control matplotlib and other interactive goodies. Works in any interactive backend and even uses ipywidgets when in a Jupyter notebook
https://mpl-interactions.rtfd.io
BSD 3-Clause "New" or "Revised" License
132 stars 20 forks source link

Update set_max() function in widgets.py #292

Closed ispurgeo closed 2 months ago

ispurgeo commented 2 months ago

Fixed typo on line 410. Previously said ' """set the lower value of slider to val. ' This is inaccurate as the max value is the higher value.

ianhi commented 2 months ago

thanks very much!

ianhi commented 2 months ago

@ispurgeo heads up that Matplotlib now provides a RangeSlider widget, so if you were directly creating a rangeslider from mpl-interacitons I recommend instead switching to https://matplotlib.org/stable/api/widgets_api.html#matplotlib.widgets.RangeSlider

ianhi commented 1 week ago

@ispurgeo with the release I am about to make I will be removing the mpl_interactions.widgets.RangeSlider you should use matplotlib.widgets.RangeSlider instead