Marginal changes.

This commit is contained in:
Ludger Küperkoch 2016-09-23 10:25:48 +02:00
parent a215ba35b1
commit 18f8fc25a8

View File

@ -192,7 +192,7 @@ class WApp(Magnitude):
self.wapp = np.max(sqH[iwin]) self.wapp = np.max(sqH[iwin])
print ("Determined Wood-Anderson peak-to-peak amplitude: %f mm") % self.wapp print ("Determined Wood-Anderson peak-to-peak amplitude: %f mm") % self.wapp
if self.getiplot() > 1: if self.getiplot() == 0:
stream.plot() stream.plot()
f = plt.figure(2) f = plt.figure(2)
plt.plot(th, sqH) plt.plot(th, sqH)
@ -468,7 +468,7 @@ def calcsourcespec(wfstream, onset, metadata, vp, delta, azimuth, incidence,
except TypeError as er: except TypeError as er:
raise TypeError('''{0}'''.format(er)) raise TypeError('''{0}'''.format(er))
if iplot > 1: if iplot == 0:
f1 = plt.figure() f1 = plt.figure()
tLdat = np.arange(0, len(Ldat) * zdat[0].stats.delta, \ tLdat = np.arange(0, len(Ldat) * zdat[0].stats.delta, \
zdat[0].stats.delta) zdat[0].stats.delta)
@ -589,7 +589,7 @@ def fitSourceModel(f, S, fc0, iplot):
print("fitSourceModel: best fc: %fHz, best w0: %e m/Hz" \ print("fitSourceModel: best fc: %fHz, best w0: %e m/Hz" \
% (fc, w0)) % (fc, w0))
if iplot > 1: if iplot == 0:
plt.figure(iplot) plt.figure(iplot)
plt.loglog(f, S, 'k') plt.loglog(f, S, 'k')
plt.loglog([f[0], fc], [w0, w0], 'g') plt.loglog([f[0], fc], [w0, w0], 'g')