Skip to content

Commit b1ca2a5

Browse files
committed
{,Range}Slider: Add release notes for valfmt arguments
1 parent 2b50b84 commit b1ca2a5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)