[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: 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 (& 
> gnuplot", what is the suggestion you refer to?

(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{:}]; 

to the top of the _axis_label_ function?

BTW, David also asked for Matlab behaviour:

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'})

ML 2010b first shows a figure with title 'One line', after set() the title
changes into:


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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