MATLAB Answers

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

15 views (last 30 days)
Nadine G
Nadine G on 23 Sep 2020 at 17:31
Edited: Adam Danz on 28 Sep 2020 at 17:04
Is there some equivalent to set(gca, 'FontSize',xy)?

  0 Comments

Sign in to comment.

Answers (1)

Adam Danz
Adam Danz on 23 Sep 2020 at 17:55
Edited: Adam Danz on 28 Sep 2020 at 17:04
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

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!