[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Text extent implemented (partially)
From: |
Ben Abbott |
Subject: |
Re: Text extent implemented (partially) |
Date: |
Tue, 9 Mar 2010 09:01:19 -0500 |
On Mar 9, 2010, at 7:51 AM, Michael Goffioul wrote:
> On Tue, Mar 9, 2010 at 12:29 PM, Ben Abbott <address@hidden> wrote:
>> I played with this today. Looks good to me (works for fltk and gnuplot).
>> However, I have some questions.
>>
>> When you wrote ...
>>
>>> The left and bottom are always set to the lower
>>> left corner of the axes box
>>
>> I assume you meant; "The left and bottom are always set to the lower left
>> corner of the text's bounding box."?
>
> I meant indeed the left and bottom value of the extent property, which is
> [left bottom width height]
I find it confusing to when there are multiple coordinate systems. Perhaps it
is best to give an example?
For Matlab (left, bottom) of the text extent is with respect to the axes
coordinate system, with the units specified by the text object.
>> plot(1:10)
>> h = text (5,5,'Hello World');
>> get (h, 'extent')
ans =
4.9517 4.7522 1.3862 0.41983
The same example in Octave gives ...
octave:7> get (h, 'extent')
ans =
-0.00000 0.00000 1.86636 0.52585
Ben
Re: Text extent implemented (partially), Jaroslav Hajek, 2010/03/09
Re: Text extent implemented (partially), Søren Hauberg, 2010/03/09