Hi Matthew,

You could try to make two views (one for raw, onefor spectrogram) and link
it with setXLink function.
http://www.pyqtgraph.org/documentation/graphicsItems/viewbox.html#pyqtgraph.ViewBox.setXLink


Cheers,
Vasilije

On Sun, Sep 1, 2019 at 4:23 PM Matthew Martin <[email protected]> wrote:

>
> 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
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pyqtgraph/f577e9de-4a16-491b-8f8c-13a91919b35e%40googlegroups.com
> <https://groups.google.com/d/msgid/pyqtgraph/f577e9de-4a16-491b-8f8c-13a91919b35e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyqtgraph/CAD_qyJpt98DkRcGbG603dACki1EUAvWt%3De5jHDqt0My7vN_6sA%40mail.gmail.com.

Reply via email to