Is it possible to put xlabel text in two rows but with different font size?

41 views (last 30 days)
Is it possible to put xlabel text in two rows but with different font size?

Accepted Answer

Jan
Jan on 28 Oct 2015
The documentation of xlabel explains with an example, how a multi-line output works. Did you read it? Then the only problem is the font size, which is explained there also:
plot((1:10).^2)
xlabel({'\fontsize{15}Population','\fontsize{20}(in thousands)'})

More Answers (1)

Stalin Samuel
Stalin Samuel on 28 Oct 2015

Community Treasure Hunt

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

Start Hunting!