StreamPick icon indicating copy to clipboard operation
StreamPick copied to clipboard

Doesn't work with matplotlib 1.5.1

Open claudiodsf opened this issue 9 years ago • 1 comments

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.

claudiodsf avatar Nov 02 '16 10:11 claudiodsf

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

miili avatar Nov 02 '16 18:11 miili