diff --git a/.vscode/settings.json b/.vscode/settings.json index 7c2054aa..10f0ebca 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,4 @@ { - "python.pythonPath": "/home/ian/anaconda3/envs/ipympl/bin/python", + "python.pythonPath": "/home/ian/anaconda3/envs/mpl-inter/bin/python", "python.formatting.provider": "black" } \ No newline at end of file diff --git a/mpl_interactions/_version.py b/mpl_interactions/_version.py index 5d472026..a6649843 100644 --- a/mpl_interactions/_version.py +++ b/mpl_interactions/_version.py @@ -1,2 +1,2 @@ -version_info = (0, 16, 1) +version_info = (0, 16, 2) __version__ = ".".join(map(str, version_info)) diff --git a/mpl_interactions/helpers.py b/mpl_interactions/helpers.py index 5382ee10..e147d53b 100644 --- a/mpl_interactions/helpers.py +++ b/mpl_interactions/helpers.py @@ -480,7 +480,7 @@ def create_mpl_selection_slider(ax, label, values, slider_format_string): """ creates a slider that behaves similarly to the ipywidgets selection slider """ - slider = mwidgets.Slider(ax, label, 0, len(values), valinit=0, valstep=1) + slider = mwidgets.Slider(ax, label, 0, len(values) - 1, valinit=0, valstep=1) def update_text(val): slider.valtext.set_text(slider_format_string.format(values[int(val)]))