Vectors while fun(…) expects only input matrices, 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 Two vectors of real numbers, of lengths nx and ny mark_background = 4 draw_marks ( " invisible foreground / cyan background " ) // - // With the surf command : // - Z = clf ( ) f = gcf ( ) f. mark_background = 0 draw_marks ( " black foreground / invisible background " ) subplot ( 2, 2, 4 ) a = gca ( ) a. mark_background = 4 draw_marks ( " black foreground / cyan background " ) subplot ( 2, 2, 3 ) a = gca ( ) a. data_bounds = theta = ( 1 / 15 ) * ( 2 * %pi ) * plot2d ( cos ( theta ), sin ( theta ) ) for i = 0 : 14 do theta = ( i / 15 ) * ( 2 * %pi ) plot2d ( cos ( theta ), sin ( theta ), style = - i ) end endfunction clf ( ) subplot ( 2, 2, 1 ) draw_marks ( " black foreground / white background " ) subplot ( 2, 2, 2 ) a = gca ( ) a. ', t, cos ( t ), ' cya+ ', t, abs ( sin ( t ) ), ' -mo ', ' markstyl ', ' diam ' ) // - // With the plot2d command : // - function draw_marks ( title ) a = gca ( ) a. ' marker ', ' sq ', ' markersize ', 6, ' markforegroun ', ' red ', ' markbackgro ', ) //multiple plots with different LineSpecs and finally some global GlobalProperty clf t = 0 : %pi / 20 : 2 * %pi plot ( t, sin ( t ), ' ro. ', ' marker ', ' > ', ' markeredg ', ' cyan ', ' markerFace ', ' yellow ', ' markersize ', 5 ) // combinations ' order in does not matter clf plot ( x, sin ( x ), ' marker ', ' p ', ' markerfac ', ' cyan ', ' markersiz ', 10 ) // combination of LineSpec and GlobalProperty shows the GlobalProperty predominance clf plot ( x, x. clf plot ( x, sin ( x ), ' colo ', ' red ', ' linest ', '. - // With the plot command : // - x = 1 : 10 // Init. Concerning dimensions, note that this new dataĭata. Matrix (re-)defining the given data for all the Is to say all those data matrices must be of the sameĭimensions. Concerningĭimensions, note that this new data must match all the With mark_size_unit enabled to "point" (seeĪ real vector or matrix (re-)defining the given data forĪll the plotted lines or surfaces. Property is linked to the object's mark_size property "MarkerSize" or "MarkSize":Ī scalar defining the marker size in point unit. This property is linked to the object's mark_background This property is linked to the object's mark_foreground Specify a marker without a line style, both line (withĭefault solid mode enabled) and marker are drawn.This Is linked to the object's line_style propertyĪ string defining the marker type. This property value should be a string defining a line style. The surface using color.data to determine a 'interp': an interpolated shading is done on.Per facet using the color of the first vertex of the facet. 'flat' (default mode): the Fac3d color.data values determine one color.'none': a mesh of the surface is drawn.Specifying the way the facet's color are rendered. This property is linked to the surface foreground "EdgeColor" or "Foreground" (surfaces only): This property is linked to the object's foreground property Red-Green-Blue intensities in the interval. "#RRGGBB" hexadecimal code (text), or by its index in theĬolor map (integer), or by the vector of its "Color" or "Foreground" (polylines only):Ī color specified by its name (text) among the predefined named This property is not yet available for surface entities. ![]() "CData" or "ColorData":Ī real matrix specifying the color at every points Or surf) and, as previously said, they are applied to the newĬorresponding to one property: the first one is the equivalentĭefault Matlab name, the second is the default name used by Scilabįor a line, see below). ![]() ![]() Those properties are available for both PolylineĪnd Fac3d objects (created respectively by plot Here is a complete list of the PropertyName youĪnd their available associated PropertyValue. Predominant on all LineSpec previously stated. Value is not required but those arguments, specified in any order, (line style) with diamond marker (marker), the sequence should be:Īs you can see, a full complete spelling of each property name and For example, to specify a red (color) longdash-dot Real, integer or string (scalar or matrix) depending on the type of PropertyName must be a case-insensitive string defining the Several (Name,Value) pairs can be specified in a single call to plot ( ) or Of all the new plotted lines (respectively surfaces). The GlobalProperty is an optional argument that can be used insideĪ plot or a surf ( ) command.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |