How do I get the title and label objects for an axes in MATLAB R2014b?

7 visualizaciones (últimos 30 días)
How do I get the title and label objects for an axes in MATLAB R2014b?

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 7 de Oct. de 2014
Starting in MATLAB R2014b, the text objects used for graph titles and axis labels are no longer children of the axes. Instead, use the Title, XLabel, YLabel, and ZLabel properties of the axes to get the associated text objects.
For example, get the text objects used for the title and x-axis label.
ax = gca;
t = ax.Title;
xl = ax.XLabel;

Más respuestas (0)

Categorías

Más información sobre Labels and Annotations en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by