[Scilab-users] contour : z level use

paul.carrico at free.fr paul.carrico at free.fr
Sun Apr 2 14:27:30 CEST 2017


Hi Samuel 

Even when using mode = 1 (as the other in fact) in the flag,  the result
remains identical 

_Nb_: I probably pasted the latest trial I did :-) 

Paul 

// flag=[mode,type,box]
// mode : //string representation mode.
       //mode=0: the level curves are drawn on the surface defined by
(x,y,z).
       //mode=1: the level curves are drawn on a 3D plot and on the plan
defined by the equation z=zlev.
       //mode=2: the level curves are drawn on a 2D plot.

//type : an integer (scaling).
       //type=0 : the plot is made using the current 3D scaling (set by
a previous call to param3d, plot3d, contour or plot3d1).
       //type=1 : rescales automatically 3d boxes with extreme aspect
ratios, the boundaries are specified by the value of the optional
argument ebox.
       //type=2 : rescales automatically 3d boxes with extreme aspect
ratios, the boundaries are computed using the given data.
       //type=3 : 3d isometric with box bounds given by optional ebox,
similarily to type=1
       //type=4 : 3d isometric bounds derived from the data, to
similarily type=2
       //type=5 : 3d expanded isometric bounds with box bounds given by
optional ebox, similarily to type=1
       //type=6 : 3d expanded isometric bounds derived from the data,
similarily to type=2

//box : an integer (frame around the plot).
       //box=0 : nothing is drawn around the plot.
       //box=1 : unimplemented (like box=0).
       //box=2 : only the axes behind the surface are drawn.
       //box=3 : a box surrounding the surface is drawn and captions are
added.
       //box=4 : a box surrounding the surface is drawn, captions and
axes are added.

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

//zlev : real number.

Le 2017-04-02 12:56, Samuel Gougeon a écrit : 

> 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, paul.carrico at free.fr 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, paul.carrico at free.fr 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
users at lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20170402/e68e94a1/attachment.htm>


More information about the users mailing list