[Scilab-users] surf and plot3d

classic Classic list List threaded Threaded
3 messages Options
Jens Jens
Reply | Threaded
Open this post in threaded view
|

[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
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Patrice MÉGRET Patrice MÉGRET
Reply | Threaded
Open this post in threaded view
|

Re: surf and plot3d

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:[hidden email]] De la part de Jens Simon Strom
Envoyé : dimanche 14 mai 2017 18:51
À : International users mailing list for Scilab. <[hidden email]>
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
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Jens Jens
Reply | Threaded
Open this post in threaded view
|

Re: surf and plot3d

Thanks a lot, Patrice!
Regards, Jens
------------------------------------------------------------------------------------------------------------------
Am 15.05.2017 11:10, schrieb Patrice MEGRET:

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 [[hidden email]] De la part de Jens Simon Strom
Envoyé : dimanche 14 mai 2017 18:51
À : International users mailing list for Scilab. [hidden email]
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
[hidden email]
http://lists.scilab.org/mailman/listinfo/users


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users