Skip to content

Commit

Permalink
update colorbar limit
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichen3 committed Oct 15, 2024
1 parent eecbdf5 commit 3c63920
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Exec/science/xrb_spherical/analysis/slice.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ def slice(fname:str, field:str,
sp.set_cmap(field, "viridis")
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")
elif field == "enuc":
sp.set_zlim(f, 1.e18, 1.e20)
elif field == "density":
sp.set_zlim(f, 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 3c63920

Please sign in to comment.