Thread Subject: how to apply line folding automatially when labeling figure

Subject: how to apply line folding automatially when labeling figure

From: Binbin

Date: 19 Mar, 2010 01:53:04

Message: 1 of 2

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.

Subject: how to apply line folding automatially when labeling figure

From: Walter Roberson

Date: 19 Mar, 2010 03:30:11

Message: 2 of 2

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

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com