[Scilab-users] How can I change the x_ticks and y_ticks?

Reinaldo rei.listas at yahoo.com
Tue Jun 16 02:23:43 CEST 2015


Hi Scilab members,
How could I change the x_ticks and y_ticks?
For example: In this following script, the x_ticks displays each 2 units on X axis. I'd like each 0.5; and the y_ticks displays each 0.2 units on Y axis. I'd like each 0.1. How could I change those parameters?
function f=myfunction(x)
f = sin(x)./x
endfunction

// Plot
scf(1);
clf(1);
xdata = linspace ( -12, 12, 100 );
ydata = myfunction ( xdata );
plot ( xdata , ydata );
a=gca(); // obtendo o manipulador dos eixos correntes
a.grid=[1 1];
xlabel("X","fontsize",4,"color","red");
ylabel("Y","fontsize",4,"color","red");Thank you in advance.
All best,Reinaldo.


   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20150616/ba23bf50/attachment.htm>


More information about the users mailing list