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/dev/13549.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix bug with :func:`mne.viz.plot_evoked` where channels were plotted above axis spines, by `Michael Straube`_.
4 changes: 4 additions & 0 deletions mne/viz/evoked.py
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,10 @@ def _plot_lines(
# Put back the y limits as fill_betweenx messes them up
ax.set_ylim(this_ylim)

# Ensure the axis spines are drawn above all Line2D artists
max_zorder = max((line.get_zorder() for line in ax.get_lines()), default=0) + 1
ax.spines[:].set_zorder(max_zorder)

lines.append(line_list)

if selectable:
Expand Down
Loading