Thanks.
> I would like to produce multi-line tick labels using cell strings
> or
> whatever can get the job done... My labels are a bit
> long so I want them each to span a few lines.
There may be a better way, but I would get rid of the xlabels (assign
them empty strings) and just use the text function. You can play
around with alignment and rotation depending on the amount of text
you need to fit in a given space.
bar(rand(10,1));
set(gca, 'XTick', [1:10], 'XTickLabel', cell(10,1), 'YLim', [0 1]);
text(1, -.05, {'Label # 1'}, 'FontSize', 8, 'HorizontalAlignment',
'Center');
text(5, -.05, {'Label #5', 'has two lines'}, 'FontSize', 8,
'HorizontalAlignment', 'Center');
"Bill_C" <wm...@gm.com> wrote in message news:eef5e...@webx.raydaftYaTP...
I've tried this before, and although I have no problem creating a
multi-line string using sprintf, said string does not display
correctly as an axis label. Instead of creating a multi-line label,
the newline character is displayed as a box.
Is this due to some setting on my computer, or is this always how a
multi-line string will display as an tick label?
-Kelly