Rotating LabelTick in Colorbar

6 visualizaciones (últimos 30 días)
Miguel
Miguel el 2 de Nov. de 2013
Editada: Image Analyst el 4 de Nov. de 2013
Good Morning.
I have a colorbar positioned in "northoutside" a mesh plot.
I would like to rotate the text of 90°. How could I do that? I saw that there is no "Rotation" property in the 'colorbar' class.
Suggestions?
Thank you very much

Respuestas (4)

Image Analyst
Image Analyst el 2 de Nov. de 2013
Use text() which does have a rotation option
text(x, y, yourLabel, 'Rotation', 90);

Miguel
Miguel el 4 de Nov. de 2013
Thank you for your suggestion. Unfortunately it is still not working.
I used both text and annotation. For example:
%Define object: handle=annotation('textbox', [0.11, 0.955, 0, 0], 'string', str(1),'Fontsize',24,'FontName','Helvetica','Fontweight','bold')
%Rotate Element set(handle, 'rotation', 60)
but unfortunately the result is the following:
The name 'rotation' is not an accessible property for an instance of class 'textbox'.
  1 comentario
Image Analyst
Image Analyst el 4 de Nov. de 2013
Editada: Image Analyst el 4 de Nov. de 2013
Your code is not working. You didn't even try my code. I didn't say to use annotation(). I said to use text() .

Iniciar sesión para comentar.


Sean de Wolski
Sean de Wolski el 4 de Nov. de 2013
Use this tool to turn the ticks to text as IA has pointed out.

Miguel
Miguel el 4 de Nov. de 2013
Thank you for your support. I had some issues with \text out of the plot but then it worked.
Thanks!

Categorías

Más información sobre Colorbar en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by