Skip to content

Commit 0a31936

Browse files
Disable more
1 parent c2f69ce commit 0a31936

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

mne/viz/_brain/_brain.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,7 +1665,13 @@ def plot_time_course(self, hemi, vertex_id, color, update=True):
16651665
return line
16661666

16671667
def plot_time_line(self, update=True):
1668-
"""Add the time line to the MPL widget."""
1668+
"""Add the time line to the MPL widget.
1669+
1670+
Parameters
1671+
----------
1672+
update : bool
1673+
Force an update of the plot. Defaults to True.
1674+
"""
16691675
if self.mpl_canvas is None:
16701676
return
16711677
if isinstance(self.show_traces, bool) and self.show_traces:
@@ -1677,6 +1683,7 @@ def plot_time_line(self, update=True):
16771683
label='time',
16781684
color=self._fg_color,
16791685
lw=1,
1686+
update=update,
16801687
)
16811688
self.time_line.set_xdata(current_time)
16821689
if update:
@@ -2413,7 +2420,7 @@ def _configure_label_time_course(self):
24132420
self.add_annotation(self.annot, color="w", alpha=0.75)
24142421

24152422
# now plot the time line
2416-
self.plot_time_line()
2423+
self.plot_time_line(update=False)
24172424
self.mpl_canvas.update_plot()
24182425

24192426
for hemi in self._hemis:

0 commit comments

Comments
 (0)