From 9e84563ef235f094e9e97e68e043d4724ebc244b Mon Sep 17 00:00:00 2001 From: Antoine <antoine.hoffmann@epfl.ch> Date: Fri, 11 Aug 2023 10:45:06 +0200 Subject: [PATCH] usable with no arguments in OPTIONS --- matlab/plot/plot_metric.m | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/matlab/plot/plot_metric.m b/matlab/plot/plot_metric.m index 5fb56042..28e9b1c8 100644 --- a/matlab/plot/plot_metric.m +++ b/matlab/plot/plot_metric.m @@ -11,7 +11,13 @@ for i_ = 1:numel(names) namae = names{i_}; geo_arrays(:,i_) = h5read(data.outfilenames{end},['/data/metric/',namae])'; end -NPLOT = options.SHOW_FLUXSURF + options.SHOW_METRICS; +try + NPLOT = options.SHOW_FLUXSURF + options.SHOW_METRICS; +catch + NPLOT = 2; + options.SHOW_FLUXSURF = 1; + options.SHOW_METRICS = 1; +end if NPLOT > 0 fig = figure; if options.SHOW_METRICS -- GitLab