add velr plot

This commit is contained in:
Noe Brucy
2024-11-28 11:44:28 +01:00
parent e1375ce336
commit 62b0ced60d

View File

@@ -57,6 +57,13 @@ def ring_stuff(galsec, delta_r=1):
plt.xlabel("R [kpc]")
plt.savefig("rotation_curve.png")
plt.figure(constrained_layout=True, figsize=(5,4))
velr = galsec.rings['gas']["velr"]
plt.plot(r_gas, velr)
plt.ylabel(r"$v_r$ [km/s]")
plt.xlabel("R [kpc]")
plt.savefig("vr.png")
plt.figure(constrained_layout=True, figsize=(5,4))
sigma_velphi = galsec.rings['gas']["sigma_velphi"]