[scilab-Users] annotation of graphs with Greek and LaTeX symbols

Sylvestre Ledru sylvestre.ledru at scilab.org
Fri Nov 20 07:42:08 CET 2009


Le jeudi 19 novembre 2009 à 17:23 -0600, Peter Hinow a écrit :
> Hello Sylvestre et al,
> it works with xstring, but not within legend. Or am I missing something?
Can you show us your example which is failing ?

This works for me with the current 5.2 branch:
t=linspace(0,%pi,20);
a=gca();a.data_bounds=[t(1) -1.8;t($) 1.8];
plot2d(t,[cos(t'),cos(2*t'),cos(3*t')],[-5,2 3]);  
hl=legend(['$cos(t)$';'$cos(2*t)$';'$cos(3*t)$']);
 
Thx
Sylvestre





More information about the users mailing list