how to change the front size and the inclination in a bar graph

1 visualización (últimos 30 días)
Fedi Chaarana
Fedi Chaarana el 12 de Oct. de 2021
Respondida: Star Strider el 12 de Oct. de 2021
Hello
My problem ist that the names under each bar are written with a 45 degree rotation( it comes by itself)
how can I get the name back to a normal horizontal position
2- how can I get the name to be written normally( those low characters should be on the same level as others)
thanks

Respuestas (2)

Chunru
Chunru el 12 de Oct. de 2021
h = gca;
h.XTickLabelRotation = 0; % not recommended for long string
h.TickLabelInterpreter = 'none';

Star Strider
Star Strider el 12 de Oct. de 2021
2- how can I get the name to be written normally( those low characters should be on the same level as others)
‘Escape’ them with at \
text(0.4, 0.55,'DC14_v546003_8 Original')
text(0.4, 0.45,'DC14\_v546003\_8 Desired')
If they are created using sprintf, use a double backslant '\\' in the format string, so that the single backslant will print correctly in the output.
.

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by