Thread Subject: multiple lines in labeled ticks on axes

Subject: multiple lines in labeled ticks on axes

From: Richard

Date: 21 Nov, 2009 04:04:19

Message: 1 of 1

I'm trying to figure out a way to make multiple line for a labeled tick

example. normally:
set(h.axis,'XTickLabel', {'1', '2','3'})

what I'm trying to do:
set(h.axis,'XTickLabel', {'1', '2 \n mean','3'})

so the three ticks on the x axis would be labeled 1, 2 and 3 with an extra line below 2 saying "mean"

Possible?

Tags for this Thread

Everyone's Tags:

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.

Tag Activity for This Thread
Tag Applied By Date/Time
xticklabel ytic... Richard 20 Nov, 2009 23:09:04
rssFeed for this Thread

Contact us at files@mathworks.com