[Scilab-users] Set axes limit for plot

Serge Steer Serge.Steer at inria.fr
Thu Apr 28 09:35:41 CEST 2016


Le 28/04/2016 08:19, Shamika Mohanan a écrit :
> How do I set the minimum and maximum values for the axes in a plot?
>
> When I use the plot command as
>
> plot(x1,y1,x2,y2)
>
> I get the plot where x axis is from 0 to 100 and y axis is from -20 to 
> 120. How do I set the axis from 25 to 100 for both x and y axes?
>
> Shamika
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
after the plot you can do
ax=gca(),// gat the handle on the current axes
ax.data_bounds=[25 25;100 100];

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20160428/0c0156bd/attachment.htm>


More information about the users mailing list