Colorbar font size decreases upon export
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Daniel
am 12 Mär. 2021
Kommentiert: Daniel
am 15 Mär. 2021
When I export my contours with colorbar labels, the font size is being decreased. Take, for example:
testx = 1:10; testy = 1:10; testc = [1:10].*ones(10,10);
figure,contourf(testx,testy,testc)
c = colorbar; c.Label.String = 'string'; c.Label.FontSize = 14;
Make this figure, go to File > Export setup > Export (I'm exporting to .eps) and the colorbar label will shrink. I have found other answer that would let me maintain a minimum size for ALL text, but I'd like the tick labels to remain small. Is there a way to prevent this?
0 Kommentare
Akzeptierte Antwort
ANKUR KUMAR
am 13 Mär. 2021
Bearbeitet: Image Analyst
am 15 Mär. 2021
Instead of manually saving the figure, you can prefer to save figure by command. It won't shrink the figure.
print('sample','-deps','-r200')
4 Kommentare
Weitere Antworten (1)
Image Analyst
am 15 Mär. 2021
Have you tried exportgraphics(), if youre using r2020a or later? Or try using saveas().
Siehe auch
Kategorien
Mehr zu Purple finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!