We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb2bdc1 commit a365496Copy full SHA for a365496
doc/changes/dev/13549.bugfix.rst
@@ -0,0 +1 @@
1
+Fix bug with :func:`mne.viz.plot_evoked` where channels were plotted above axis spines, by `Michael Straube`_.
mne/viz/evoked.py
@@ -808,6 +808,10 @@ def _plot_lines(
808
# Put back the y limits as fill_betweenx messes them up
809
ax.set_ylim(this_ylim)
810
811
+ # Ensure the axis spines are drawn above all Line2D artists
812
+ max_zorder = max((line.get_zorder() for line in ax.get_lines()), default=0) + 1
813
+ ax.spines[:].set_zorder(max_zorder)
814
+
815
lines.append(line_list)
816
817
if selectable:
0 commit comments