Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
ylabel format

Subject: ylabel format

From: J G

Date: 1 Apr, 2011 01:15:21

Message: 1 of 2

Currently, my ylabel looks like this:

ylabel('{\itv} (A_1)',','fontsize', 16)
set(get(gca,'ylabel'),'Rotation',0.0)

However I would like it to look like this:
{\itv}
(A_1)

so the '(A_1)' bit is vertically underneath the '{\itv}' bit. I've tried using '\v' but I can't get this to work and not even sure if this is the right command to use.
Thanks,
J.

Subject: ylabel format

From: Doug Schwarz

Date: 1 Apr, 2011 02:52:29

Message: 2 of 2

In article <in38v9$pea$1@fred.mathworks.com>,
 "J G" <jemma.geoghegan@gmail.com> wrote:

> Currently, my ylabel looks like this:
>
> ylabel('{\itv} (A_1)',','fontsize', 16)
> set(get(gca,'ylabel'),'Rotation',0.0)
>
> However I would like it to look like this:
> {\itv}
> (A_1)
>
> so the '(A_1)' bit is vertically underneath the '{\itv}' bit. I've tried
> using '\v' but I can't get this to work and not even sure if this is the
> right command to use.
> Thanks,
> J.

ylabel({'{\itv}','(A_1)'},'fontsize', 16)
set(get(gca,'ylabel'),'Rotation',0)

--
Doug Schwarz
dmschwarz&ieee,org
Make obvious changes to get real email address.

Tags for this Thread

No tags are associated with this thread.

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.

Contact us