Best way to link two graphs

29 views
Skip to first unread message

Matthew Martin

unread,
Sep 1, 2019, 7:23:52 PM9/1/19
to pyqtgraph

Hello,

I wish to make a UI that contains two graphs, one over the other, and have them linked on the timeline.

The bottom graph will represent a raw audio signal and the top graph the spectrogram of that signal.  When I scroll either graph I wish for the other graph to scroll with it to the corresponding location. Additionally, when I zoom in on one, I would like the other to adjust.

Of course I know I could do this manually with events, but I was curious as to whether other built-in methods might be available.

Cheers

vas...@gmail.com

unread,
Sep 1, 2019, 8:04:38 PM9/1/19
to pyqt...@googlegroups.com
Hi Matthew,

You could try to make two views (one for raw, onefor spectrogram) and link it with setXLink function.

Cheers,
Vasilije

--
You received this message because you are subscribed to the Google Groups "pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyqtgraph+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/f577e9de-4a16-491b-8f8c-13a91919b35e%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages