Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changes/devel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ Bugs
- Improve handling of ``method`` argument in the channel interpolation function to support :class:`str` and raise helpful error messages (:gh:`12113` by `Mathieu Scheltienne`_)
- Fix combination of ``DIN`` event channels into a single synthetic trigger channel ``STI 014`` by the MFF reader of :func:`mne.io.read_raw_egi` (:gh:`12122` by `Mathieu Scheltienne`_)
- Fix bug with :func:`mne.io.read_raw_eeglab` and :func:`mne.read_epochs_eeglab` where automatic fiducial detection would fail for certain files (:gh:`12165` by `Clemens Brunner`_)
- Fix bug with :func:`mne.viz.plot_compare_evokeds` where the title was not displayed when ``axes='topo'`` (:gh:`12192` by `Jacob Woessner`_)

API changes
~~~~~~~~~~~
Expand Down
6 changes: 5 additions & 1 deletion mne/viz/evoked.py
Original file line number Diff line number Diff line change
Expand Up @@ -2929,7 +2929,7 @@ def plot_compare_evokeds(
title = _title_helper_pce(
title, picked_types, picks=orig_picks, ch_names=ch_names, combine=combine
)

topo_disp_title = False
# setup axes
if do_topo:
show_sensors = False
Expand All @@ -2939,6 +2939,8 @@ def plot_compare_evokeds(
"sensors. This can be extremely slow. Consider using "
"mne.viz.plot_topo, which is optimized for speed."
)
topo_title = title
topo_disp_title = True
axes = ["topo"] * len(ch_types)
else:
if axes is None:
Expand Down Expand Up @@ -3217,5 +3219,7 @@ def click_func(
if cmap is not None:
_draw_colorbar_pce(ax, _colors, _cmap, colorbar_title, colorbar_ticks)
# finish
if topo_disp_title:
ax.figure.suptitle(topo_title)
plt_show(show)
return [ax.figure]