Skip to content

Commit

Permalink
fix field name in xrb_spherical plotting script
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Nov 20, 2024
1 parent 885e9c0 commit 10866cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Exec/science/xrb_spherical/analysis/slice.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ def slice(fname:str, field:str,
if field in ["x_velocity", "y_velocity", "z_velocity"]:
sp.set_cmap(field, "coolwarm")
elif field == "Temp":
sp.set_zlim(f, 5.e7, 2.5e9)
sp.set_cmap(f, "magma_r")
sp.set_zlim(field. 5.e7, 2.5e9)
sp.set_cmap(field, "magma_r")
elif field == "enuc":
sp.set_zlim(f, 1.e18, 1.e20)
sp.set_zlim(field, 1.e18, 1.e20)
elif field == "density":
sp.set_zlim(f, 1.e-3, 5.e8)
sp.set_zlim(field, 1.e-3, 5.e8)

# sp.annotate_text((0.05, 0.05), f"{currentTime.in_cgs():8.5f} s")
sp.save(f"{ds}_{loc}")
Expand Down

0 comments on commit 10866cf

Please sign in to comment.