Skip to content

Commit 1619578

Browse files
NelleVMeeseeksDev[bot]
authored and
MeeseeksDev[bot]
committed
Backport PR #9478: Added description to widget example programs except Cursor and Menu
1 parent 4552534 commit 1619578

7 files changed

+34
-0
lines changed

examples/widgets/buttons.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Buttons
44
=======
55
6+
Constructing a simple button GUI to modify a sine wave.
7+
8+
The ``next`` and ``previous`` button widget helps visualize the wave with
9+
new frequencies.
610
"""
711

812
import numpy as np

examples/widgets/check_buttons.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
Check Buttons
44
=============
55
6+
Turning visual elements on and off with check buttons.
7+
8+
This program shows the use of 'Check Buttons' which is similar to
9+
check boxes. There are 3 different sine waves shown and we can choose which
10+
waves are displayed with the check buttons.
611
"""
712
import numpy as np
813
import matplotlib.pyplot as plt

examples/widgets/lasso_selector_demo_sgskip.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
Lasso Selector Demo
44
===================
55
6+
Interactively selecting data points with the lasso tool.
7+
8+
This examples plots a scatter plot. You can then select a few points by drawing
9+
a lasso loop around the points on the graph. To draw, just click
10+
on the graph, hold, and drag it around the points you need to select.
611
"""
712
from __future__ import print_function
813

examples/widgets/multicursor.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
Multicursor
44
===========
55
6+
Showing a cursor on multiple plots simultaneously.
7+
8+
This example generates two subplots and on hovering
9+
the cursor over data in one subplot, the values of that datapoint
10+
are shown in both respectively.
611
"""
712
import numpy as np
813
import matplotlib.pyplot as plt

examples/widgets/radio_buttons.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
Radio Buttons
44
=============
55
6+
Using radio buttons to choose properties of your plot.
7+
8+
Radio buttons let you choose between multiple options in a visualization.
9+
In this case, the buttons let the user choose one of the three different sine
10+
waves to be shown in the plot.
611
"""
712
import numpy as np
813
import matplotlib.pyplot as plt

examples/widgets/slider_demo.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
Slider Demo
44
===========
55
6+
Using the slider widget to control visual properties of your plot.
7+
8+
In this example, a slider is used to choose the frequency of a sine
9+
wave. You can control many continuously-varying properties of your plot in
10+
this way.
611
"""
712
import numpy as np
813
import matplotlib.pyplot as plt

examples/widgets/textbox.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
Textbox
44
=======
55
6+
Allowing text input with the Textbox widget.
7+
8+
You can use the Textbox widget to let users provide any text that needs to be
9+
displayed, including formulas. You can use a submit button to create plots
10+
with the given input.
611
"""
712

813
import numpy as np

0 commit comments

Comments
 (0)