From 83bf2fe4b2cad4a2b40266e74d1872d90da9609c Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Tue, 18 Jun 2024 16:01:42 -0400 Subject: [PATCH 1/2] some tweaks to the vol render for xrb_layered --- Exec/science/xrb_layered/analysis/vol-zvel.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Exec/science/xrb_layered/analysis/vol-zvel.py b/Exec/science/xrb_layered/analysis/vol-zvel.py index 013a772f75..d64471a868 100644 --- a/Exec/science/xrb_layered/analysis/vol-zvel.py +++ b/Exec/science/xrb_layered/analysis/vol-zvel.py @@ -62,8 +62,8 @@ def doit(plotfile): cam.position = [2.5*ds.domain_right_edge[0], 2.5*ds.domain_right_edge[1], - center[2]+0.25*ds.domain_right_edge[2]] - + center[2]+0.5*ds.domain_right_edge[2]] + # look toward the center -- we are dealing with an octant normal = (center - cam.position) normal /= np.sqrt(normal.dot(normal)) @@ -71,6 +71,7 @@ def doit(plotfile): cam.switch_orientation(normal_vector=normal, north_vector=[0., 0., 1.]) cam.set_width(ds.domain_width) + cam.zoom(1.3) sc.camera = cam @@ -81,10 +82,11 @@ def doit(plotfile): sc.save(f"{plotfile}_zvel_axes.png", sigma_clip=3.0) sc.save_annotated(f"{plotfile}_zvel_annotated.png", - sigma_clip=4.0, label_fmt="%.2f", + sigma_clip=4.0, #label_fmt="%6.2g", + label_fontsize="16", text_annotate=[[(0.05, 0.05), - f"t = {ds.current_time.d:7.5f} s", - dict(horizontalalignment="left")]]) + f"t = {ds.current_time.d:6.4f} s", + dict(horizontalalignment="left", fontsize=16)]]) if __name__ == "__main__": From f17f4748c8d892eb7c209b4bd810e2d80bf9d7f3 Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Tue, 18 Jun 2024 16:02:31 -0400 Subject: [PATCH 2/2] whitespace --- Exec/science/xrb_layered/analysis/vol-zvel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Exec/science/xrb_layered/analysis/vol-zvel.py b/Exec/science/xrb_layered/analysis/vol-zvel.py index d64471a868..f780d24391 100644 --- a/Exec/science/xrb_layered/analysis/vol-zvel.py +++ b/Exec/science/xrb_layered/analysis/vol-zvel.py @@ -63,7 +63,7 @@ def doit(plotfile): cam.position = [2.5*ds.domain_right_edge[0], 2.5*ds.domain_right_edge[1], center[2]+0.5*ds.domain_right_edge[2]] - + # look toward the center -- we are dealing with an octant normal = (center - cam.position) normal /= np.sqrt(normal.dot(normal))