From 12495ca90e7500a5b63192fa4efc81eeb184a0b2 Mon Sep 17 00:00:00 2001 From: giuliaghirardini <giuliaghirardini2001@gmail.com> Date: Sun, 9 Feb 2025 22:24:08 +0100 Subject: [PATCH] [export-standardized-figure][utilities] Fixed overlaying figures bug --- functions/utilities/exportFigureGUI.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/utilities/exportFigureGUI.m b/functions/utilities/exportFigureGUI.m index accb4eb..2c68d55 100644 --- a/functions/utilities/exportFigureGUI.m +++ b/functions/utilities/exportFigureGUI.m @@ -178,7 +178,7 @@ previewButton = uibutton(fig, 'Text', 'Update preview', ... obj = findall(selectedFig, 'Type', 'figure'); % Delete any existing axes - delete(findall(uiPanel, 'Type', 'figure')); + delete(findall(uiPanel, 'Type', 'axes')); % Copy the axes into the UI Panel newAx = copyobj(obj.Children, uiPanel); -- GitLab