aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Hoffmann <volker@cheleb.net>2013-04-03 09:01:10 +0200
committerVolker Hoffmann <volker@cheleb.net>2013-04-03 09:01:10 +0200
commit345726e5dbf3008eb3e5e4420fb6d3e38df2ba5b (patch)
treec33e947d9d5f7d187086c67f721c425a3906b328
parent0cb4f81ef70ef7aa567562bdb41cac8ba58697bf (diff)
set ylim on Q(R) plots
-rw-r--r--plots.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/plots.py b/plots.py
index 74dd61c..e92c1ce 100644
--- a/plots.py
+++ b/plots.py
@@ -66,6 +66,7 @@ def plot_QR(iout, show=True, save=False):
QR = npz["QR"]
QR[QR > 10] = float('nan')
QR[QR == 0] = float('nan')
+ QR[QR < 0] = float('nan')
# Make Plot
plt.figure(1)
@@ -74,6 +75,7 @@ def plot_QR(iout, show=True, save=False):
plt.xlabel('Radius (Arbitrary Units)')
plt.ylabel('Q')
plt.title('Toomre Q, t = %.2f' % npz["tout"])
+ plt.ylim([0, 10])
if save:
plt.savefig('QR_%05d.pdf' % iout)