Skip to content
Snippets Groups Projects
Verified Commit f1671a8e authored by Thomas Lambert's avatar Thomas Lambert :helicopter:
Browse files

feat: add small figure handling helpers

parent 8427efa4
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,8 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% --- Initial setup
import figure_tools.*
fig_setup;
% --- Load data required for this file
......@@ -219,33 +221,6 @@ end
%% ================================== HELPER FUNCTIONS =============================================
function initiatefig(figname, keepFigOpen)
% INITIATEFIG Initiate a new figure
if ~keepFigOpen
close(findobj('type', 'figure', 'name', figname));
pause(0.1);
elseif ~isempty(findobj('type', 'figure', 'name', figname))
i = 1;
newFigName = figname;
while ~isempty(findobj('type', 'figure', 'name', newFigName))
newFigName = sprintf('%s -%d', figname, i);
i = i + 1;
end
figname = newFigName;
end
figure('Name', figname);
end
function savethisfig(saveFig, figTitle, figDir, figName)
% SAVETHISFIG Save the figure
condsave2tikz(saveFig, figTitle, [figDir, figName], '\normalsize');
pause(0.1); % Do not show them all at once
end
function plotallspeeds(LoadedRes1, LoadedRes2, fType, frequency, ...
selectedSpeeds, chord, span, airspeeds, cmap)
% PLOTALLSPEEDS Plot all airspeeds on the same figure
......
Subproject commit 44f20e2449e99c62dae634ff52d5be65fdceb214
Subproject commit 4bba67d0a6a7ae607b1893ce43708e2d6233a656
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment