[Scilab-users] long legend

JLan j-lan at online.no
Sat Nov 14 16:14:57 CET 2015


updated

Smart solution from Rafael Guera, I actually needed the same .

Here an inspired alternative with plot(), that also gets the colors correct
(on white background):


x=1:0.1:6;
y1=sin(x);
y2=cos(x);
str="This is a very long legend.  Vive la France";
str1= part(str,1:27);
str2= part(str,28:$);
strb="Another very long legend.   Vive la France";
str1b= part(strb,1:27);
str2b= part(strb,28:$);
clf();
f=gcf();
replot([1 6 ;-1.5 2]);
plot(x,y1,"..r",x,y1,"..w",x,y2,"g",x,y2,"w",x,y1,"..r",x,y2,"g");
legend(str1,str2,str1b,str2b,%f);


Jan




--
View this message in context: http://mailinglists.scilab.org/long-legend-tp4033087p4033092.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.



More information about the users mailing list