Skip to content

Commit

Permalink
iss #7 Small fix to xp_matrix_basicplot.m for empty data
Browse files Browse the repository at this point in the history
  • Loading branch information
davestanley committed Apr 29, 2017
1 parent 6c68dc1 commit e34e4a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library_plots/xp_matrix_basicplot.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e34e4a1

Please sign in to comment.