Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 13, 2024
1 parent 2859caf commit 80465da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/image/matplotlib_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
# %%
# Example of making sliders in Matplotlib (source: https://sphinx-gallery.github.io/stable/auto_examples/plot_8_animations.html)

import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import matplotlib.pyplot as plt
import numpy as np

# Adapted from
# https://matplotlib.org/gallery/animation/basic_example.html
Expand All @@ -22,4 +22,4 @@ def _update_line(num):
data = np.random.RandomState(0).rand(2, 25)
(line,) = ax.plot([], [], "r-")
ax.set(xlim=(0, 1), ylim=(0, 1))
ani = animation.FuncAnimation(fig, _update_line, 25, interval=100, blit=True)
ani = animation.FuncAnimation(fig, _update_line, 25, interval=100, blit=True)

0 comments on commit 80465da

Please sign in to comment.