From: Binbin on
Since some of my figures have to include a number of subplots, the y-axis labels become very crowded on one line. I tried to use "\n" to make line folding automatically for these cramped labels but it does not work.

Is there anyone having similar experience and let me know is there any way to solve this problem? Thanks a lot.
From: Walter Roberson on
Binbin wrote:
> Since some of my figures have to include a number of subplots, the
> y-axis labels become very crowded on one line. I tried to use "\n" to
> make line folding automatically for these cramped labels but it does not
> work.
>
> Is there anyone having similar experience and let me know is there any
> way to solve this problem? Thanks a lot.

xlabel('line1\nline2') %will probably not work

xlabel(sprintf('line1\nline2')) %will probably work

xlabel({'line1','line2'}) %will work