MATLAB Answers

How can i keep the fontsize on colorbar when saving as JPEG, TIFF etc....

129 views (last 30 days)
Sophie pitois
Sophie pitois on 16 Jan 2013
Answered: Max Griggs on 29 Apr 2021
I am producing graphs in Matlab to be converting as JPEG/TIFF for inclusion into documents. I use a font 30 on graphs. Everything saves as such except for the colorbar which return to a very small font 8/10. Does anyone knows the solution to this problem? Many thanks

Accepted Answer

José-Luis
José-Luis on 16 Jan 2013
sH = surf(peaks);
cH = colorbar;
set(cH,'FontSize',30);
  6 Comments
Daniel
Daniel on 10 Mar 2021
This also changes the size of the tick labels on the colorbar, but I only want the size of the colorbar label to stay big.

Sign in to comment.

More Answers (1)

Max Griggs
Max Griggs on 29 Apr 2021
Same as José-Luis's answer except change:
set(cH,'FontSize',30)
To this:
set(cH.Label,'FontSize',30)
8 Years later...😎

Community Treasure Hunt

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

Start Hunting!

Translated by