@@ -56,7 +56,7 @@ def plotrec(record=None, title = None, annotation = None, annch = [0], timeunits
56
56
for ch in range (nsig ):
57
57
# Plot signal channel
58
58
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 )
60
60
61
61
if (title is not None ) and (ch == 0 ):
62
62
plt .title (title )
@@ -94,13 +94,13 @@ def plotrec(record=None, title = None, annotation = None, annch = [0], timeunits
94
94
min_y , max_y = np .min (minor_ticks_y ), np .max (minor_ticks_y )
95
95
96
96
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 )
98
98
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 )
100
100
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 )
102
102
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 )
104
104
105
105
# Plotting the lines changes the graph. Set the limits back
106
106
ax .set_xlim (auto_xlims )
0 commit comments