From bd84b8272bc2615f5dd28d972117ddfe683269a5 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Sun, 21 Jan 2018 21:31:37 +0000 Subject: [PATCH] Add 'val' attribute to slider doc --- lib/matplotlib/widgets.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/matplotlib/widgets.py b/lib/matplotlib/widgets.py index d86a1dc0f59a..c821c3285507 100644 --- a/lib/matplotlib/widgets.py +++ b/lib/matplotlib/widgets.py @@ -262,10 +262,14 @@ class Slider(AxesWidget): """ A slider representing a floating point range. - Create a slider from `valmin` to `valmax` in axes `ax`. For the slider to - remain responsive you must maintain a reference to it. + Create a slider from *valmin* to *valmax* in axes *ax*. For the slider to + remain responsive you must maintain a reference to it. Call + :meth:`on_changed` to connect to the slider event. - Call :meth:`on_changed` to connect to the slider event + Attributes + ---------- + val : float + Slider value. """ def __init__(self, ax, label, valmin, valmax, valinit=0.5, valfmt='%1.2f', closedmin=True, closedmax=True, slidermin=None,