aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Hoffmann <volker@cheleb.net>2013-03-26 08:43:26 +0100
committerVolker Hoffmann <volker@cheleb.net>2013-03-26 08:43:36 +0100
commit56788d5d1c0e2844b68c2d9a9a13d190575fe69a (patch)
treefa89a168460cbc68486c6d84d34808d70dddbc85
parente3a74c6fac7740059db00baf9cce115e888d3789 (diff)
time unit = 2*pi = 1yr for MdotR plots
-rw-r--r--plots.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/plots.py b/plots.py
index 72f7066..c2f594d 100644
--- a/plots.py
+++ b/plots.py
@@ -415,9 +415,9 @@ def plot_MdotR(iout, \
plt.xlabel('Radius (Arbitrary Units)')
plt.ylabel('Mass Flow (Mstar/yr) [1yr=2pi <> 1 Orbit @ R=1]')
if yscale == 'log':
- plt.title('Log10 Mass Flow, t = (%.2f, %.2f)' % ( npz["tout1"], npz["tout2"] ))
+ plt.title('Log10 Mass Flow, t = (%.2f, %.2f) [yr]' % ( npz["tout1"]/2./pi, npz["tout2"]/2./pi ))
elif yscale == 'lin':
- plt.title('Mass Flow, t = (%.2f, %.2f)' % ( npz["tout1"], npz["tout2"] ))
+ plt.title('Mass Flow, t = (%.2f, %.2f) [yr]' % ( npz["tout1"]/2./pi, npz["tout2"]/2./pi ))
if save:
plt.savefig('MdotR_%05d.%s' % ( iout, ftype ))