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)?

2 次查看(过去 30 天)
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.

采纳的回答

MathWorks Support Team
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Convert Image Type 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by