[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)
clf
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 =
1
2
3
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:
<http://savannah.gnu.org/bugs/?31468>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #31468] multi-line text objects, (continued)
- [Octave-bug-tracker] [bug #31468] multi-line text objects, Vanya Sergeev, 2011/08/12
- [Octave-bug-tracker] [bug #31468] multi-line text objects, Ben Abbott, 2011/08/12
- [Octave-bug-tracker] [bug #31468] multi-line text objects, Ben Abbott, 2011/08/12
- [Octave-bug-tracker] [bug #31468] multi-line text objects, Vanya Sergeev, 2011/08/12
- [Octave-bug-tracker] [bug #31468] multi-line text objects, Vanya Sergeev, 2011/08/12
- [Octave-bug-tracker] [bug #31468] multi-line text objects, Jordi GutiƩrrez Hermoso, 2011/08/12
- [Octave-bug-tracker] [bug #31468] multi-line text objects, Ben Abbott, 2011/08/12
- [Octave-bug-tracker] [bug #31468] multi-line text objects, John W. Eaton, 2011/08/12
- [Octave-bug-tracker] [bug #31468] multi-line text objects, Vanya Sergeev, 2011/08/12
- [Octave-bug-tracker] [bug #31468] multi-line text objects, Vanya Sergeev, 2011/08/12
- [Octave-bug-tracker] [bug #31468] multi-line text objects,
Ben Abbott <=
- [Octave-bug-tracker] [bug #31468] multi-line text objects, Ben Abbott, 2011/08/13
- [Octave-bug-tracker] [bug #31468] multi-line text objects, John W. Eaton, 2011/08/13
- [Octave-bug-tracker] [bug #31468] multi-line text objects, Ben Abbott, 2011/08/13
- [Octave-bug-tracker] [bug #31468] multi-line text objects, John W. Eaton, 2011/08/13
- [Octave-bug-tracker] [bug #31468] multi-line text objects, Ben Abbott, 2011/08/13
- [Octave-bug-tracker] [bug #31468] multi-line text objects, John W. Eaton, 2011/08/14
- Message not available
- Message not available
- Message not available
- [Octave-bug-tracker] [bug #31468] multi-line text objects, Ben Abbott, 2011/08/15
- [Octave-bug-tracker] [bug #31468] multi-line text objects, Vanya Sergeev, 2011/08/15
- [Octave-bug-tracker] [bug #31468] multi-line text objects, Ben Abbott, 2011/08/15
- Message not available
- [Octave-bug-tracker] [bug #31468] multi-line text objects, Vanya Sergeev, 2011/08/15