From 18f8fc25a87eb5b8afa7ea688b2528e6ef7a9196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Fri, 23 Sep 2016 10:25:48 +0200 Subject: [PATCH] Marginal changes. --- pylot/core/analysis/magnitude.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pylot/core/analysis/magnitude.py b/pylot/core/analysis/magnitude.py index b65c9ab2..a772059f 100644 --- a/pylot/core/analysis/magnitude.py +++ b/pylot/core/analysis/magnitude.py @@ -192,7 +192,7 @@ class WApp(Magnitude): self.wapp = np.max(sqH[iwin]) print ("Determined Wood-Anderson peak-to-peak amplitude: %f mm") % self.wapp - if self.getiplot() > 1: + if self.getiplot() == 0: stream.plot() f = plt.figure(2) plt.plot(th, sqH) @@ -468,7 +468,7 @@ def calcsourcespec(wfstream, onset, metadata, vp, delta, azimuth, incidence, except TypeError as er: raise TypeError('''{0}'''.format(er)) - if iplot > 1: + if iplot == 0: f1 = plt.figure() tLdat = np.arange(0, len(Ldat) * 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" \ % (fc, w0)) - if iplot > 1: + if iplot == 0: plt.figure(iplot) plt.loglog(f, S, 'k') plt.loglog([f[0], fc], [w0, w0], 'g')