[Scilab-users] surf & isoview: bug or unexpected "feature"

Stéphane Mottelet stephane.mottelet at utc.fr
Wed Feb 21 13:47:13 CET 2018


Great ! But in this case I would add also

isoview('off') missed switching .cube_scaling='on'

S.

Le 21/02/2018 à 13:37, Samuel Gougeon a écrit :
> Hi Antoine and Stéphane,
>
> Please look at https://codereview.scilab.org/#/c/18857/ and its header,
> and try
> --> uman isoview! @
>
> Samuel
>
> Le 21/02/2018 à 10:59, Antoine Monmayrant a écrit :
>> Hi all,
>>
>>
>> I am a bit surprised by the way isoview acts on a surf plot.
>> It seems to just scale the x,y,z axis so that the plot is inside an 
>> isometric 3D cube.
>> I was expecting an aspect ratio that depends on the Z matrix value 
>> and size or on the X,Y coordinate vectors and the Z matrix value.
>> Here is an example:
>>
>> //without X,Y axis: expecting an aspect ratio in the (x,y) plan 
>> corresponding to the dimensions of the Z matrix
>> Z=rand(10,30);
>> h=scf();
>> surf(Z);
>> isoview("on");//we should see a 3/1 aspect ratio in the x/Y plane but 
>> we have square
>>
>> //trying with X,Y coordinates: expecting an the plot to fit inside a 
>> "cube" with aspect ratios along the x,y & z directions
>> //that depends on max(X)-min(X), max(Y)-min(Y) & max(Z)-min(Z)
>> Z=rand(10,30);
>> X=1:size(Z,2);
>> Y=1:size(Z,1);
>> h=scf();
>> surf(X,Y,Z);
>> isoview("on");//we should see a 3/1 aspect ratio in the x/Y plane but 
>> we have square
>>
>>
>> Am I the only one to expect this behaviour?
>>
>>
>> Antoine
>>
>>
>>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users


-- 
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
http://www.utc.fr/~mottelet




More information about the users mailing list