Borrar filtros
Borrar filtros

How can I change axes labels?

4 visualizaciones (últimos 30 días)
Tomislav
Tomislav el 28 de Nov. de 2012
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.

Respuesta aceptada

Matt Fig
Matt Fig el 28 de Nov. de 2012
set(gca,'ydir','normal')
  4 comentarios
Matt Fig
Matt Fig el 28 de Nov. de 2012
If that doesn't do what you need, then it sounds like your problem is with the data itself. You should scale and shift the data before plotting....
Tomislav
Tomislav el 29 de Nov. de 2012
I did it. I messed things up with:
I=flipud(I);
I remove that and added Matt's answer and it was good.
Thank you for your time.

Iniciar sesión para comentar.

Más respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 28 de Nov. de 2012
Editada: Azzi Abdelmalek el 28 de Nov. de 2012
yt=get(gca,'ytick');
set(gca,'yticklabel',fliplr(yt))
  8 comentarios
Tomislav
Tomislav el 29 de Nov. de 2012
I explained my goal in upper comment. Ok, here is the whole situation. I have horizontal, saggital and coronal slice. I have put slices each in his axes and additionally all three in one 3D axes. Now I have to be able pick two points, either from 3D coordinates or from individual slice and they has to mach. But it doesnt. Y label on individual slice is upside-down in relation to the same slice in 3D coordinate system.
Thanks.
Tomislav
Tomislav el 29 de Nov. de 2012
I figure it out. It was my fault. Messed up things with flipud function.
Thank you Azzi for your time and patience.

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by