File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 8
8
The RangeSlider widget can be used similarly to the `.widgets.Slider`
9
9
widget. The major difference is that RangeSlider's ``val`` attribute
10
10
is a tuple of floats ``(lower val, upper val)`` rather than a single float.
11
+
12
+ See :doc:`/gallery/widgets/slider_demo` for an example of using
13
+ ``Slider``s to control a single float.
14
+
15
+ See :doc:`/gallery/widgets/slider_snap_demo` for an example of having
16
+ the ``Slider``s snap to discrete values.
11
17
"""
12
18
13
19
import numpy as np
Original file line number Diff line number Diff line change 6
6
In this example, sliders are used to control the frequency and amplitude of
7
7
a sine wave.
8
8
9
- For an example of having the slider snap to discrete values see
10
- :doc:`/gallery/widgets/slider_snap_demo` .
9
+ See :doc:`/gallery/widgets/slider_snap_demo` for an example of having
10
+ the ``Slider``s snap to discrete values .
11
11
12
- For an example of using a `matplotlib. widgets.RangeSlider` to define a range
13
- of values see :doc:`/gallery/widgets/range_slider` .
12
+ See :doc:`/gallery/ widgets/range_slider` for an example of using
13
+ ``RangeSlider``s to define a range of values .
14
14
"""
15
15
import numpy as np
16
16
import matplotlib .pyplot as plt
Original file line number Diff line number Diff line change 8
8
In this example the Freq slider is constrained to be multiples of pi, and the
9
9
Amp slider uses an array as the ``valstep`` argument to more densely sample
10
10
the first part of its range.
11
+
12
+ See :doc:`/gallery/widgets/slider_demo` for an example of using
13
+ ``Slider``s to control a single float.
14
+
15
+ See :doc:`/gallery/widgets/range_slider` for an example of using
16
+ ``RangeSlider``s to define a range of values.
11
17
"""
12
18
import numpy as np
13
19
import matplotlib .pyplot as plt
You can’t perform that action at this time.
0 commit comments