[Scilab-users] How to define the Y Range of plot

Stefan Du Rietz sdr at durietz.se
Sat Aug 8 23:55:56 CEST 2020


You don't *need* it, of course ;-)
cafix is the handle of your axes from plot() which you got with gca(). 
You can then set the properties of it with the dot method.

Stefan


On 2020-08-08 23:33, Stefan Du Rietz wrote:
> Hello Fukashiimo, you don't nedd the last line! All is already done by 
> the previous lines.
> 
> Stefan
> 
> 
> On 2020-08-08 23:25, Fukashiimo wrote:
>> Hello, Mr. Stefan,
>>
>> Thanks.
>>
>>
>>
>> plot (X,Y);
>> cafix = gca();
>> cafix.tight_limits="on";
>> cafix.auto_scale="off";
>> cafix.data_bounds = [-0.5,-2;0.5,2];
>> set(gca(),"data_bounds", cafix.data_bounds);
>>
>>
>>
>> -- 
>> Sent from: 
>> http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html 
>>
>> _______________________________________________
>> users mailing list
>> users at lists.scilab.org
>> http://lists.scilab.org/mailman/listinfo/users
>>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users



More information about the users mailing list