Thread Subject: change actual axis values

Subject: change actual axis values

From: recep mansiz

Date: 15 Jul, 2009 10:49:02

Message: 1 of 5

Hi all!!

how can I change graph axis values without sliding the dots from their original positions ??

i.e. values seen are [0 150] but I want to assign them the values [-68 68]

thanks in advance

Subject: change actual axis values

From: recep mansiz

Date: 15 Jul, 2009 11:52:01

Message: 2 of 5

http://www.mathworks.com/matlabcentral/newsreader/view_thread/256058#665094

Subject: change actual axis values

From: recep mansiz

Date: 16 Jul, 2009 12:18:01

Message: 3 of 5

even removing axes values completely is ok...does anybody have any idea??

Subject: change actual axis values

From: Alan B

Date: 16 Jul, 2009 14:08:01

Message: 4 of 5

"recep mansiz" <aalmoraa@hotmail.com> wrote in message <h3n5pp$8ou$1@fred.mathworks.com>...
> even removing axes values completely is ok...does anybody have any idea??

You can use
axis ij
axis xy
to select the direction of the Y axis.

If you type 'help image', the fourth paragraph (2007a) explains how to display an image in a specified region instead of the default region.

This will return a string containing the labels for the x tick marks on the current axes:
get(gca,'xticklabel')
You can modify those labels using:
set(gca,'xticklabel',mylabels)
where mylabels can be a 2D character array or a cell array of strings.

Subject: change actual axis values

From: recep mansiz

Date: 21 Jul, 2009 07:22:01

Message: 5 of 5

thanks very much Alan...this is the answer.

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