[Scilab-users] plot3d and param3d

Stéphane Mottelet stephane.mottelet at utc.fr
Tue Nov 6 12:31:47 CET 2018


Hello,

have you checked that the line is not *behind* the surface ?

S.

Le 06/11/2018 à 12:28, Carrico, Paul a écrit :
>
> Dear All
>
> I’m trying to superimpose a basic line onto a 3D surface, but none of 
> the parameters (color, thickness and so on)  I’m trying to implement 
> works: what I’m doing wrong?
>
> Thanks for your support
>
> Paul
>
> mode(0);
>
> clear
>
> function[*z*]=_saddle_(*x*, *y*)
>
> *z* = *x*^2 - *y*^2
>
> endfunction
>
> n= 100;
>
> x= _linspace_(-2,2,n)'; /// (n,1) matrix/
>
> y= _linspace_(-1,3,n)'; /// (n,1) matrix/
>
> z= feval(x, y, _saddle_); /// (n,n) matrix/
>
> Line= [1 -2 -3 ; -2 -2 -3];
>
> /// plot/
>
> _scf_(0);
>
> drawlater();
>
> f= _gcf_();
>
> f.figure_size= [1000, 1000];
>
> f.background= color(255,255,255);
>
> a= _gca_();
>
> a.font_size= 2;
>
> a.x_label.text= '$X$';
>
> a.x_label.font_size= 4;
>
> a.y_label.text= '$Y$';
>
> a.Y_label.font_size= 4;
>
> a.z_label.text= "$\sigma$";
>
> a.z_label.font_size= 4;
>
> plot3d(x,y, feval(x, y, _saddle_));
>
> _surf_= gce();
>
> curve=_gce_();
>
> param3d(Line(:,1),Line(:,2),Line(:,3));
>
> e2= _gce_();
>
> p2= e2.children;
>
> p2.thickness= 2 ;
>
> p2.foreground= color(255,0,0);
>
> p2.line_Style= 1;
>
> p2.mark_mode="on";
>
> p2.mark_style= 0;
>
> p2.mark_size_unit="tabulated";
>
> p2.mark_size= 1;
>
> p2.mark_foreground= color(255,0,0);
>
> p2.mark_background= color(255,0,0);
>
> drawnow();
>
> */EXPORT CONTROL :
> /**Cet email ne contient pas de données techniques
> This email does not contain technical data*
>
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users


-- 
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
http://www.utc.fr/~mottelet

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20181106/74be3c2f/attachment.htm>


More information about the users mailing list