Hello,

contour(X,Y,Z,1,flag=[0 1 4],zlev=0.);

You are setting an inappropriate mode in flag.

Samuel


Le 02/04/2017 à 09:16, [email protected] a écrit :
Hi
I've been thinking that Scilab uses the closest zlev than the one I'm specifying, based on the points I provided ... am I correct?
I've to find a way to create the points I need with z=0 ....
Paul
Le 2017-04-01 23:42, [email protected] <mailto:[email protected]> a écrit :
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() ;
_______________________________________________

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

Reply via email to