[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 01:17:03 +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 #30, bug #31468 (project octave):


I'd like to avoid specifying how the underlying architecture works (there may
be solutions I've not considered).

What is I understand is needed ...

str = "hello world"';
h = text (0, 0, str);
assert (strcmp (str, get (h, "string"))

... and ....

str = ["hello"; "world"]';
h = text (0, 0, str);
assert (strcmp (str, get (h, "string"))

.. and ...

str = {"hello", "world"}';
h = text (0, 0, str);
assert (strcmp (str, get (h, "string"))

We could copy what is done for ticklabels, but what should be done for numeric
values? We might do a num2str(value), char(value), or throw an error.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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