Skip to content

Commit

Permalink
Minor correction to plotting.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosertoli committed Nov 3, 2023
1 parent 69c9c5e commit bc9b842
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions indica/operators/tomo_asymmetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ def example_run():
)
print("...and finished \n")

los_transform.plot()

for t in bckc.t:
plt.ioff()

Expand All @@ -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()
Expand All @@ -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()


Expand Down

0 comments on commit bc9b842

Please sign in to comment.