diff --git a/thirdparty/Violinplot-Matlab/violinplot.m b/thirdparty/Violinplot-Matlab/violinplot.m index 78fcea4..a51939d 100644 --- a/thirdparty/Violinplot-Matlab/violinplot.m +++ b/thirdparty/Violinplot-Matlab/violinplot.m @@ -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));