Skip to content

Commit

Permalink
add an option synonym fill=fillcolor to be consistent with other funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
petercorke committed Sep 19, 2018
1 parent f6055a7 commit a0829c9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions plot_poly.m
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@

% process options
opt.fillcolor = [];
opt.fill = [];
opt.fill = '@fillcolor';
opt.alpha = 1;
opt.animate = false;
opt.edgecolor = 'None';
Expand All @@ -99,10 +99,7 @@

[opt,args,ls] = tb_optparse(opt, varargin);


if ~isempty(opt.fill)
opt.fillcolor = opt.fill;
end

if ~isempty(opt.fillcolor) && strcmp(opt.edgecolor, 'None')
opt.edgecolor = 'k';
end
Expand Down

0 comments on commit a0829c9

Please sign in to comment.