def delaxes(*args):
 if (not len(args)):
  ax = gca()
 else:
  ax = args[0]
 ret = gcf().delaxes(ax)
 return ret

def delaxes ( * args ) : if ( not len ( args ) ) : ax = gca ( ) else : ax = args [ 0 ] ret = gcf ( ) . delaxes ( ax ) return ret
remove an axes from the current figure .