28.12.2012 Views

Figure Properties - SERC

Figure Properties - SERC

Figure Properties - SERC

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Hgtransform <strong>Properties</strong><br />

2-1090<br />

Tag string<br />

User-specified object label. The Tag property provides a means to identify<br />

graphics objects with a user-specified label. This is particularly useful when<br />

you are constructing interactive graphics programs that would otherwise need<br />

to define object handles as global variables or pass them as arguments between<br />

callbacks.<br />

For example, you might create an hgtransform object and set the Tag property:<br />

t = hgtransform('Tag','subgroup1')<br />

When you want to access the hgtransform object to add another object, you can<br />

use findobj to find the hgtransform object’s handle. The following statement<br />

adds a line to subgroup1 (assuming x and y are defined).<br />

line('XData',x,'YData',y,'Parent',findobj('Tag','subgroup1'))<br />

Type string (read only)<br />

Type of graphics object. This property contains a string that identifies the class<br />

of graphics object. For hgtransform objects, Type is set to 'hgtransform'. The<br />

following statement finds all the hgtransform objects in the current axes.<br />

t = findobj(gca,'Type','hgtransform');<br />

UIContextMenu handle of a uicontextmenu object<br />

Associate a context menu with the hgtransform object. Assign this property the<br />

handle of a uicontextmenu object created in the hgtransform object’s figure.<br />

Use the uicontextmenu function to create the context menu. MATLAB displays<br />

the context menu whenever you right-click over the extent of the hgtransform<br />

object.<br />

UserData array<br />

User-specified data. This property can be any data you want to associate with<br />

the hgtransform object (including cell arrays and structures). The hgtransform<br />

object does not set values for this property, but you can access it using the set<br />

and get functions.<br />

Visible {on} | off<br />

Visibility of hgtransform object and its children. By default, hgtransform object<br />

visibility is on. This means all children of the hgtransform are visible unless

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

Saved successfully!

Ooh no, something went wrong!