bastibe / Violinplot-Matlab

Violin Plots for Matlab
https://mathworks.com/matlabcentral/fileexchange/170126-violinplot-matlab
BSD 3-Clause "New" or "Revised" License
251 stars 105 forks source link

Trouble passing arguments #26

Closed DeshmukhLab closed 3 years ago

DeshmukhLab commented 3 years ago

The violin plots look great! Thank you.

Edit: nevermind. I figured out the mistake I was making - I was forgetting to pass the argument for cats: I was using violinplot(allmeanrate,'EdgeColor',[1 1 1]); instead of violinplot(allmeanrate,[],'EdgeColor',[1 1 1]);

While the barebones violinplot(data) works without trouble, I am having trouble passing arguments to violinplot:

violinplot(allmeanrate,'EdgeColor',[1 1 1]);

Error using Violin/checkInputs (line 342) Expected a string scalar or character vector for the parameter name.

Error in Violin (line 106) args = obj.checkInputs(data, pos, varargin{:});

Error in violinplot (line 86) violins(n) = Violin(thisData, n, varargin{:});

What am I doing wrong?

bastibe commented 3 years ago

Please reopen if you still need help.