Skip to content

ENH: plot_topomap, plot_joint & plot: API homogeneity for scalings/scale parameters #3702

@kingjr

Description

@kingjr

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 ?

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions