Skip to content
Snippets Groups Projects
Commit 8f321a03 authored by Marco Luigi Gaibotti's avatar Marco Luigi Gaibotti
Browse files

[exportstandardizedfigure-fixes] Updated folder structure

parent fb0a66c4
No related branches found
No related tags found
1 merge request!20Important improvements of ESFgui
function exportFigureGUI
function mainExportStandardizedFigure
% exportFigureGUI - GUI for exportStandardizedFigure function
%% Positioning GUI at screen center
......@@ -485,11 +485,17 @@ allDefaultButton = uibutton(fig, 'Text', 'Reset All', ...
% Figure path
figurePath = uigetdir;
% 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);
% Try to export figure
try
% Call the exportStandardizedFigure function
selectedIdx = figSelectionDropDown.Value;
figToExp = figHandles(strcmp(figSelectionDropDown.Items, selectedIdx));
exportStandardizedFigure(figToExp, figName, percTextwidth, ...
'addMarkers', addMarkers, ...
'forcedMarkers', forcedMarkers, ...
......@@ -567,6 +573,5 @@ end
end
%% Further developments
% File Path Input
% uilabel(fig, 'Text', 'Figure Save Path:', 'Position', [50 70 150 30]);
% pathField = uitextarea(fig, 'Position', [200 70 300 30]);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment