Skip to content

Added description to widget example programs except Cursor and Menu #9478

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 21, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions examples/widgets/buttons.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Buttons
=======

Constructing a simple button GUI to modify a sine wave.

The ``next`` and ``previous`` button widget helps visualize the wave with
new frequencies.
"""

import numpy as np
Expand Down
5 changes: 5 additions & 0 deletions examples/widgets/check_buttons.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
Check Buttons
=============

Turning visual elements on and off with check buttons.

This program shows the use of 'Check Buttons' which is similar to
check boxes. There are 3 different sine waves shown and we can choose which
waves are displayed with the check buttons.
"""
import numpy as np
import matplotlib.pyplot as plt
Expand Down
5 changes: 5 additions & 0 deletions examples/widgets/lasso_selector_demo_sgskip.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
Lasso Selector Demo
===================

Interactively selecting data points with the lasso tool.

This examples plots a scatter plot. You can then select a few points by drawing
a lasso loop around the points on the graph. To draw, just click
on the graph, hold, and drag it around the points you need to select.
"""
from __future__ import print_function

Expand Down
5 changes: 5 additions & 0 deletions examples/widgets/multicursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
Multicursor
===========

Showing a cursor on multiple plots simultaneously.

This example generates two subplots and on hovering
the cursor over data in one subplot, the values of that datapoint
are shown in both respectively.
"""
import numpy as np
import matplotlib.pyplot as plt
Expand Down
5 changes: 5 additions & 0 deletions examples/widgets/radio_buttons.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
Radio Buttons
=============

Using radio buttons to choose properties of your plot.

Radio buttons let you choose between multiple options in a visualization.
In this case, the buttons let the user choose one of the three different sine
waves to be shown in the plot.
"""
import numpy as np
import matplotlib.pyplot as plt
Expand Down
5 changes: 5 additions & 0 deletions examples/widgets/slider_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
Slider Demo
===========

Using the slider widget to control visual properties of your plot.

In this example, a slider is used to choose the frequency of a sine
wave. You can control many continuously-varying properties of your plot in
this way.
"""
import numpy as np
import matplotlib.pyplot as plt
Expand Down
5 changes: 5 additions & 0 deletions examples/widgets/textbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
Textbox
=======
Allowing text input with the Textbox widget.
You can use the Textbox widget to let users provide any text that needs to be
displayed, including formulas. You can use a submit button to create plots
with the given input.
"""

import numpy as np
Expand Down