delete a graphic entity and its children.
delete(h)
delete(h,"callback")
delete()
delete("all")
: :”all” string keyword (optional). :
This routine can be used to delete a graphics entity identified by the handle given as argument. In this case, All children of this graphics entity will be deleted. Without any argument delete removes the current entity. With “all” argument it deletes all the entities of the current figure.
The “callback” argument is not yet handled.
`subplot`_(211);
t=1:10;`plot2d`_(t,t.^2),
`subplot`_(223);
`plot3d`_();
`subplot`_(224);
`plot2d`_();
`xfrect`_(1,0,3,1);
a=`get`_("current_axes")
delete(); //delete the graphics object newly created
delete(a.children); //delete all children of the current axes
delete(a); //delete the axes
delete("all"); //delete all the graphics objects of the figure