Documentation Center

  • Trial Software
  • Product Updates
我们为许可用户提供了部分翻译好的中文文档。您只需登录便可查阅这些文档

cla

Clear current axes

Syntax

cla
cla reset
cla(ax)
cla(ax,'reset')

Description

cla deletes from the current axes all graphics objects whose handles are not hidden (i.e., their HandleVisibility property is set to on).

cla reset deletes from the current axes all graphics objects regardless of the setting of their HandleVisibility property and resets all axes properties, except Position and Units, to their default values.

cla(ax) or cla(ax,'reset') clears the single axes with handle ax.

More About

expand all

Tips

The cla command behaves the same way when issued on the command line as it does in callback routines — it does not recognize the HandleVisibility setting of callback. This means that when issued from within a callback routine, cla deletes only those objects whose HandleVisibility property is set to on.

See Also

| | |

Was this topic helpful?