Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!y19g2000yqy.googlegroups.com!not-for-mail
From: Rune Allnor <allnor@tele.ntnu.no>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Text property, 'extent', not working properly
Date: Sun, 19 Jul 2009 05:03:09 -0700 (PDT)
Organization: http://groups.google.com
Lines: 31
Message-ID: <0e3882df-3fbc-4c37-90d1-6e3d4b7c7bf8@y19g2000yqy.googlegroups.com>
References: <h3slb9$nsa$1@fred.mathworks.com> <h3t9g9$fe2$1@fred.mathworks.com> 
	<h3tt69$e99$1@fred.mathworks.com> <h3u041$lov$1@fred.mathworks.com>
NNTP-Posting-Host: 77.16.233.244
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1248004989 31356 127.0.0.1 (19 Jul 2009 12:03:09 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sun, 19 Jul 2009 12:03:09 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: y19g2000yqy.googlegroups.com; posting-host=77.16.233.244; 
	posting-account=VAp5gAkAAAAmkCze5hvZtMeedpZWNthI
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; 
	Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 
	3.5.21022),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:556587


On 19 Jul, 04:24, "Ben " <breed...@hotmail.com> wrote:
> >  This is slightly better than before, since the interval is constant, ...
>
> Actually, it's not much better than before.  In the latest attempt, the interval was a constant 23.9361 when it should have been 24.  In the first attempt, the interval was also a constant: I got 25.6, when it should have been 25.

This question is a bit more involved than you might think.

First of all, the normalized text size is dynamic, since the
glyphs appear at the same size on screen irrespective of
axis settings in the figure.

So there is a scaling step between the fontsize and the
axis scale.

Next, there is a discretizasion / raster step when the
figure is drawn on screen. The contents has to be drawn
on a regular (x,y) grid. This is what you see.

If matlab works - as I suspect it does - by expressing
text extents in the axis scale, there are two scaling
steps in between the reported numbers and the printed
image on screen.

So you need to figure out why you need these numbers,
and add suitable safety limits around the text.

Rune