[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Text extent property
From: |
Søren Hauberg |
Subject: |
Re: Text extent property |
Date: |
Sun, 07 Mar 2010 10:13:51 -0800 |
lor, 06 03 2010 kl. 19:55 +0000, skrev Michael Goffioul:
> On Sat, Mar 6, 2010 at 7:17 PM, Soren Hauberg <address@hidden> wrote:
> > lor, 06 03 2010 kl. 18:41 +0000, skrev Michael Goffioul:
> >> BTW, could anybody check a few things for me on Matlab?
> >> - does "extent" property takes text rotation into account
> >
> >>> th = text (1, 1, 'Why am I using Matlab, when I could be using
> > Octave?');
> >>> get (th, 'extent')
> >
> > ans =
> >
> > 0.9954 0.9708 0.7218 0.0496
> >
> >>> set (th, 'Rotation', 45)
> >>> get (th, 'extent')
> >
> > ans =
> >
> > 0.7816 0.9329 5.5172 1.4052
>
> Did some autoscale take place during the rotation?
> The new value seems pretty different from the
> original one.
Hmm, it looks like I somehow screwed up. Not quite sure how, though,
because I can't seem to replicate my own results.
I've attached a script along with the results it produce. This might
give something more useful for you.
Soren
extent_test.m
Description: Text Data
extent_test.mat
Description: Binary data