From 1a22b17c56aa9eda31c0298d5af48e7dacf5b053 Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Tue, 19 Nov 2024 20:41:28 -0500 Subject: [PATCH] fix field name in xrb_spherical plotting script (#2996) --- Exec/science/xrb_spherical/analysis/slice.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Exec/science/xrb_spherical/analysis/slice.py b/Exec/science/xrb_spherical/analysis/slice.py index 7e55d3848f..b0ec8e40f0 100755 --- a/Exec/science/xrb_spherical/analysis/slice.py +++ b/Exec/science/xrb_spherical/analysis/slice.py @@ -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}")