-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patha_make_paper_figs.m
30 lines (24 loc) · 1.09 KB
/
a_make_paper_figs.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
function [t, method_order] = a_make_paper_figs(load_file_name)
%% function a_make_paper_figs
% Creates figures from the manuscript. Only input is the full path and
% root filename to the .csv files created by a_run_vpop_fit.m. For
% example, if a_run_vpop_fit wrote myrun_xxx.csv to /Documents/files/
% the input would be '/Documents/files/myrun_' (the numbers and .csv
% are added later).
close all;rng('shuffle');
method_order = {'SA';'NSA';'MH';'GA'}; % order of the methods for plotting
%% LOAD FILE NAME
if nargin ~= 1
error('a_make_paper_figs: requires a filestring input.');
end
%% Read data files to Matlab table:
t = read_out_to_table(load_file_name);
%% Plots for each individual method:
plot_histograms(t,method_order);
plot_violin(t,method_order); % parameters are scaled within function
%% Summary plots across methods:
plot_gof_vp_vs_pp(t,method_order); % Comparison of plausible population --> virtual population
plot_orthog(t,method_order); % plot the orthogonality of the Vpops
plot_time_summary_bar(t,method_order); % plot time to pp/vps
plot_gof_vs_npps(t,method_order);
end