Skip to content

Commit d560363

Browse files
author
mohit malpote
committed
FIX: Set y-axis spine zorder to max line zorder + 1 in plot_evoked (#13492) -- Final robust dynamic fix
1 parent 09905e5 commit d560363

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mne/viz/evoked.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,8 @@ def _plot_lines(
807807
)
808808
# Put back the y limits as fill_betweenx messes them up
809809
ax.set_ylim(this_ylim)
810+
811+
ax.spines[:].set_zorder(max(l.get_zorder() for l in ax.get_lines()) + 1)
810812

811813
lines.append(line_list)
812814

0 commit comments

Comments
 (0)