[Scilab-users] surf and plot3d

Jens Simon Strom j.s.strom at hslmg.de
Mon May 15 12:27:14 CEST 2017


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 [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
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20170515/9a0998d9/attachment.htm>


More information about the users mailing list