How can I get my bar graphs 'A', 'B', 'C' to be multi-line strings? I would like to have two lines for each 'A', 'B', or 'C', but I don't know how to make newline in str, within set()
This is the working code I have so far:
x = [1 2 3];str = {'A'; 'B'; 'C'};bar(x)set(gca, 'XTickLabel',str, 'XTick',1:numel(str))
And the output:
Thanks.
Best Answer