diff --git a/functions/utilities/exportStandardizedFigure/mainExportStandardizedFigure.m b/functions/utilities/exportStandardizedFigure/mainExportStandardizedFigure.m index 2645b1000abf4755022038c7422ed36fd432df89..f4372192098f8aa9e94ff2696a7ae377b1b932ca 100644 --- a/functions/utilities/exportStandardizedFigure/mainExportStandardizedFigure.m +++ b/functions/utilities/exportStandardizedFigure/mainExportStandardizedFigure.m @@ -489,10 +489,10 @@ allDefaultButton = uibutton(fig, 'Text', 'Reset All', ... % Cache figure to reset easily selectedIdx = figSelectionDropDown.Value; figToExp = figHandles(strcmp(figSelectionDropDown.Items, selectedIdx)); - - currentPath = mfilename('fullpath'); - cachePath = fullfile(currentPath, '..','cachedFigs', selectedIdx); - savefig(figToExp, cachePath); + % + % currentPath = mfilename('fullpath'); + % cachePath = fullfile(currentPath, '..','cachedFigs', selectedIdx); + % savefig(figToExp, cachePath); % Try to export figure try @@ -556,29 +556,13 @@ allDefaultButton = uibutton(fig, 'Text', 'Reset All', ... end function saveTemporaryFigure() - % Force to save fig - exportPDFBox.Value = false; - exportFIGBox.Value= true; - % retrieve local path to save temp fig in temp folder - tempPath = [pwd '\temp']; + filepath = fileparts(mfilename('fullpath')); + tempPath = [filepath '\temp']; if ~isfolder(tempPath) - error('Not such a directory'); + mkdir(tempPath); end - % Get values from the GUI components - exportPDF = false; - addMarkers = false; - exportFIG = true; - changeColors = false; - percTextwidth = percTextField.Value; - overwriteFigure = true; - - % Call the exportStandardizedFigure function - % selectedIdx = figSelectionDropDown.Value; - % figToExp = figHandles(strcmp(figSelectionDropDown.Items, selectedIdx)); - % name = getFigureNames(figToExp); - figToExp = findFigures(fig); names = getFigureNames(figToExp);