MATLAB: How to adjust the resolution setting in MATLAB 7.1 (R14SP3) for widescreen monitors

aspectMATLABpixelratioscreen

There is one ScreenPixelsPerInch property to set the resolution of HG objects. However, I have a widescreen monitor with 1600×1060 resolution. When I have a plot, legends and colorbars may appear oddly sized.

Best Answer

To work around this issue, use the Position or Location properties of graphics objects to set their position and size manually.
For example:
x = -5:.1:5;
y = -2:.1:2;
[xx yy] = meshgrid(x, y);
zz = xx.^2 + yy.^2;
surf(xx, yy, zz)
set(gca,'Position',[.1 .1 .6 .8])
colorbar(gcf,'Position',[.8 .2 .1 .6])
legend(gca,'Sample text','Location',[.8 .9 .1 .05])