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
{{ message }}
Repository navigation
ENH: plot_topomap, plot_joint & plot: API homogeneity for scalings/scale parameters #3702
Small API heterogenity: different plotting functions use similar parameters slightly differently (and named slightly differently)
scaling: evoked.plot(scalings=dict()) but evoked.plot_topomap(scale=dict() | float)
units: evoked.plot(units=dict()) but evoked.plot_topomap(unit=dict() | str)
max amplitude: evoked.plot(ylim=dict()) but evoked.plot_topomap(vmin=dict() | float, vmax=dict() | float())
Changing parameter names can be annoying for deprecation, but I suggest we at least make their input similar (e.g. always accepts both dict and float).
Additionally, evoked.plot_joint() could gather the parameters common to plot() and plot_topomap() to simplify it. WDTY @jona-sassenhagen ?
It feels a bit redundant to have scaling and vmin, vmax in the first place. Could we get rid of scaling in for instance topomaps or is there a use case where you'd prefer using scaling?
Activity
jona-sassenhagen commentedon Oct 26, 2016
Somewhat related: #3164
jona-sassenhagen commentedon Oct 26, 2016
Unity here would be a great improved IMO.
We must be careful however with how different functions handle different channel types.
jona-sassenhagen commentedon Oct 27, 2016
Can we split this into multiple smaller PRs?
jaeilepp commentedon Oct 27, 2016
It feels a bit redundant to have
scalingandvmin, vmaxin the first place. Could we get rid of scaling in for instance topomaps or is there a use case where you'd prefer using scaling?agramfort commentedon Oct 27, 2016
jona-sassenhagen commentedon Oct 27, 2016
I think you need scaling if you use for example stats.regression, where you plot t values on data channels.
jona-sassenhagen commentedon Nov 29, 2016
Ugh I must get back to this. @jaeilepp can you maybe assign me so I don't forget?
jaeilepp commentedon Nov 29, 2016
Done.
jona-sassenhagen commentedon Dec 6, 2016
Also: mne.viz.plot_compare_evokeds is missing a bunch of options, like scalings and units.
:(
jona-sassenhagen commentedon Dec 6, 2016
@Eric89GXL @agramfort do you have any idea about solving the different names for identical params for different functions (e.g., "unit" vs "units")?
I guess a **kwargs could do, but we never use that (in public functions), so ...
larsoner commentedon Dec 7, 2016
larsoner commentedon Dec 7, 2016