diff options
author | Volker Hoffmann <volker@cheleb.net> | 2013-04-03 09:01:10 +0200 |
---|---|---|
committer | Volker Hoffmann <volker@cheleb.net> | 2013-04-03 09:01:10 +0200 |
commit | 345726e5dbf3008eb3e5e4420fb6d3e38df2ba5b (patch) | |
tree | c33e947d9d5f7d187086c67f721c425a3906b328 | |
parent | 0cb4f81ef70ef7aa567562bdb41cac8ba58697bf (diff) |
set ylim on Q(R) plots
-rw-r--r-- | plots.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |