[Scilab-users] surf and plot3d
Patrice MEGRET
Patrice.MEGRET at umons.ac.be
Mon May 15 11:10:03 CEST 2017
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-bounces at lists.scilab.org] De la part de Jens Simon Strom
Envoyé : dimanche 14 mai 2017 18:51
À : International users mailing list for Scilab. <users at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20170515/07d626dd/attachment.htm>
More information about the users
mailing list