octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #33163] The "extent" property for text objects


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #33163] The "extent" property for text objects has incorrect position encoded. Patch attached.
Date: Sat, 30 Apr 2011 03:43:51 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.57 Safari/534.24

Follow-up Comment #5, bug #33163 (project octave):

Daniel, thanks for the heads-up.

After reading your comment it occurred to me that Matlab's result might depend
upon the text objects "units" property.

Which it does. Running the script below ....


surf (peaks ())
h = text (0, 0, 1, 'hello world');
extent1 = get (h, 'extent')
set (h, 'units', 'normalized')
extent2 = get (h, 'extent')


... produces the result ...


extent1 =   0     0     0     0
extent2 =   0.4298  0.2741   0.1448   0.04665




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?33163>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]