Assign same linewidth to a grouped barplot
1 view (last 30 days)
I'm trying to assign the same linewidth to a grouped barplot, it says that i have to use the comma separated list assigment, but frankly i've never dealt with lists in matlab, and i really don't know how to do it.
barplot.LineWidth=%And now i'd like to put for the 2 series the same linewidth=1
Thank you :)
Mathieu NOE on 14 Apr 2021
barplot(1).BarWidth = 1; % both bars are grouped so doing the mod on the first one will be applied on second bar too;
More Answers (1)
dpb on 14 Apr 2021
Edited: dpb on 14 Apr 2021
You can't use the "dot" notation with an array of handles, anyway; must use set here, or a looping construct of some sort.
NB: Must pass cell arrays even for single values to assign for multiple handles There are detailed examples of the use for more complicated cases in the documentation for set()