[Scilab-users] contour : z level use

Rafael Guerra jrafaelbguerra at hotmail.com
Sun Apr 2 14:45:35 CEST 2017


Hi,

Try code below, which does not uses zlev but nz = [0,0] instead.
Attached picture is produced.
<http://mailinglists.scilab.org/file/n4036108/Contour_zero_highlighted.png> 


// START OF CODE
X = linspace(-3,3,100);
Y = linspace(-3,3,100);
Z = sin(X'*Y)-0.3; //+ X'*ones(X);

clf()
xset("colormap",jetcolormap(256));
Zc = 0;
xtitle("Z=" +string(Zc) +" contour");
colorbar(min(Z),max(Z));
a=get("current_axes");
a.x_label.text=" X";
a.y_label.text=" Y";
a.z_label.text=" Z";
plot3d1(X,Y,Z,flag=[-1 2 4]);
contour(X,Y,Z,[0 0],flag=[0 0 4]);
// END OF CODE


Rgds,
Rafael




--
View this message in context: http://mailinglists.scilab.org/Scilab-users-contour-z-level-use-tp4036103p4036108.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.



More information about the users mailing list