[Scilab-users] long legend

Rafael Guera jrafaelbguerra at hotmail.com
Sat Nov 14 12:10:11 CET 2015


Hello,
 
Is the solution below OK for you?
 
x=1:0.1:6;
y=sin(x');
str="This is a very long legend.  Vive la France";
str1= part(str,1:27);
str2= part(str,28:$);
clf();
f=gcf();
plot2d(x,[y y]);
f.children.children.children(2).line_mode = "on";
f.children.children.children(1).line_mode = "off";
legend(str1,str2);
 
Regards,
Rafael
 
 
-----Original Message-----
From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Samuel Gougeon
Sent: Saturday, November 14, 2015 9:43 AM
To: Users mailing list for Scilab <users at lists.scilab.org>
Subject: Re: [Scilab-users] long legend
 
Hello,
 
Le 14/11/2015 05:49, fujimoto2005 a écrit :
> When the strings of the legend is too long, is it possible to display in 2
> lines by legend(stringPart1+'a line feed code'+stringPart2)?
 
Apparently, neither including ascii(10) nor ascii(13), nor using $abcd 
\newline efgh$ nor "<html>abcd<br>efgh" work...
No more idea...
 
SG
 
_______________________________________________
users mailing list
 <mailto:users at lists.scilab.org> users at lists.scilab.org
 <http://lists.scilab.org/mailman/listinfo/users> http://lists.scilab.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20151114/1e9fa14b/attachment.htm>


More information about the users mailing list