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

Samuel Gougeon sgougeon at free.fr
Wed Feb 21 13:37:59 CET 2018


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
>
>
>




More information about the users mailing list