Skip to content

Commit

Permalink
Merge pull request #13886 from rmcdermo/master
Browse files Browse the repository at this point in the history
Matlab: fix figure visibility during processing for atmospheric_bound…
  • Loading branch information
rmcdermo authored Dec 13, 2024
2 parents 19e3ab8 + 02e7902 commit 754cab1
Showing 1 changed file with 16 additions and 20 deletions.
36 changes: 16 additions & 20 deletions Utilities/Matlab/scripts/atmospheric_boundary_layer.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

z = [z_0{i} 10*z_0{i} 1 2 3 4 5 6 7 8 9 10 15 20 25 30 50 100];

figure(1)
f1=figure;
set(gca,'Units',Plot_Units)
set(gca,'Position',[Plot_X Plot_Y Plot_Width Plot_Height])

Expand All @@ -68,7 +68,7 @@
T = T + (theta_0-T(12));

plot(u,z,'ko'); hold on
plot(M2.data(:,2),M2.data(:,1),'k-'); hold on
plot(M2.data(:,2),M2.data(:,1),'k-'); hold off
set(gca,'FontName',Font_Name)
set(gca,'FontSize',Title_Font_Size)
axis([0 u_high{i} 0 100])
Expand All @@ -88,21 +88,19 @@
git_file = [datafile, '_git.txt'];
addverstr(gca,git_file,'linear')

set(gcf,'Visible',Figure_Visibility);
set(gcf,'Units',Paper_Units);
set(gcf,'PaperUnits',Paper_Units);
set(gcf,'PaperSize',[Paper_Width Paper_Height]);
set(gcf,'Position',[0 0 Paper_Width Paper_Height]);
print(gcf,'-dpdf',[outfile '_vel'])
set(f1,'Visible',Figure_Visibility);
set(f1,'Units',Paper_Units);
set(f1,'PaperUnits',Paper_Units);
set(f1,'PaperSize',[Paper_Width Paper_Height]);
set(f1,'Position',[0 0 Paper_Width Paper_Height]);
print(f1,'-dpdf',[outfile '_vel'])

clf('reset')

figure(2)
f2=figure;
set(gca,'Units',Plot_Units)
set(gca,'Position',[Plot_X Plot_Y Plot_Width Plot_Height])

plot(T-273.15,z,'ko'); hold on
plot(M2.data(:,3),M2.data(:,1),'k-'); hold on
plot(M2.data(:,3),M2.data(:,1),'k-'); hold off
set(gca,'FontName',Font_Name)
set(gca,'FontSize',Title_Font_Size)
axis([T_low{i} T_high{i} 0 100])
Expand All @@ -114,13 +112,11 @@

addverstr(gca,git_file,'linear')

set(gcf,'Visible',Figure_Visibility);
set(gcf,'Units',Paper_Units);
set(gcf,'PaperUnits',Paper_Units);
set(gcf,'PaperSize',[Paper_Width Paper_Height]);
set(gcf,'Position',[0 0 Paper_Width Paper_Height]);
print(gcf,'-dpdf',[outfile '_tmp'])

clf('reset')
set(f2,'Visible',Figure_Visibility);
set(f2,'Units',Paper_Units);
set(f2,'PaperUnits',Paper_Units);
set(f2,'PaperSize',[Paper_Width Paper_Height]);
set(f2,'Position',[0 0 Paper_Width Paper_Height]);
print(f2,'-dpdf',[outfile '_tmp'])

end

0 comments on commit 754cab1

Please sign in to comment.