gca

Purpose

Get current axes handle.

Synopsis

h = gca

Description

h = gca returns the handle to the current axes. The current axes is the axes to which graphics commands such as plot, title, and surf plot their results.

Each figure has its own current axes. Changing the current figure causes gca to return the correct axes handle for the newly current figure.

Use the command axes or subplot to change the current axes to a different axes, or to create new ones. Use cla to reset the current axes.

See Also

axes, cla, delete, hold, gcf, subplot

(c) Copyright 1994 by The MathWorks, Inc.