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

15 vues (au cours des 30 derniers jours)
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

Réponse acceptée

José-Luis
José-Luis le 16 Jan 2013
sH = surf(peaks);
cH = colorbar;
set(cH,'FontSize',30);
  6 commentaires
Joey Porter
Joey Porter le 3 Août 2020
Thank you for the solution Jose!
Daniel
Daniel le 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.

Connectez-vous pour commenter.

Plus de réponses (2)

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

Reza Yahyaei
Reza Yahyaei le 1 Août 2021
Since I already set the font size in my code, what I did was saving the figure programatically with:
saveas(gcf, 'filename.extension')

Catégories

En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by