How do I change the font size of the axes in a stacked plot?

14 visualizaciones (últimos 30 días)
Nadine G
Nadine G el 23 de Sept. de 2020
Editada: Adam Danz el 28 de Sept. de 2020
Is there some equivalent to set(gca, 'FontSize',xy)?

Respuestas (1)

Adam Danz
Adam Danz el 23 de Sept. de 2020
Editada: Adam Danz el 28 de Sept. de 2020
Use the stackedplot handle.
h = stackedplot(T);
h.FontSize = 12;
% or
set(h, 'FontSize', 12)
If you don't have access to the stackedplot object and you have a really good reason why it's impossible to add the handle output to the stackedplot function, you can get the handle using,
h = findobj(gcf,'type','stackedplot');
Example

Categorías

Más información sobre Graphics Object Programming 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