We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b50b84 commit b1ca2a5Copy full SHA for b1ca2a5
doc/users/next_whats_new/sliders_callable_valfmt.rst
@@ -0,0 +1,9 @@
1
+Callable ``valfmt`` for ``Slider`` and ``RangeSlider``
2
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3
+
4
+The ``valfmt`` argument of the `~.matplotlib.widgets.Slider` and
5
+`~.matplotlib.widgets.RangeSlider` can be a callable now. It should accept the
6
+values as floats, and return a string to be displayed on the figure. In the
7
+case of `~.matplotlib.widgets.RangeSlider` the callable should accept 2 floats
8
+for the minimal and maximal value of the range, and in the case of
9
+`~.matplotlib.widgets.Slider` it should accept 1 float.
0 commit comments