Skip to content

Commit

Permalink
new ways of displaying animations
Browse files Browse the repository at this point in the history
  • Loading branch information
psotom committed Aug 15, 2024
1 parent 98b24ff commit afb4095
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/plot_langevin_dynamics.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def initial_distribution(

plt.contour(X, Y, Z, levels=25, cmap='autumn')
plt.quiver(X_score, Y_score, score_x_coord, score_y_coord, scale=200)
rc('animation', html='html5')
rc('animation', html='jshmtl')
scatter = None


Expand Down
2 changes: 1 addition & 1 deletion examples/plot_sde_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def theoretical_pdf(
epsilon_t = 1.0e-10 # Avoids evaluating singular pdf at t_0
times = np.linspace(t_0 + epsilon_t, t_n, 100)
fig, ax = plt.subplots(2, 1, figsize=(7, 10))
rc('animation', html='html5')
rc('animation', html='jshtml')

# Creation of the plot.
ax[0].set_xlim(t_0, t_n)
Expand Down

0 comments on commit afb4095

Please sign in to comment.