diff --git a/matlab/gdat.m b/matlab/gdat.m index 3d462622cb382d57f9218c6fbdefef40c57d80e9..6bd59ffaf5a75354fad53f6dc4948132c3d73a4f 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 08551e7cf79fdd19f119f8db7c29ccbaec3a4093..33348707f61f7f7242be802917b019cda692b364 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)