How can I change axes labels?
Show older comments
from this:
0 ^
1 .
2 .
3 .
4 .
5 .
6 .
7 .
8 .
9 .
10.....................>
0 1 2 3 4 5 6 7 8 9 10
to this:
10^
9 .
8 .
7 .
6 .
5 .
4 .
3 .
2 .
1 .
0 .....................>
0 1 2 3 4 5 6 7 8 9 10
Thanks.
Accepted Answer
More Answers (1)
Azzi Abdelmalek
on 28 Nov 2012
Edited: Azzi Abdelmalek
on 28 Nov 2012
yt=get(gca,'ytick');
set(gca,'yticklabel',fliplr(yt))
8 Comments
Tomislav
on 28 Nov 2012
Azzi Abdelmalek
on 28 Nov 2012
I think your comments are contradictory
Tomislav
on 28 Nov 2012
Azzi Abdelmalek
on 28 Nov 2012
Edited: Azzi Abdelmalek
on 28 Nov 2012
If you don't change your data, the data cursor will give the same values.
Tomislav
on 28 Nov 2012
Azzi Abdelmalek
on 28 Nov 2012
I did'nt say there is no way to make it looks like it following axis labels, but I don't understand what is your goal, perhaps there is better ways.
Tomislav
on 29 Nov 2012
Tomislav
on 29 Nov 2012
Categories
Find more on Data Exploration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!