exam version

This commit is contained in:
Yael-II
2025-01-30 09:58:59 +01:00
parent bb1e6c1f12
commit 903f9b1a71
33 changed files with 3 additions and 4 deletions

View File

@@ -140,7 +140,7 @@ for h in h_range:
color=colors['RK4'],
label="RK4")
ax.set_title("$\\Var{{t}} = {:.4f}$".format(h))
ax.set_title("$h = {:.4f}$".format(h))
ax.set_xlabel("$x$")
ax.set_ylabel("$y$")
ax.set_aspect("equal")
@@ -177,7 +177,7 @@ for h in h_range:
axs[i].set_aspect("equal")
fig.suptitle("$\\Var{{t}} = {:.4f}$".format(h))
#fig.suptitle("$\\Var{{t}} = {:.4f}$".format(h))
axs[0].set_xlabel("$x$")
axs[0].set_ylabel("$y$")
axs[0].legend(loc="upper left")

View File

@@ -64,7 +64,7 @@ def hh(W):
Y = W[1]
POT = pot.hh_potential(W, position_only=True)
fig, ax = plt.subplots(1)
ax.set_title("HénonHeils potential")
ax.set_title("Hénon--Heils potential")
pcm = ax.pcolormesh(X, Y, POT)
fig.colorbar(pcm, label="potential")
ax.set_aspect("equal")
@@ -73,7 +73,6 @@ def hh(W):
fig.savefig("Figs/pot_hh.png")
return 0
if __name__ == "__main__":
kepler(W)
hh(W)