summaryrefslogtreecommitdiffstats
path: root/plot_rho_rz.py
diff options
context:
space:
mode:
Diffstat (limited to 'plot_rho_rz.py')
-rw-r--r--plot_rho_rz.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/plot_rho_rz.py b/plot_rho_rz.py
index 046c544..38b9629 100644
--- a/plot_rho_rz.py
+++ b/plot_rho_rz.py
@@ -27,11 +27,11 @@ for iout in iouts:
disk = Disk(iout)
disk.load_npz_minmax()
if first:
- rho_rz_lo = disk.rho_rz_min; rho_rz_hi = disk.rho_rz_max
+ rho_rz_lo = disk.rho_rz_min_gt0; rho_rz_hi = disk.rho_rz_max_gt0
first = False
else:
- if disk.rho_rz_min < rho_rz_lo: rho_rz_lo = disk.rho_rz_min
- if disk.rho_rz_max > rho_rz_hi: rho_rz_hi = disk.rho_rz_max
+ if disk.rho_rz_min_gt0 < rho_rz_lo: rho_rz_lo = disk.rho_rz_min_gt0
+ if disk.rho_rz_max_gt0 > rho_rz_hi: rho_rz_hi = disk.rho_rz_max_gt0
rho_rz_lim = [np.log10(rho_rz_lo), np.log10(rho_rz_hi)]