Skip to content

Commit

Permalink
Set ax property to None instead of empty Axes.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeZiminski committed May 15, 2024
1 parent a38769e commit 3942032
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/spikeinterface/widgets/motion.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ def plot_matplotlib(self, data_plot, **backend_kwargs):

# Setup figures and axes ----------------------------------------------

self.figure, self.axes, self.ax = make_mpl_figure(**backend_kwargs)
self.ax = None
self.figure, self.axes, _ = make_mpl_figure(**backend_kwargs)
fig = self.figure
fig.clear()

Expand Down

0 comments on commit 3942032

Please sign in to comment.