Changing length of bar in legend
24 views (last 30 days)
Here is discussed how to change the length of the bar in Legend axes, when a bar graph is plotted.
But how do you apply the code discussed there to a bar graphs with multiple bars per x tick?
For example on,
More Answers (2)
Azzi Abdelmalek on 24 Oct 2014
You can change the position
new_pos(3)=pos(3)+0.4 % This is the x length
new_pos(1)=pos(1)-0.4 % The x position
Robert Cumming on 27 Oct 2014
You can change the fontSize property which makes it smaller.
Otherwise if your using pre 2014b you can get to all the properties through the legend handle. Since the legend is built on a axes you can alter the axes children