Skip to content

Commit

Permalink
Merge branch 'development' into 2d_spherical_plm
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichen3 authored Nov 20, 2024
2 parents eec027f + 1a22b17 commit 04ab239
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 04ab239

Please sign in to comment.