Dear Jens, If you use plot3d instead of surf, it is ok.
The problem is that surf uses Matlab definition of the matrix Z whereas plot3d, ... use Scilab definition. ==> there is a transposition between these two definitions (see help file) Ndgrid for plot3d, contour, ... Meshgrid for surf If you would like to use surf with ndgrid: surf(x,y,Z.') PM De : users [mailto:users-boun...@lists.scilab.org] De la part de Jens Simon Strom Envoyé : dimanche 14 mai 2017 18:51 À : International users mailing list for Scilab. <users@lists.scilab.org> Objet : [Scilab-users] surf and plot3d Hi, Please check the graph below: x=[0 1]; y=[0 2]; [X,Y]=ndgrid(x,y) Z=X+2*Y xdel(); surf(x,y,Z) param3d(X,Y,Z) ce=gce(); ce.line_mode="off"; ce.mark_mode = "on"; ce.mark_size = 10 ca=gca(); ca.rotation_angles=[65 290]; The facet corners do not coincide with the marks in Version 5.4.0. and 5.5.2.. Shouldn't they? Kind regards Jens
_______________________________________________ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users