'Set the :class:`~matplotlib.axes.Axes` instance in which the
artist resides, if any.
This has been deprecated in mpl 1.5, please use the
axes property.  Will be removed in 1.7 or 2.0.
ACCEPTS: an :class:`~matplotlib.axes.Axes` instance'

def set_axes(self, axes):

    warnings.warn(_get_axes_msg.format(u'set_axes'), mplDeprecation, stacklevel=1)
    self.axes = axes
