12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Line PropertiesSelectionHighlight {on} | offObjects highlight when selected. When the Selected property is on, <strong>MATLAB</strong>indicates the selected state by drawing handles at each vertex. WhenSelectionHighlight is off, <strong>MATLAB</strong> does not draw the handles.TagstringUser-specified object label. The Tag property provides a means to identifygraphics objects with a user-specified label. This is particularly useful whenconstructing interactive graphics programs that would otherwise need todefine object handles as global variables or pass them as arguments betweencallback routines. You can define Tag as any string.Typestring (read only)Class of graphics object. For line objects, Type is always the string 'line'.UIContextMenu handle of a uicontextmenu objectAssociate a context menu with the line. Assign this property the handle of auicontextmenu object created in same figure as the line. Use theuicontextmenu function to create the context menu. <strong>MATLAB</strong> displays thecontext menu whenever you right-click over the line.UserDatamatrixUser-specified data. Any data you want to associate with the line object.<strong>MATLAB</strong> does not use this data, but you can access it using the set and getcommands.Visible{on} | offLine visibility. By default, all lines are visible. When set to off, the line is notvisible, but still exists and you can get and set its properties.XDatavector of coordinatesX-coordinates. A vector of x-coordinates defining the line. YData and ZDatamust have the same number of rows. (See “Examples”).YDatavector or matrix of coordinatesY-coordinates. A vector of y-coordinates defining the line. XData and ZDatamust have the same number of rows.2-284

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!