You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It may be nice if the channels (set of channels) used for the TFR is highlighted in the topomaps (although the user will always know which channels the TRF is obtained from...).
Would be also cool if topomapped parts of the TFR could be set in a rectangle way (for example in time, Hz order: [(-0.2, 0), (8., 10.)]) - but that could be something for later. :)
Oh, I didn't know, thanks!
Here I meant that the topos in plot_joint would not point to a single point but to a box surrounding the defined tfr region.
It may be nice if the channels (set of channels) used for the TFR is highlighted in the topomaps (although the user will always know which channels the TRF is obtained from...).
All. It's a mean over all by default, and I'm not sure other options should be provided.
Here I meant that the topos in plot_joint would not point to a single point but to a box surrounding the defined tfr region.
The API for topomaps here is already a time point plus window around it parameter, IIRC timesand average. Just make average take a (time, freq) tuple and there it is.
The above is actually with 3-Hz freq bins and 200-msec time windows (for the topomaps).
Any further comments? Don't just wanna go for implementing this if there's little interest. Also I'm sure if you care about this, you'll have opinions on specifics :)
Sounds interesting, but I'm not totally clear about the proposal. What is the tfr image showing? the average time frequency over channels? It's std across channels (equivalent of GFP)?
I like it - but would like an option for it to not be average over all channels (picks). So that one could show ROI-based tfrs (or build on this functionality to show cluster-corrected stats etc.).
w.r.t. @mmagnuski , I think we first need a function to plot the image for a selection of channels, or extend the normal tfr.plot() function like that.
average : bool
If False, show one plot per picked channel.
If True, show only one plot: the average over all selected channels. If picks
is empty, the mean over all channels is plotted.
Defaults to False.
And then this one simply adds the topomaps on top.
average is good - I previously considered lists of lists so that [[1, 2], [3, 4, 5]] produces two figures - one for average of picks 1 and 2 and the other for average of picks 3, 4 and 5. But this is probably less intuitive than average param.
Activity
jona-sassenhagen commentedon Nov 29, 2016
@jaeilepp don't make a PR already, let me try first :D
jaeilepp commentedon Nov 29, 2016
Sure, go ahead.
mmagnuski commentedon Nov 29, 2016
It may be nice if the channels (set of channels) used for the TFR is highlighted in the topomaps (although the user will always know which channels the TRF is obtained from...).
Would be also cool if topomapped parts of the TFR could be set in a rectangle way (for example in time, Hz order:
[(-0.2, 0), (8., 10.)]) - but that could be something for later. :)jaeilepp commentedon Nov 29, 2016
You can already do that interactively.
mmagnuski commentedon Nov 29, 2016
Oh, I didn't know, thanks!
Here I meant that the topos in plot_joint would not point to a single point but to a box surrounding the defined tfr region.
jona-sassenhagen commentedon Nov 29, 2016
All. It's a mean over all by default, and I'm not sure other options should be provided.
The API for topomaps here is already a time point plus window around it parameter, IIRC
timesandaverage. Just makeaveragetake a (time, freq) tuple and there it is.The above is actually with 3-Hz freq bins and 200-msec time windows (for the topomaps).
jona-sassenhagen commentedon Nov 29, 2016
Is it save to average TF data over multiple channels using plain old
np.meanbtw? I guess they're reasonably normally distributed across channels.jona-sassenhagen commentedon Dec 6, 2016
Any further comments? Don't just wanna go for implementing this if there's little interest. Also I'm sure if you care about this, you'll have opinions on specifics :)
kingjr commentedon Dec 6, 2016
Sounds interesting, but I'm not totally clear about the proposal. What is the tfr image showing? the average time frequency over channels? It's std across channels (equivalent of GFP)?
jona-sassenhagen commentedon Dec 6, 2016
It's the average. It's done like this in an EEGLAB viz function, used for example in Makeig's Science and PLoS Biology papers.
kingjr commentedon Dec 6, 2016
I'm +1. It seems like a helper for mining tfr
agramfort commentedon Dec 6, 2016
mmagnuski commentedon Dec 6, 2016
I like it - but would like an option for it to not be average over all channels (
picks). So that one could show ROI-based tfrs (or build on this functionality to show cluster-corrected stats etc.).jona-sassenhagen commentedon Dec 6, 2016
w.r.t. @mmagnuski , I think we first need a function to plot the image for a selection of channels, or extend the normal tfr.plot() function like that.
@agramfort , would you be ok with this:
averageTFR.plot(picks=picks, average=True)docstring:
And then this one simply adds the topomaps on top.
dengemann commentedon Dec 6, 2016
mmagnuski commentedon Dec 6, 2016
averageis good - I previously considered lists of lists so that[[1, 2], [3, 4, 5]]produces two figures - one for average of picks 1 and 2 and the other for average of picks 3, 4 and 5. But this is probably less intuitive thanaverageparam.