Skip to content

viz.plot_compare_evokeds incorrect axis labels #9923

Closed

Description

@c-torre

Hi, I've started a discussion in the forum that turned out to be a bug.

Please see: https://mne.discourse.group/t/misaligned-viz-plot-compare-evokeds/3834

In short, as last answer by @drammock summarizes: "plot_compare_evokeds(..., axes='topo') tries to create an extra axis that shows only the axis spines, ticklabels, and axis labels. It looks like that “legend axis” is getting plotted on top of the axis for P8"

Activity

  1. drammock commented on Oct 29, 2021

    @drammock
    Member

    code to reproduce with sample dataset:

    import os
    import mne
    sample_data_folder = mne.datasets.sample.data_path()
    sample_data_evoked_file = os.path.join(
        sample_data_folder, 'MEG', 'sample', 'sample_audvis-ave.fif')
    evoked_list = mne.read_evokeds(sample_data_evoked_file)
    picks = [f'EEG {n:03}' for n in (30, 31, 40)]
    fig = mne.viz.plot_compare_evokeds(evoked_list, picks=picks, axes='topo')

    looking into this now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions