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

12 Ansichten (letzte 30 Tage)
Nadine G
Nadine G am 23 Sep. 2020
Bearbeitet: Adam Danz am 28 Sep. 2020
Is there some equivalent to set(gca, 'FontSize',xy)?

Antworten (1)

Adam Danz
Adam Danz am 23 Sep. 2020
Bearbeitet: Adam Danz am 28 Sep. 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

Kategorien

Mehr zu Graphics Object Programming finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by