How can I adjust the resolution setting in MATLAB 7.1 (R14SP3) for widescreen monitors?

1 view (last 30 days)
There is one ScreenPixelsPerInch property to set the resolution of HG objects. However, I have a widescreen monitor with 1600x1060 resolution. When I have a plot, legends and colorbars may appear oddly sized.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
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])

More Answers (0)

Products


Release

R14SP1

Community Treasure Hunt

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

Start Hunting!