Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b0730ee

Browse files
committed
Link between all the slider examples.
1 parent 411bdde commit b0730ee

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

examples/widgets/range_slider.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
The RangeSlider widget can be used similarly to the `.widgets.Slider`
99
widget. The major difference is that RangeSlider's ``val`` attribute
1010
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.
1117
"""
1218

1319
import numpy as np

examples/widgets/slider_demo.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
In this example, sliders are used to control the frequency and amplitude of
77
a sine wave.
88
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.
1111
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.
1414
"""
1515
import numpy as np
1616
import matplotlib.pyplot as plt

examples/widgets/slider_snap_demo.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
In this example the Freq slider is constrained to be multiples of pi, and the
99
Amp slider uses an array as the ``valstep`` argument to more densely sample
1010
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.
1117
"""
1218
import numpy as np
1319
import matplotlib.pyplot as plt

0 commit comments

Comments
 (0)