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

Antoine Monmayrant antoine.monmayrant at laas.fr
Wed Feb 21 10:59:33 CET 2018


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



-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++

  Antoine Monmayrant LAAS - CNRS
  7 avenue du Colonel Roche
  BP 54200
  31031 TOULOUSE Cedex 4
  FRANCE

  Tel:+33 5 61 33 64 59
  
  email : antoine.monmayrant at laas.fr
  permanent email : antoine.monmayrant at polytechnique.org

+++++++++++++++++++++++++++++++++++++++++++++++++++++++




More information about the users mailing list