Skip to content

Auto backport of pr 24897 on v3.7.x #24947

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

- using a generator to drive an animation,
- changing axes limits during an animation.

Output generated via `matplotlib.animation.Animation.to_jshtml`.
"""

import itertools
Expand Down
2 changes: 2 additions & 0 deletions examples/animation/animated_histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ def animate(frame_number):
# ``prepare_animation`` will define ``animate`` function working with supplied
# `.BarContainer`, all this is used to setup `.FuncAnimation`.

# Output generated via `matplotlib.animation.Animation.to_jshtml`.

fig, ax = plt.subplots()
_, _, bar_container = ax.hist(data, HIST_BINS, lw=1,
ec="yellow", fc="green", alpha=0.5)
Expand Down
2 changes: 2 additions & 0 deletions examples/animation/animation_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
examples that use it.

Note that calling `time.sleep` instead of `~.pyplot.pause` would *not* work.

Output generated via `matplotlib.animation.Animation.to_jshtml`.
"""

import matplotlib.pyplot as plt
Expand Down
2 changes: 2 additions & 0 deletions examples/animation/bayes_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
new data arrives.
The vertical line represents the theoretical value to which the plotted
distribution should converge.

Output generated via `matplotlib.animation.Animation.to_jshtml`.
"""

import math
Expand Down
2 changes: 2 additions & 0 deletions examples/animation/double_pendulum.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

Double pendulum formula translated from the C code at
http://www.physics.usyd.edu.au/~wheat/dpend_html/solve_dpend.c

Output generated via `matplotlib.animation.Animation.to_jshtml`.
"""

from numpy import sin, cos
Expand Down
1 change: 1 addition & 0 deletions examples/animation/dynamic_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Animated image using a precomputed list of images
=================================================

Output generated via `matplotlib.animation.Animation.to_jshtml`.
"""

import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions examples/animation/frame_grabbing_sgskip.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
Use a MovieWriter directly to grab individual frames and write them to a
file. This avoids any event loop integration, and thus works even with the Agg
backend. This is not recommended for use in an interactive setting.

Output generated via `matplotlib.animation.Animation.to_jshtml`.
"""

import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions examples/animation/multiple_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

- how animation across multiple subplots works,
- using a figure artist in the animation.

Output generated via `matplotlib.animation.Animation.to_jshtml`.
"""

import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions examples/animation/pause_resume.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

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

Output generated via `matplotlib.animation.Animation.to_jshtml`.
"""

import matplotlib.pyplot as plt
Expand Down
2 changes: 2 additions & 0 deletions examples/animation/rain.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
of 50 scatter points.

Author: Nicolas P. Rougier

Output generated via `matplotlib.animation.Animation.to_jshtml`.
"""

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions examples/animation/random_walk.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Animated 3D random walk
=======================

Output generated via `matplotlib.animation.Animation.to_jshtml`.
"""

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions examples/animation/simple_anim.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Animated line plot
==================

Output generated via `matplotlib.animation.Animation.to_jshtml`.
"""

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions examples/animation/simple_scatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Animated scatter saved as GIF
=============================

Output generated via `matplotlib.animation.Animation.to_jshtml`.
"""
import numpy as np
import matplotlib.pyplot as plt
Expand Down
2 changes: 2 additions & 0 deletions examples/animation/strip_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
============

Emulates an oscilloscope.

Output generated via `matplotlib.animation.Animation.to_jshtml`.
"""

import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions examples/animation/unchained.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
(mostly known because of the cover for Joy Division's Unknown Pleasures).

Author: Nicolas P. Rougier

Output generated via `matplotlib.animation.Animation.to_jshtml`.
"""

import numpy as np
Expand Down