Skip to content

Commit 071a6ec

Browse files
author
Helge Hass
committed
small changes Waterfall Plots
1 parent 8147f01 commit 071a6ec

File tree

1 file changed

+13
-19
lines changed

1 file changed

+13
-19
lines changed

Matlab_figures/plot_WaterfallScatter.m

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,18 @@
1010
colors = lines(3);
1111

1212
for im = 1:length(modelNrs)
13-
13+
figure('PaperUnits','centimeters','PaperSize',[21 29.7])
14+
subplot(2,1,1)
1415
modelNr = modelNrs{im};
1516
model_name = strsplit(modelNrs{im},'_');
16-
model_name = model_name{2};
17-
if strcmp(model_name,'Reelin')
18-
model_name = 'Hass';
17+
18+
if strcmp(model_name{2},'Reelin')
19+
model_name{2} = 'Hass';
1920
end
20-
if strcmp(model_name,'TGFb')
21-
model_name = 'Lucarelli';
21+
if strcmp(model_name{2},'TGFb')
22+
model_name{2} = 'Lucarelli';
2223
end
2324

24-
figure('Name',['Waterfall ' model_name],...
25-
'PaperUnits','centimeters','PaperSize',[21 29.7])
26-
subplot(2,1,1)
27-
2825
min_model = min([ar_tmp.(modelNr).fmin_ip_log.chi2s,...
2926
ar_tmp.(modelNr).fmin_trust_FindInputs_log.chi2s,ar_tmp.(modelNr).FindInputs_logFit.chi2s]);
3027
s1=scatter(1:1000,sort(ar_tmp.(modelNr).FindInputs_logFit.chi2s)-min_model+1,...
@@ -49,13 +46,13 @@
4946

5047
set(gcf,'Color','w')
5148
xlabel('fit number')
52-
ylabel('final likelihood value')
53-
title([model_name])
49+
ylabel('final likelihood value + const.')
50+
title([model_name{2}])
5451
box off
5552

5653
set(gca,'FontSize',14)
5754
axis manual
58-
if ismember(model_name,{'Beer','Crauste'})
55+
if ismember(model_name{2},{'Beer','Crauste'})
5956
legend(legend_string,'Location','southeast')
6057
else
6158
legend(legend_string,'Location','northwest')
@@ -84,7 +81,7 @@
8481
end
8582
set(gcf,'Color','w')
8683
xlabel('optimization time [s]')
87-
ylabel('final likelihood value')
84+
ylabel('final likelihood value + const.')
8885
axis manual
8986
x_limits = get(gca,'XLim');
9087
y_limits = get(gca,'YLim');
@@ -93,9 +90,6 @@
9390
text(10.^(log10(x_limits(1)) - (log10(x_limits(2)) - log10(x_limits(1)))*0.15),...
9491
y_limits(2)+(y_limits(2)-y_limits(1))*0.2,'B','FontSize',16)
9592

96-
% if ~(exist('Supplement_figures'))
97-
% mkdir('Supplement_figures')
98-
% end
99-
% print(gcf,['Supplement_figures/' model_name],'-dpdf','-fillpage')
93+
print(gcf,['Supplement_figures/' model_name{2}],'-dpdf','-fillpage')
10094
end
101-
%close all
95+
close all

0 commit comments

Comments
 (0)