Why do my axis tick labels become extremely large when I print a figure to a TIFF format at a high resolution in MATLAB 7.0 (R14)?

3 views (last 30 days)
I have set the "FontUnits" property of my axes to "normalized". I have chosen normalized fontunits so that as my Y-axis increases in height, the font size increases proportionally.
I print the figure to a TIFF image using the following command:
print('-f1', '-dtiff', '-r600', 'testr600.tif');
The resultant image has very large font sizes for my axis tick labels and x and y labels. I am also seeing this problem with JPEG and PNG image formats.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
We have verified that there is a bug in MATLAB 7.0 (R14)) in the way that the PRINT command handles the 'FontUnits' property when it is set to 'normalized'.
To work around this issue, set the "FontUnits" property to its default value "Points". You may modify this property using the following set of commands.
% The figure in question should be the current figure at this point
ax=findobj(gcf,'Type','axes')
set(ax,'FontUnits','points')
Alternatively, you may print to a postscript file and use a third party image conversion program to convert the image to TIFF format.

More Answers (0)

Categories

Find more on Convert Image Type in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!