From 1821cc280e59b4a8957c11ad68572380deda0bea Mon Sep 17 00:00:00 2001 From: Olivier Sauter <Olivier.Sauter@epfl.ch> Date: Tue, 12 Oct 2021 15:54:18 +0200 Subject: [PATCH] small debug for gdat_plot --- matlab/gdat.m | 2 +- matlab/gdat_plot.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/matlab/gdat.m b/matlab/gdat.m index 3d462622..6bd59ffa 100644 --- a/matlab/gdat.m +++ b/matlab/gdat.m @@ -223,5 +223,5 @@ if gdat_data.gdat_params.doplot end if exist('ME_gdat_plot','var') - rethrow(ME_gdat_plot) + getReport(ME_gdat_plot) end diff --git a/matlab/gdat_plot.m b/matlab/gdat_plot.m index 08551e7c..33348707 100644 --- a/matlab/gdat_plot.m +++ b/matlab/gdat_plot.m @@ -124,7 +124,7 @@ if all(isfield(gdat_data,{'data','t'})) && ~isempty(gdat_data.data) && ~isempty( zoom on; end maxnblines = 1; - if strcmp(gdat_data.gdat_request,'powers') && length(ab)==length(gdat_data.label) + if strcmp(gdat_data.gdat_params.data_request,'powers') && length(ab)==length(gdat_data.label) % keep legend from label else for i=1:numel(linehandles) -- GitLab