From bc9b84232035b42a36fd4b6a3033c01989a31324 Mon Sep 17 00:00:00 2001 From: Marco Sertoli Date: Fri, 3 Nov 2023 10:53:31 +0000 Subject: [PATCH] Minor correction to plotting. --- indica/operators/tomo_asymmetry.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/indica/operators/tomo_asymmetry.py b/indica/operators/tomo_asymmetry.py index bd3fcb8f..2a3c7eac 100644 --- a/indica/operators/tomo_asymmetry.py +++ b/indica/operators/tomo_asymmetry.py @@ -235,6 +235,8 @@ def example_run(): ) print("...and finished \n") + los_transform.plot() + for t in bckc.t: plt.ioff() @@ -256,6 +258,7 @@ def example_run(): ) bckc.sel(t=t).plot(**kwargs_bckc) plt.title("LOS integrals") + plt.legend() plt.figure() profile_2d.sel(t=t).plot() @@ -269,6 +272,7 @@ def example_run(): profile_2d.sel(t=t).sel(z=0, method="nearest").plot(**kwargs_phantom) profile_2d_bckc.sel(t=t).sel(z=0, method="nearest").plot(**kwargs_bckc) plt.title("Midplane cut (z=0)") + plt.legend() plt.show()