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
When a colormap is passed to mne.viz.plot_compare_evokeds (for example cbar='viridis') it places a colorbar next to the axis (instead of a normal in-axis legend). While the presence of the standard legend can be controlled with legend=False, the colorbar legend is always drawn.
The colorbar feature might be useful for variables with continuous meaning (contrast for example). I think this scenario is assumed when you specify a colormap with cmap.
hmm. interestingly mne.viz.plot_compare_evokeds(evokeds, cmap='viridis', legend=True) does not show the in-axes legend. It's been a while since I've touched this code... does it make sense that if you specify cmap then you will never get an in-axes legend? If so, then it could be safe to use legend to control in-axes legend when cmap=None and control colorbar when cmap is not None.
When a colormap is passed to
mne.viz.plot_compare_evokeds
(for examplecbar='viridis'
) it places a colorbar next to the axis (instead of a normal in-axis legend). While the presence of the standard legend can be controlled withlegend=False
, the colorbar legend is always drawn.Example:
legend=False
controls whether standard legend is drawn:However, when
cbar
argument is used, the colormap legend is always drawn:I think
legend=False
should not plot the colorbar.The text was updated successfully, but these errors were encountered: