Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MechaRaptor - Data Processing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Aerospace and Mechanical Engineering
tlambert
MechaRaptor - Data Processing
Commits
f1671a8e
Verified
Commit
f1671a8e
authored
5 months ago
by
Thomas Lambert
Browse files
Options
Downloads
Patches
Plain Diff
feat: add small figure handling helpers
parent
8427efa4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/fig_singleFlap.m
+2
-27
2 additions, 27 deletions
src/fig_singleFlap.m
src/libs/figure_tools
+1
-1
1 addition, 1 deletion
src/libs/figure_tools
with
3 additions
and
28 deletions
src/fig_singleFlap.m
+
2
−
27
View file @
f1671a8e
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
figure_tools
@
4bba67d0
Compare
44f20e24
...
4bba67d0
Subproject commit 4
4f20e2449e99c62dae634ff52d5be65fdceb214
Subproject commit 4
bba67d0a6a7ae607b1893ce43708e2d6233a656
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment