'Clear the current axes.'

def cla(self):

    if hasattr(self, u'patch'):
        patch_visible = self.patch.get_visible()
    else:
        patch_visible = True
    xaxis_visible = self.xaxis.get_visible()
    yaxis_visible = self.yaxis.get_visible()
    self.xaxis.cla()
    self.yaxis.cla()
    for (name, spine) in six.iteritems(self.spines):
        spine.cla()
    self.ignore_existing_data_limits = True
    self.callbacks = cbook.CallbackRegistry()
    if (self._sharex is not None):
        self.xaxis.major = self._sharex.xaxis.major
        self.xaxis.minor = self._sharex.xaxis.minor
        (x0, x1) = self._sharex.get_xlim()
        self.set_xlim(x0, x1, emit=False, auto=None)
        self.xaxis._scale = mscale.scale_factory(self._sharex.xaxis.get_scale(), self.xaxis)
    else:
        self.xaxis._set_scale(u'linear')
        try:
            self.set_xlim(0, 1)
        except TypeError:
            pass
    if (self._sharey is not None):
        self.yaxis.major = self._sharey.yaxis.major
        self.yaxis.minor = self._sharey.yaxis.minor
        (y0, y1) = self._sharey.get_ylim()
        self.set_ylim(y0, y1, emit=False, auto=None)
        self.yaxis._scale = mscale.scale_factory(self._sharey.yaxis.get_scale(), self.yaxis)
    else:
        self.yaxis._set_scale(u'linear')
        try:
            self.set_ylim(0, 1)
        except TypeError:
            pass
    if rcParams[u'xtick.minor.visible']:
        self.xaxis.set_minor_locator(mticker.AutoMinorLocator())
    if rcParams[u'ytick.minor.visible']:
        self.yaxis.set_minor_locator(mticker.AutoMinorLocator())
    self._autoscaleXon = True
    self._autoscaleYon = True
    self._xmargin = rcParams[u'axes.xmargin']
    self._ymargin = rcParams[u'axes.ymargin']
    self._tight = None
    self._use_sticky_edges = True
    self._update_transScale()
    self._get_lines = _process_plot_var_args(self)
    self._get_patches_for_fill = _process_plot_var_args(self, u'fill')
    self._gridOn = rcParams[u'axes.grid']
    self.lines = []
    self.patches = []
    self.texts = []
    self.tables = []
    self.artists = []
    self.images = []
    self.mouseover_set = set()
    self._current_image = None
    self.legend_ = None
    self.collections = []
    self.containers = []
    self.grid(False)
    self.grid(self._gridOn, which=rcParams[u'axes.grid.which'], axis=rcParams[u'axes.grid.axis'])
    props = font_manager.FontProperties(size=rcParams[u'axes.titlesize'], weight=rcParams[u'axes.titleweight'])
    title_offset_points = rcParams[u'axes.titlepad']
    self.titleOffsetTrans = mtransforms.ScaledTranslation(0.0, (title_offset_points / 72.0), self.figure.dpi_scale_trans)
    self.title = mtext.Text(x=0.5, y=1.0, text=u'', fontproperties=props, verticalalignment=u'baseline', horizontalalignment=u'center')
    self._left_title = mtext.Text(x=0.0, y=1.0, text=u'', fontproperties=props.copy(), verticalalignment=u'baseline', horizontalalignment=u'left')
    self._right_title = mtext.Text(x=1.0, y=1.0, text=u'', fontproperties=props.copy(), verticalalignment=u'baseline', horizontalalignment=u'right')
    for _title in (self.title, self._left_title, self._right_title):
        _title.set_transform((self.transAxes + self.titleOffsetTrans))
        _title.set_clip_box(None)
        self._set_artist_props(_title)
    self.patch = self._gen_axes_patch()
    self.patch.set_figure(self.figure)
    self.patch.set_facecolor(self._facecolor)
    self.patch.set_edgecolor(u'None')
    self.patch.set_linewidth(0)
    self.patch.set_transform(self.transAxes)
    self.set_axis_on()
    self.xaxis.set_clip_path(self.patch)
    self.yaxis.set_clip_path(self.patch)
    self._shared_x_axes.clean()
    self._shared_y_axes.clean()
    if self._sharex:
        self.xaxis.set_visible(xaxis_visible)
        self.patch.set_visible(patch_visible)
    if self._sharey:
        self.yaxis.set_visible(yaxis_visible)
        self.patch.set_visible(patch_visible)
    self.stale = True
