[Top][All Lists]

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

[Octave-bug-tracker] [bug #31468] multi-line text objects

From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #31468] multi-line text objects
Date: Sat, 13 Aug 2011 15:32:18 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1

Follow-up Comment #34, bug #31468 (project octave):

I ran some additional tests for the text() command. ML's text() command only
accepts string and cellstr arguments. However, the string property for the
text object can be set using numeric values.

figure (1)
text (0.5, 0.2, 'char')
text (0.5, 0.4, ['char row 1'; 'char row 2'])
text (0.5, 0.6, {'cell2str (1,1)', 'cell2str (1,2)'; 'cell2str (2,1)',
'cell2str (2,2)'})
text (0.5, 0.8, 1:10)
??? Error using ==> text
String argument expected after 2 or 3 numeric arguments
h = text (0.5, 0.8, 'tmp');
set (h, 'string', 1:3)
string = get (h, 'string')
class (string)

string =


ans = char

I can modify the changeset to be compatible in most cases. The one thing I
don't know how to do is change set(h,'string', 1:3) so that the result is
stored as num2str((1:3)(:)).

For those who are interested, I've attached a pdf (test_text.pdf) illustrating
the result of the ML commands above.

(file #23798)

Additional Item Attachment:

File name: test_text.pdf                  Size:10 KB


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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