Skip to content

Commit 24415d3

Browse files
committed
bring ecg grids to back
1 parent 1325615 commit 24415d3

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

devtests.ipynb

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

wfdb/plots.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def plotrec(record=None, title = None, annotation = None, annch = [0], timeunits
5656
for ch in range(nsig):
5757
# Plot signal channel
5858
ax = fig.add_subplot(nsig, 1, ch+1)
59-
ax.plot(t, record.p_signals[:,ch])
59+
ax.plot(t, record.p_signals[:,ch], zorder=3)
6060

6161
if (title is not None) and (ch==0):
6262
plt.title(title)
@@ -94,13 +94,13 @@ def plotrec(record=None, title = None, annotation = None, annch = [0], timeunits
9494
min_y, max_y = np.min(minor_ticks_y), np.max(minor_ticks_y)
9595

9696
for tick in minor_ticks_x:
97-
ax.plot([tick, tick], [min_y, max_y], c='#ededed', marker='|')
97+
ax.plot([tick, tick], [min_y, max_y], c='#ededed', marker='|', zorder=1)
9898
for tick in major_ticks_x:
99-
ax.plot([tick, tick], [min_y, max_y], c='#bababa', marker='|')
99+
ax.plot([tick, tick], [min_y, max_y], c='#bababa', marker='|', zorder=2)
100100
for tick in minor_ticks_y:
101-
ax.plot([min_x, max_x], [tick, tick], c='#ededed', marker='_')
101+
ax.plot([min_x, max_x], [tick, tick], c='#ededed', marker='_', zorder=1)
102102
for tick in major_ticks_y:
103-
ax.plot([min_x, max_x], [tick, tick], c='#bababa', marker='_')
103+
ax.plot([min_x, max_x], [tick, tick], c='#bababa', marker='_', zorder=2)
104104

105105
# Plotting the lines changes the graph. Set the limits back
106106
ax.set_xlim(auto_xlims)

0 commit comments

Comments
 (0)