Skip to content

Commit

Permalink
#7: Small change to xp_plotimage
Browse files Browse the repository at this point in the history
  • Loading branch information
davestanley committed Mar 22, 2017
1 parent 3406d5f commit 5174d14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library_plots/xp_plotimage.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ function xp_plotimage (xp,op)
if isempty(op); op = struct; end;

op = struct_addDef(op,'scale',[]);
op = struct_addDef(op,'fig_number',1);
op = struct_addDef(op,'saved_fignum',1);


if iscellstr(xp.data{1})
rgb = imread(xp.data{1}{op.fig_number});
rgb = imread(xp.data{1}{op.saved_fignum});
elseif ischar(xp.data{1})
rgb = imread(xp.data{1});
end
Expand Down

0 comments on commit 5174d14

Please sign in to comment.