From: Andrew Stevens on
Walter Roberson <roberson(a)hushmail.com> wrote in message <hms7hg$6ba$1(a)canopus.cc.umanitoba.ca>...
> Kevin wrote:
>
> > Thanks for the detailed description on how our computer screen does
> > display. I will read that tonight. I guess it is safe to conclude that
> > it is not a trivial thing to draw an one-inch horizontal line in Matlab.
>
> Computers can only make decisions based upon the inputs they are given, and
> displays are one of the cases where the inputs are inaccurate more often than not.
>
> For example, some of the people I have worked with have had significant vision
> problems, and so use a magnifying glass in front of their scr, or a display
> that has been adapted to have a magnifying glass built into it, or a display
> that has a built in electronic magnifying glass that enlarges the portion of
> the screen the person wants to look at. In all of these cases, creating a line
> on the display that will be one inch long when it reaches the person reading
> it, would require a lot of work... especially if the spherical axes of the
> magnification glass were not properly aligned, so that the magnification was
> unequal in X and Y and would depend upon exactly where the person was looking
> from and toward.
>
> Plotting a *nominally* one inch line is trivial:
>
> plot([0 1], [.5 .5], 'Units', 'inch')
>
> Unfortunately in the real world, it will probably not be 1 inch as measured by
> a ruler, and thus is unsuited as a replacement for a ruler.

This weeks file exchange Pick of the Week might be relevant here:

http://blogs.mathworks.com/pick/2010/03/05/uisetscreenpixelsperinch/

-Andrew