[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: |
Philip Nienhuis |
Subject: |
[Octave-bug-tracker] [bug #31468] multi-line text objects |
Date: |
Fri, 28 Jan 2011 21:52:59 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.11) Gecko/20100701 SeaMonkey/2.0.6 |
Follow-up Comment #7, bug #31468 (project octave):
> Philip, when you wrote "David's suggestion works OK in 3.3.90 (&
3.3.54+)&
> gnuplot", what is the suggestion you refer to?
<QUOTE>
(repost of David's comment)
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?
</QUOTE>
BTW, David also asked for Matlab behaviour:
<QUOTE>
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'})
</QUOTE>
ML 2010b first shows a figure with title 'One line', after set() the title
changes into:
Two
lines
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?31468>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/