Removed axis limits from plotting part.

This commit is contained in:
Ludger Küperkoch 2015-06-22 14:37:47 +02:00
parent aba3997b20
commit eb153679ba

View File

@ -13,7 +13,6 @@ import matplotlib.pyplot as plt
from obspy.core import Stream, UTCDateTime from obspy.core import Stream, UTCDateTime
import warnings import warnings
def earllatepicker(X, nfac, TSNR, Pick1, iplot=None): def earllatepicker(X, nfac, TSNR, Pick1, iplot=None):
''' '''
Function to derive earliest and latest possible pick after Diehl & Kissling (2009) Function to derive earliest and latest possible pick after Diehl & Kissling (2009)
@ -258,8 +257,6 @@ def fmpicker(Xraw, Xfilt, pickwin, Pick, iplot=None):
loc='best') loc='best')
plt.text(Pick + 0.02, max(xraw) / 2, '%s' % FM, fontsize=14) plt.text(Pick + 0.02, max(xraw) / 2, '%s' % FM, fontsize=14)
ax = plt.gca() ax = plt.gca()
ax.set_xlim(
[t[islope1[0][0]] - 0.1, t[islope1[0][len(islope1) - 1]] + 0.3])
plt.yticks([]) plt.yticks([])
plt.title('First-Motion Determination, %s, Unfiltered Data' % Xraw[ plt.title('First-Motion Determination, %s, Unfiltered Data' % Xraw[
0].stats.station) 0].stats.station)
@ -275,8 +272,6 @@ def fmpicker(Xraw, Xfilt, pickwin, Pick, iplot=None):
p4, = plt.plot(t[islope2], datafit2, '--g', linewidth=2) p4, = plt.plot(t[islope2], datafit2, '--g', linewidth=2)
plt.text(Pick + 0.02, max(xraw) / 2, '%s' % FM, fontsize=14) plt.text(Pick + 0.02, max(xraw) / 2, '%s' % FM, fontsize=14)
ax = plt.gca() ax = plt.gca()
ax.set_xlim(
[t[islope2[0][0]] - 0.1, t[islope2[0][len(islope2) - 1]] + 0.3])
plt.xlabel('Time [s] since %s' % Xraw[0].stats.starttime) plt.xlabel('Time [s] since %s' % Xraw[0].stats.starttime)
plt.yticks([]) plt.yticks([])
plt.show() plt.show()