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

13 ビュー (過去 30 日間)
Sophie pitois
Sophie pitois 2013 年 1 月 16 日
回答済み: Reza Yahyaei 2021 年 8 月 1 日
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

採用された回答

José-Luis
José-Luis 2013 年 1 月 16 日
sH = surf(peaks);
cH = colorbar;
set(cH,'FontSize',30);
  6 件のコメント
Joey Porter
Joey Porter 2020 年 8 月 3 日
Thank you for the solution Jose!
Daniel
Daniel 2021 年 3 月 10 日
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.

サインインしてコメントする。

その他の回答 (2 件)

Max Griggs
Max Griggs 2021 年 4 月 29 日
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 2021 年 8 月 1 日
Since I already set the font size in my code, what I did was saving the figure programatically with:
saveas(gcf, 'filename.extension')

カテゴリ

Help Center および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by