'Look for unit *kwargs* and update the axis instances as necessary'

def _process_unit_info(self, xdata=None, ydata=None, kwargs=None):

    if ((self.xaxis is None) or (self.yaxis is None)):
        return
    if (xdata is not None):
        if (not self.xaxis.have_units()):
            self.xaxis.update_units(xdata)
    if (ydata is not None):
        if (not self.yaxis.have_units()):
            self.yaxis.update_units(ydata)
    if (kwargs is not None):
        xunits = kwargs.pop(u'xunits', self.xaxis.units)
        if (self.name == u'polar'):
            xunits = kwargs.pop(u'thetaunits', xunits)
        if (xunits != self.xaxis.units):
            self.xaxis.set_units(xunits)
            if (xdata is not None):
                self.xaxis.update_units(xdata)
        yunits = kwargs.pop(u'yunits', self.yaxis.units)
        if (self.name == u'polar'):
            yunits = kwargs.pop(u'runits', yunits)
        if (yunits != self.yaxis.units):
            self.yaxis.set_units(yunits)
            if (ydata is not None):
                self.yaxis.update_units(ydata)
