sitedvd.blogg.se

Scilab surf
Scilab surf














SCILAB SURF PATCH

The color of the vertices defining the patch is set to the given color of we provided only one color per patch) then 'interp' is selected, we perform a bilinear color The FaceColor property sets the shading mode : it canīe 'interp' or 'flat' (default mode). (one color defined per vertex) orĬolor representation also varies when specifying some GlobalPropery: Matrix, the C colors matrix dimension can be The vertices or at the center of each patch. Matrix is given, it can be applied to the patch in two different ways : at Matrices matching the Z matrix dimension (and the grid isĬonsidering the 3 functions x(i,j), y(i,j)Īnd z(i,j), the portion of surface defining between twoīy default, when no colors matrix is added to a surf call, the colors Y are vectors, they are internally treated to produce good (even if X or Y is vector, see below) and can beĬonsidered as 3 functions x(i,j), y(i,j) and

scilab surf

This imaginary rectangular grid is used to build the real surface The default axes used is the active gca() one. Handle of the graphical axes where the surface must be drawn.

scilab surf

For a complete view of the available properties (see Global objects' properties applied to all the curves created by this (X(j),Y(i)) point of the grid (see description Surf(…) automatically generates matrices fromĪn optional real matrix defining a colors value for each Vectors while fun(…) expects only input matrices,

scilab surf

Through a list, as in surf(x,y, list(delip, -0.4)) or If the 2D function fun to plot needs some parametersĪs input arguments, the function and its parameters can be specified Handle of a function, as in surf(x,y, myFun) where theĮxpected syntax of myFun is Z=myFun(X,Y). They define the data grid (horizontal coordinates of the grid nodes).Īll grid cells are quadrangular but not necessarily rectangular.Ī real matrix explicitly defining the heights of nodes, of sizes color_flag = 3 // interpolated shading mode.Two vectors of real numbers, of lengths nx and ny cdata_mapping = ' direct ' // default is ' scaled ' relative to the colormap e. Z initialisation Z = //simple surface surf ( Z ) // Note that X and Y are determined by Z dimensions //same surface with red face color and blue edges scf ( 2 ) // new figure number 2 surf ( Z, ' facecol ', ' red ', ' edgecol ', ' blu " ) // X and Y initialisation // NB: here, X has the same lines and Y the same columns X = Y = // example 1 scf ( 3 ) surf ( X, Y, Z ) //example 2 // As you can see, the grid is not necessary rectangular scf ( 4 ) X ( 1, 4 ) = - 1.5 Y ( 1, 4 ) = - 3.5 Z ( 1, 4 ) = - 2 surf ( X, Y, Z ) // example 3 // X and Y are vectors = > same behavior as sample 1 // With vectors, the grid is inevitably rectangular scf ( 5 ) // new figure number 5 X = Y = X surf ( X, Y, Z ) //LineSpec and GlobalProperty examples: xdel ( winsid ( ) ) // destroy all existing figures surf ( Z, Z + 5 ) // color array specified e = gce ( ) e. Note that all these properties can be (re-)set through the surfaceĮntity properties (see surface_properties). That you can set multiple properties : the face & edge color,Ĭolor data, color data mapping, marker color (foreground andīackground), the visibility, clipping and thickness of the edges of PropertyValue (which can be a string or an integer or.Īs well depending on the type of the PropertyName). It must always be a couple statement constituted of a stringĭefining the PropertyName, and its associated value This option may be used to specify how all the surfaces areĭrawn. Here is a brief description on how it works: GlobalProperty The GlobalProperty arguments sould be used to customize Vertices), the last row and column of C are ignored. When 'flat' (default mode) is enabled we use a colorįaceted representation (one color per patch).

scilab surf

(one color defined per vertex) orĬolor representation also varies when specifying some Matrix, the C color matrix dimension can be Matrices matching the Z matrix dimension (and the grid isĬonsidering the 3 functions x(i,j), y(i,j)Īnd z(i,j), the portion of surface defining between twoīy default, when no color matrix is added to a surf call, the color Let consider two independent variables i and (if triplet is given, Z must be aĪs stated before, the surface is created over a rectangular grid Rectangular grid defined by X and Y coordinates Surf draws a colored parametric surface using a














Scilab surf