miili / StreamPick

A PyQt frontend to pick seismic wave arrival times in an ObsPy Stream object and export those in QuakeML format.
GNU General Public License v2.0
19 stars 11 forks source link

Doesn't work with matplotlib 1.5.1 #6

Open claudiodsf opened 7 years ago

claudiodsf commented 7 years ago

Hi, I tried to use StreamPick with latest matplotlib (1.5.1) but it doesn't work out of the box. A quick-and-dirty fix for having the window is this:

diff --git a/streamPick.py b/streamPick.py
index 00057dd..2debdda 100644
--- a/streamPick.py
+++ b/streamPick.py
@@ -206,8 +206,8 @@ class streamPick(QtGui.QMainWindow):
         self.fig.clear()
         self._appFilter(draw=False)
         for _i, tr in enumerate(self._current_st):
-            ax = self.fig.add_subplot(num_plots, 1, _i)
-            ax.plot(tr.data, 'k', antialiased=True, rasterized=True, lod=False)
+            ax = self.fig.add_subplot(num_plots, 1, _i+1)
+            ax.plot(tr.data, 'k', antialiased=True, rasterized=True)#, lod=False)
             ax.axhline(0, color='k', alpha=.05)
             ax.set_xlim([0, tr.data.size])
             ax.text(.02, .925, self._current_st[_i].id,

but I didn't look into why it works...

In any case, even with this fix, I'm not able to pick, since hotkeys (q, w) don't work.

miili commented 7 years ago

Hi Claudio,

Thanks for your contribution. However, I would like to refer the pyrocko project as the development of this app is no longer pursuit.

See www.pyrocko.org and the snuffler for extensive data inspection and phase picking ;)

best,

Marius