Skip to content

Doesn't work with matplotlib 1.5.1 #6

Description

@claudiodsf

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions