You can also set and query property values after creating the Line using set and get. Line properties control various aspects of the Line object and are described in the "Line Properties" section. The low-level form of the line function can have arguments that are only property name/property value paris. You must specify all other properties as name/value pairs. Remarks In its informal form, the line function interprets the first three arguments (two for 2-D) as the X, Y, and Z coordinate data, allowing you to omit the property names. Returns a column vector of handles corresponding to each Line object the function creates. This is the low-level form of the line function, which does not accept matrix coordinate data as the other informal forms described above. line('XData',x,'YData',y,'ZData',z,' PropertyName',PropertyValue.)Ĭreates a Line in the current Axes using the property values defined as arguments. line(X,Y,Z,' PropertyName',PropertyValue.)Ĭreates a Line using the values for the property name/property value pairs specified and default values for all other properties. line(X,Y,Z)Ĭreates Lines in three-dimensional coordinates. If X and Y are matrices of the same size, line draws one Line per column. Note that you cannot specify matrix coordinate data with the low-level form of the line function.Īdds the Line defined in vectors X and Y to the current Axes. MATLAB draws a Line object in the current Axes using the default Line color (see the colordef function for information on color defaults). When you call line with only property name/property value pairs, However, unlike plot, line does not call the newplot function. MATLAB cycles through the Axes ColorOrder and LineStyleOrder property values the way the plot function does. When you specify matrix coordinate data using the informal syntax (i.e., the first three arguments are interpreted as the coordinates), Automatic color and line style cycling.You can specify the color, width, line style, and marker type, as well as other characteristics. Line(' PropertyName',PropertyValue.) Formal-PN/PV pairs onlyĭescription line creates a Line object in the current Axes. Hidden object handles are still valid.Line(X,Y,Z,' PropertyName',PropertyValue.) Get, findobj, gca, gcf, gco, newplot, cla, clf, and close functions. If the object is not listed in the Children property of the parent, thenįunctions that obtain object handles by searching the object hierarchy or querying This optionīlocks access to the object at the command line, but permits This option is useful for preventing unintendedįrom within callbacks or functions invoked by callbacks, but notįrom within functions invoked from the command line. Otherwise, use the gcbo function to access the object.Īll times. If you specify this property as a function handle or cell array, you can access the object that is being created using the first argument of the callback function. Setting the CreateFcn property on an existing component has no effect. If you do not specify the CreateFcn property, then MATLAB executes a default creation function. MATLAB initializes all property values before executing the CreateFcn callback. This property specifies a callback function to execute when MATLAB creates the object. MATLAB evaluates this expression in the base workspace.įor more information about specifying a callback as a function handle, cell array, or character vector, see Create Callbacks for Graphics Objects. Subsequent elements in the cell array are the arguments to pass to the callback function.Ĭharacter vector containing a valid MATLAB expression (not recommended). UIContextMenu property is not recommendedĬell array in which the first element is a function handle.Control Automatic Color Selection with the SeriesIndex property.BaseValue property no longer changes with axes limits.Opt Out of Automatic Color Selection with SeriesIndex="none".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |