[Scilab-users] surf & isoview: bug or unexpected "feature"
Antoine Monmayrant
antoine.monmayrant at laas.fr
Wed Feb 21 11:06:17 CET 2018
OK, answering my own question:
It seems that when calling surf(), the cube_scaling property of the
current axis is set to "on", which results in the observed behaviour.
Manually resetting to its default value "off", gives me the expected
behaviour.
Should I fill a bug about the absence of cube_scaling mention on the
help pages of surf() and isoview() ?
Antoine
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
>
>
>
--
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
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