Drawing Y-axis in graph

Prof. Dr. Reinaldo Golmia Dante tiraduvidascefet at yahoo.com
Sat Jun 25 20:01:45 CEST 2011


Dear Scilab users,
 
I would like to draw Y-axis in a graph, but it does not display !
 
See the Scilab-codes:
 function f=funcao(x) f = 2*x*exp(-x^2); endfunction x_inicial = -4 x_final = 4 xdata = linspace ( x_inicial , x_final, 100); y_inicial = -1.0; y_final = 1.0; plot (xdata, funcao) xtitle ( "Função" , "X axis " , "Y axis " ); drawaxis(x=x_inicial:x_final,y=0,dir='d',tics='v'); //Here X-axis displays drawaxis(y=y_inicial:y_final,x=0,dir='d',tics='v'); // I try to do the same, but Y-axis does not display  :-((( legend ( "2*x*exp(-x^2)" );
I appreciate your comments.
Thank you in advance.
All best,
Reinaldo.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20110625/b9928b4c/attachment.htm>


More information about the users mailing list