<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Hi Samuel</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Even when using mode = 1 (as the other in fact) in the flag,  the result remains identical</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"><span style="text-decoration: underline;"><em>Nb</em></span>: I probably pasted the latest trial I did :-)</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Paul</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">
<pre><span>// flag=[mode,type,box]</span>
<span>// mode : //string representation mode.</span>
       <span>//mode=0: the level curves are drawn on the surface defined by (x,y,z).</span>
      <span style="color: #ff0000;"> //mode=1: the level curves are drawn on a 3D plot and on the plan defined by the equation z=zlev.</span>
       <span>//mode=2: the level curves are drawn on a 2D plot.</span>
       
<span>//type : an integer (scaling).</span>
       <span>//type=0 : the plot is made using the current 3D scaling (set by a previous call to param3d, plot3d, contour or plot3d1).</span>
       <span>//type=1 : rescales automatically 3d boxes with extreme aspect ratios, the boundaries are specified by the value of the optional argument ebox.</span>
       <span><span style="color: #ff0000;">//type=2 : rescales automatically 3d boxes with extreme aspect ratios, the boundaries are computed using the given data</span>.</span>
       <span>//type=3 : 3d isometric with box bounds given by optional ebox, similarily to type=1</span>
       <span>//type=4 : 3d isometric bounds derived from the data, to similarily type=2</span>
       <span>//type=5 : 3d expanded isometric bounds with box bounds given by optional ebox, similarily to type=1</span>
       <span>//type=6 : 3d expanded isometric bounds derived from the data, similarily to type=2</span>
       
<span>//box : an integer (frame around the plot).</span>
       <span>//box=0 : nothing is drawn around the plot.</span>
       <span>//box=1 : unimplemented (like box=0).</span>
       <span>//box=2 : only the axes behind the surface are drawn.</span>
       <span>//box=3 : a box surrounding the surface is drawn and captions are added.</span>
       <span style="color: #ff0000;">//box=4 : a box surrounding the surface is drawn, captions and axes are added.</span>

<span>//ebox : used when type in flag is 1. It specifies the boundaries of the plot as the vector [xmin,xmax,ymin,ymax,zmin,zmax].</span>

<span>//zlev : real number.</span></pre>
</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Le 2017-04-02 12:56, Samuel Gougeon a écrit :
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">Hello,<br /> <br />
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">contour(X,Y,Z,1,flag=[0 1 4],zlev=0.);</blockquote>
<br /> You are setting an inappropriate mode in flag.<br /> <br /> Samuel<br /> <br /> Le 02/04/2017 à 09:16, <a href="mailto:paul.carrico@free.fr">paul.carrico@free.fr</a> a écrit :<br /> <br />
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">Hi<br /> <br /> I've been thinking that Scilab uses the closest zlev than the one<br /> I'm specifying, based on the points I provided ... am I correct?<br /> <br /> I've to find a way to create the points I need with z=0 ....<br /> <br /> Paul<br /> <br /> Le 2017-04-01 23:42, <a href="mailto:paul.carrico@free.fr">paul.carrico@free.fr</a> a écrit :<br /> <br />
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">Hi<br /> <br /> In the following example, I'm trying to add a single contour line<br /> equals to z = 0, but I've another value: what am I doing wrong?<br /> <br /> Thanks for the help<br /> <br /> Nota bene : I'm under 5.5.2 Scilab release<br /> <br /> Paul<br /> <br /> ##########################################<br /> <br /> mode(0)<br /> <br /> X = linspace(0,1,10);<br /> Y = linspace(0,1,10);<br /> Z = rand(10,10) - rand(10,10);<br /> <br /> Z_min = min(Z);<br /> Z_max = max(Z);<br /> <br /> //  plot3d<br /> <br /> scf();<br /> xset("colormap",jetcolormap(64));<br /> drawlater() ;<br /> xtitle("Z following (X,Y)");<br /> colorbar(Z_min,Z_max);<br /> a=get("current_axes");<br /> a.x_label; x_label=a.x_label; x_label.text=" X";<br /> a.y_label; y_label=a.y_label; y_label.text=" Y";<br /> a.z_label; z_label=a.z_label; z_label.text=" Z";<br /> plot3d1(X,Y,Z,45,80);<br /> contour(X,Y,Z,1,flag=[0 1 4],zlev=0.);<br /> drawnow() ;<br /> _______________________________________________</blockquote>
</blockquote>
_______________________________________________<br /> users mailing list<br /> <a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br /> <a href="http://lists.scilab.org/mailman/listinfo/users" target="_blank" rel="noreferrer">http://lists.scilab.org/mailman/listinfo/users</a></blockquote>
</div>
</body></html>