[Scilab-users] {EXT} Set axes limit for plot
Dang Ngoc Chan, Christophe
Christophe.Dang at sidel.com
Thu Apr 28 09:12:18 CEST 2016
Hello,
> De : Shamika Mohanan
> Envoyé : jeudi 28 avril 2016 08:19
>
> 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)
> [...] How do I set the axis from 25 to 100 for both x and y axes?
You should try :
plot(x1,y1,x2,y2)
h = gca(); // get current axes
h.data_bounds = [25, 25 ; 100, 100];
See : https://help.scilab.org/docs/5.5.2/en_US/axes_properties.html
Regards
--
Christophe Dang Ngoc Chan
Mechanical calculation engineer
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
More information about the users
mailing list