I am interested in embedding an ICA component time-series plot into our own GUI. We would like the robust characteristics of the current mne-qt-browser.
Is it possible to use mne-qt-browser to plot an ICA time series?
Is it possible to extract a Widget from mne-qt-browser that contains the ICA time-series dynamic plot that we can then stick into our own GUI?
do you mean ICA.plot_sources with ICA time series? That should be already implemented.
Extracting the Plot-Widget should be also possible too but maybe not straight-forward since it is embedded into the MNEQtBrowser with all its functions.
But this weekend in fact I wanted to work on separating the core data-plot from the other elements to facilitate independent usage.
Yes all I would like to do is add a single ICA time series at a time. Say there are 15 components, then I would like to show only 1 at a time.
Is the following 3 lines you mention here sufficient for that?
I guess there’s no easy way to render a single time-trace dynamically from a set of traces, so I would possibly need to “reconstruct” an ICA object in the background to plot again each time.
Is the following 3 lines you mention here sufficient for that?
To add MNEQtBrowser to another Application this should suffice. Though there will still be all other UI-elements (toolbar, scrollbars) visible. Just the plot would be self.mne.view (instance of BrowserView). But I don’t think you can create it without MNEQtBrowser at the moment.
I guess there’s no easy way to render a single time-trace dynamically from a set of traces, so I would possibly need to “reconstruct” an ICA object in the background to plot again each time.
Yes, that would probably the easiest way, while a more hackier solution involving modifying all relevant parameters and adding traces dynamically should be possible too but also more work.
Maybe if we refactor the plot BrowserView out of MNEQtBrowser we could also expose some developer API for adding traces, modifying number of shown channels, etc. … .
Since I am working on a similar project, I might suggest a PR about that in the next days.