Borrar filtros
Borrar filtros

change title color without modifying the original?

3 visualizaciones (últimos 30 días)
Erwin Avendaño
Erwin Avendaño el 12 de Nov. de 2017
Comentada: Erwin Avendaño el 12 de Nov. de 2017
I want to change the color of the title of axes but without modifying it is to say that if graphic cos (x) that cos (x) appears but in yellow

Respuesta aceptada

Walter Roberson
Walter Roberson el 12 de Nov. de 2017
If you can locate a handle to the title "text" graphics object, then you can set the Color property of it. However, this would set the color of all of the text, not just part of it. The title "text" object has a hidden handle:
ax = gca;
potential_title_objects = findall(ax, 'type', 'text', 'handlevisibility', 'off');
If you wanted to set the color of just part of the text of a title(), then you have to modify the String property of the text object, as I described in your previous https://www.mathworks.com/matlabcentral/answers/366350-how-to-change-the-color-of-the-axes-graph-numbers#answer_290461
There is no way to change a property of something without modifying its properties.

Más respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps 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