Skip to content

Commit

Permalink
Update violinplot.m
Browse files Browse the repository at this point in the history
fixed bug with color argument
  • Loading branch information
isaacengel committed Aug 11, 2021
1 parent 64aa111 commit dfbd41c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion thirdparty/Violinplot-Matlab/violinplot.m
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,11 @@
elseif ismatrix(data)
for n=1:size(data, 2)
thisData = data(:, n);
violins(n) = Violin(thisData, n, varargin{:});
if ~isempty(colors)
violins(n) = Violin(thisData, n, varargin{:},'ViolinColor',colors(n,:));
else
violins(n) = Violin(thisData, n, varargin{:});
end
end
xlim([0.5 size(data, 2)+0.5]);
set(gca, 'xtick', 1:size(data, 2));
Expand Down

0 comments on commit dfbd41c

Please sign in to comment.