Skip to content

Commit cc3a7c6

Browse files
committed
Removing superfluous axes after new channel load
1 parent a393ed0 commit cc3a7c6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

@SplitMerge/plotUnits.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ function plotUnits(app)
4444
app.SelectedUnits.Items = {'Loading...'};
4545

4646
if app.Data.doFirstPlot(1)
47+
ch = app.UnitsPanel.Children;
48+
for c = 1:length(ch)
49+
delete(ch);
50+
app.SpikePanels = [];
51+
end
4752
for s = 1:length(app.SpikePanels)
4853
app.SpikePanels{s} = [];
4954
end

0 commit comments

Comments
 (0)