Skip to content

Commit

Permalink
Make as many thumbnails animations as possible.
Browse files Browse the repository at this point in the history
  • Loading branch information
moorepants committed Mar 1, 2025
1 parent d45ef37 commit 5d58666
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,6 @@ def update(t):
y_phi = r_disc * np.sin(phi)
ax.plot(x_phi, y_phi, color='black', lw=2)
ax.plot(old_x, old_y, color='magenta', lw=0.5)
# sphinx_gallery_thumbnail_number = 5
# sphinx_gallery_thumbnail_number = 4
update(2)
plt.show()
2 changes: 1 addition & 1 deletion examples-gallery/advanced/plot_car_around_pylons.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,4 +469,4 @@ def update(t):

plt.show()

# sphinx_gallery_thumbnail_number = 4
# sphinx_gallery_thumbnail_number = 3
2 changes: 1 addition & 1 deletion examples-gallery/advanced/plot_car_in_garage.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ def update(t):

# %%
# A frame from the animation.
# sphinx_gallery_thumbnail_number = 5
# sphinx_gallery_thumbnail_number = 4
fig, ax, line1, line2, line3, line4 = init()
update(4.15)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@
time_text = ax.text(0.05, 0.9, '', transform=ax.transAxes)


# sphinx_gallery_thumbnail_number = 4
def init():
line.set_data([], [])
time_text.set_text('')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ def obj_grad(free):
time_text = ax.text(0.05, 0.9, '', transform=ax.transAxes)


# sphinx_gallery_thumbnail_number = 3
def init():
line.set_data([], [])
time_text.set_text('')
Expand Down
2 changes: 1 addition & 1 deletion examples-gallery/beginner/plot_sliding_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def update(frame):
# A frame from the animation.
fig, ax = plt.subplots(figsize=(8, 8))
_, update = drucken(0, fig, ax, video=False)
# sphinx_gallery_thumbnail_number = 9
# sphinx_gallery_thumbnail_number = 4
update(100)

plt.show()
2 changes: 1 addition & 1 deletion examples-gallery/intermediate/plot_crane_moving_a_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def update(t):
# %%
# A frame from the animation.
fig, ax, line1, recht, load, pfeil = init_plot()
# sphinx_gallery_thumbnail_number = 3
# sphinx_gallery_thumbnail_number = 4
_ = update(2.0)

# %%
Expand Down
2 changes: 1 addition & 1 deletion examples-gallery/intermediate/plot_drone.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def animate(i):
# %%
# A frame from the animation.

# sphinx_gallery_thumbnail_number = 6
# sphinx_gallery_thumbnail_number = 5
frame(num_nodes - num_nodes//4)

plt.show()
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def update(t):
# %%
# A frame from the animation.
fig, ax, line1, line2, line3, pfeil1, pfeil2, boat = init_plot()
# sphinx_gallery_thumbnail_number = 3
# sphinx_gallery_thumbnail_number = 4

_ = update(3)

Expand Down
2 changes: 1 addition & 1 deletion examples-gallery/intermediate/plot_parallel_park.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def animate(i):
# %%
# A frame from the animation.

# sphinx_gallery_thumbnail_number = 7
# sphinx_gallery_thumbnail_number = 6
frame(450)

plt.show()
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def animate(i):
# A frame from the animation.
fig, ax, line1, line2, recht = animate_pendulum(times, P1_x, P1_y, P2_x, P2_y)

# sphinx_gallery_thumbnail_number = 3
# sphinx_gallery_thumbnail_number = 4
_ = animate(50)

# %%
Expand Down

0 comments on commit 5d58666

Please sign in to comment.