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

조회 수: 14 (최근 30일)
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 CenterFile Exchange에서 Creating, 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