[Scilab-users] contour : z level use

paul.carrico at free.fr paul.carrico at free.fr
Sat Apr 1 23:42:46 CEST 2017


Hi 

In the following example, I'm trying to add a single contour line equals
to z = 0, but I've another value: what am I doing wrong? 

Thanks for the help 

Nota bene : I'm under 5.5.2 Scilab release 

Paul 

##########################################

mode(0)

X = linspace(0,1,10);
Y = linspace(0,1,10);
Z = rand(10,10) - rand(10,10);

Z_min = min(Z);
Z_max = max(Z);

//  plot3d

scf();
xset("colormap",jetcolormap(64)); 
drawlater() ;
xtitle("Z following (X,Y)");
colorbar(Z_min,Z_max); 
a=get("current_axes");
a.x_label; x_label=a.x_label; x_label.text=" X";
a.y_label; y_label=a.y_label; y_label.text=" Y";
a.z_label; z_label=a.z_label; z_label.text=" Z";
plot3d1(X,Y,Z,45,80);
contour(X,Y,Z,1,flag=[0 1 4],zlev=0.);
drawnow() ;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20170401/efe8b5a7/attachment.htm>


More information about the users mailing list