From e34e4a125dd272a0dd60bd843f514e82692dde94 Mon Sep 17 00:00:00 2001 From: David Stanley Date: Sat, 29 Apr 2017 00:38:57 -0400 Subject: [PATCH] iss #007 Small fix to xp_matrix_basicplot.m for empty data --- library_plots/xp_matrix_basicplot.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library_plots/xp_matrix_basicplot.m b/library_plots/xp_matrix_basicplot.m index 5b1838c..61dda79 100644 --- a/library_plots/xp_matrix_basicplot.m +++ b/library_plots/xp_matrix_basicplot.m @@ -22,9 +22,9 @@ if ~isempty(xp.meta.datainfo(1).values) t = xp.meta.datainfo(1).values; - hxp.hcurr = plot(t,xp.data{1}); + if ~isempty(xp.data{1}); hxp.hcurr = plot(t,xp.data{1}); end else - hxp.hcurr = plot(xp.data{1}); + if ~isempty(xp.data{1}); hxp.hcurr = plot(xp.data{1}); end end if ~isempty(xlims); xlim(xlims); end if ~isempty(ylims); ylim(ylims); end