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.

<strong>Figure</strong> <strong>Properties</strong><br />

2-780<br />

You can make an axes current using the axes and set commands. For example,<br />

axes(axes_handle) and set(gcf,'CurrentAxes',axes_handle) both make<br />

the axes identified by the handle axes_handle the current axes. In addition,<br />

axes(axes_handle) restacks the axes above all other axes in the figure.<br />

If a figure contains no axes, get(gcf,'CurrentAxes') returns the empty<br />

matrix. Note that the gca function actually creates an axes if one does not exist.<br />

CurrentCharacter single character<br />

Last key pressed. MATLAB sets this property to the last key pressed in the<br />

figure window. CurrentCharacter is useful for obtaining user input.<br />

CurrentMenu (Obsolete)<br />

This property produces a warning message when queried. It has been<br />

superseded by the root CallbackObject property.<br />

CurrentObject object handle<br />

Handle of current object. MATLAB sets this property to the handle of the object<br />

that is under the current point (see the CurrentPoint property). This object is<br />

the front-most object in the view. You can use this property to determine which<br />

object a user has selected. The function gco provides a convenient way to<br />

retrieve the CurrentObject of the Current<strong>Figure</strong>.<br />

CurrentPoint two-element vector: [x-coordinate, y-coordinate]<br />

Location of last button click in this figure. MATLAB sets this property to the<br />

location of the pointer at the time of the most recent mouse button press.<br />

MATLAB updates this property whenever you press the mouse button while<br />

the pointer is in the figure window.<br />

In addition, MATLAB updates CurrentPoint before executing callback<br />

routines defined for the figure WindowButtonMotionFcn and<br />

WindowButtonUpFcn properties. This enables you to query CurrentPoint from<br />

these callback routines. It behaves like this:<br />

If there is no callback routine defined for the WindowButtonMotionFcn or the<br />

WindowButtonUpFcn, then MATLAB updates the CurrentPoint only when<br />

the mouse button is pressed down within the figure window.<br />

If there is a callback routine defined for the WindowButtonMotionFcn, then<br />

MATLAB updates the CurrentPoint just before executing the callback. Note<br />

that the WindowButtonMotionFcn executes only within the figure window

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

Saved successfully!

Ooh no, something went wrong!