[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: |
David Bateman |
Subject: |
[Octave-bug-tracker] [bug #31468] multi-line text objects |
Date: |
Wed, 24 Nov 2010 21:15:18 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.14) Gecko/2009091010 Iceweasel/3.0.14 (Debian-3.0.14-1) |
Follow-up Comment #2, bug #31468 (project octave):
Am I missing something, but can't this be fixed by adding something like
if (iscellstr (txt))
## Treat cell string array as multi-line text
txt(1:2:2*numel(txt)) = txt;
txt(2:2:2*numel(txt)) = "n";
txt = [txt{:}];
endif
to the top of the __axis_label__ function? The "text" function already treat
cell string arrays as multiple calls to the text function with different
values of "x", "y" and "z". Therefore "x", "y" and "z" are expected to have as
many elements as there are elements in the cell string array.
So as far as I can tell __axis_label__ is the only function that needs to be
treated in this way. Does it make sense to treat multiline strings in tick
labels? If so then we'd need to treat this feature request in graphics.cc as
the ticklabels might be set directly from the handle.
Can Matlab set multiline text in the handle directly? What does matlab give
for something like
h = title('One Line');
set (h, 'string', {'Two','lines'})
give in matlab. If the above works, maybe the text objects themselves should
be adapted to handle cell string arrays.
D.
_______________________________________________________
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,
David Bateman <=