Skip to content

Small improvements to interactive examples #21835

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
Dec 16, 2021
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
8 changes: 8 additions & 0 deletions examples/animation/pause_resume.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@

- using the Animation.pause() method to pause an animation.
- using the Animation.resume() method to resume an animation.

.. note::
This example exercises the interactive capabilities of Matplotlib, and this
will not appear in the static documentation. Please run this code on your
machine to see the interactivity.

You can copy and paste individual parts, or download the entire example
using the link at the bottom of the page.
"""

import matplotlib.pyplot as plt
Expand Down
8 changes: 8 additions & 0 deletions examples/event_handling/close_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
===========

Example to show connecting events that occur when the figure closes.

.. note::
This example exercises the interactive capabilities of Matplotlib, and this
will not appear in the static documentation. Please run this code on your
machine to see the interactivity.

You can copy and paste individual parts, or download the entire example
using the link at the bottom of the page.
"""
import matplotlib.pyplot as plt

Expand Down
8 changes: 8 additions & 0 deletions examples/event_handling/coords_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@

An example of how to interact with the plotting canvas by connecting to move
and click events.

.. note::
This example exercises the interactive capabilities of Matplotlib, and this
will not appear in the static documentation. Please run this code on your
machine to see the interactivity.

You can copy and paste individual parts, or download the entire example
using the link at the bottom of the page.
"""

from matplotlib.backend_bases import MouseButton
Expand Down
8 changes: 8 additions & 0 deletions examples/event_handling/data_browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
This example covers how to interact data with multiple canvases. This
let's you select and highlight a point on one axis, and generating the
data of that point on the other axis.

.. note::
This example exercises the interactive capabilities of Matplotlib, and this
will not appear in the static documentation. Please run this code on your
machine to see the interactivity.

You can copy and paste individual parts, or download the entire example
using the link at the bottom of the page.
"""
import numpy as np

Expand Down
8 changes: 8 additions & 0 deletions examples/event_handling/figure_axes_enter_leave.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@

Illustrate the figure and Axes enter and leave events by changing the
frame colors on enter and leave.

.. note::
This example exercises the interactive capabilities of Matplotlib, and this
will not appear in the static documentation. Please run this code on your
machine to see the interactivity.

You can copy and paste individual parts, or download the entire example
using the link at the bottom of the page.
"""
import matplotlib.pyplot as plt

Expand Down
9 changes: 6 additions & 3 deletions examples/event_handling/ginput_manual_clabel_sgskip.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@
This provides examples of uses of interactive functions, such as ginput,
waitforbuttonpress and manual clabel placement.

This script must be run interactively using a backend that has a
graphical user interface (for example, using GTK3Agg backend, but not
PS backend).
.. note::
This example exercises the interactive capabilities of Matplotlib, and this
will not appear in the static documentation. Please run this code on your
machine to see the interactivity.

You can copy and paste individual parts, or download the entire example
using the link at the bottom of the page.
"""

import time
Expand Down
8 changes: 8 additions & 0 deletions examples/event_handling/image_slices_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
===================

Scroll through 2D image slices of a 3D array.

.. note::
This example exercises the interactive capabilities of Matplotlib, and this
will not appear in the static documentation. Please run this code on your
machine to see the interactivity.

You can copy and paste individual parts, or download the entire example
using the link at the bottom of the page.
"""

import numpy as np
Expand Down
8 changes: 8 additions & 0 deletions examples/event_handling/keypress_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
==============

Show how to connect to keypress events.

.. note::
This example exercises the interactive capabilities of Matplotlib, and this
will not appear in the static documentation. Please run this code on your
machine to see the interactivity.

You can copy and paste individual parts, or download the entire example
using the link at the bottom of the page.
"""
import sys
import numpy as np
Expand Down
8 changes: 8 additions & 0 deletions examples/event_handling/lasso_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@

This is currently a proof-of-concept implementation (though it is
usable as is). There will be some refinement of the API.

.. note::
This example exercises the interactive capabilities of Matplotlib, and this
will not appear in the static documentation. Please run this code on your
machine to see the interactivity.

You can copy and paste individual parts, or download the entire example
using the link at the bottom of the page.
"""

from matplotlib import colors as mcolors, path
Expand Down
8 changes: 8 additions & 0 deletions examples/event_handling/legend_picking.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
==============

Enable picking on the legend to toggle the original line on and off

.. note::
This example exercises the interactive capabilities of Matplotlib, and this
will not appear in the static documentation. Please run this code on your
machine to see the interactivity.

You can copy and paste individual parts, or download the entire example
using the link at the bottom of the page.
"""

import numpy as np
Expand Down
8 changes: 8 additions & 0 deletions examples/event_handling/looking_glass.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
=============

Example using mouse events to simulate a looking glass for inspecting data.

.. note::
This example exercises the interactive capabilities of Matplotlib, and this
will not appear in the static documentation. Please run this code on your
machine to see the interactivity.

You can copy and paste individual parts, or download the entire example
using the link at the bottom of the page.
"""
import numpy as np
import matplotlib.pyplot as plt
Expand Down
8 changes: 8 additions & 0 deletions examples/event_handling/path_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@

This example demonstrates a cross-GUI application using Matplotlib event
handling to interact with and modify objects on the canvas.

.. note::
This example exercises the interactive capabilities of Matplotlib, and this
will not appear in the static documentation. Please run this code on your
machine to see the interactivity.

You can copy and paste individual parts, or download the entire example
using the link at the bottom of the page.
"""

import numpy as np
Expand Down
Loading