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
evoked and tfr image plots have some fairly elaborate code to plot images with mask and contour. We could expose the (shared) underlying code publicly, greatly simplifying plotting of e.g. statistically thresholded GAT matrices.
Probably ax should become a default kwarg ... data is mandatory ... I'd switch times and yvals for xvals and yvals and make both default to None ... maybe add a title, x/ylabel, cbar. So:
I'm okay with that. Would it be better to call it plot_image, not plot_masked_image as the mask is optional? Or maybe plot_image_with_optional_mask_if_you_want_it ;)
Activity
larsoner commentedon Feb 18, 2019
Okay with me
agramfort commentedon Feb 18, 2019
what would be the signature of the public funciton?
jona-sassenhagen commentedon Feb 19, 2019
The private function is here:
https://github.com/mne-tools/mne-python/blob/master/mne/viz/utils.py#L2556
Current call signature:
Probably ax should become a default kwarg ... data is mandatory ... I'd switch times and yvals for xvals and yvals and make both default to None ... maybe add a title, x/ylabel, cbar. So:
@cbrnr @mmagnuski
mmagnuski commentedon Feb 19, 2019
I'm okay with that. Would it be better to call it
plot_image, notplot_masked_imageas the mask is optional? Or maybeplot_image_with_optional_mask_if_you_want_it;)agramfort commentedon Feb 19, 2019
jona-sassenhagen commentedon Feb 28, 2019
I will! Thanks guys.