def _process_unit_info(self, xdata=None, ydata=None, kwargs=None):
if self.xaxis is None or self.yaxis is None: return<EOL>if xdata is not None:<EOL><INDENT>if not self.xaxis.have_units():<EOL><INDENT>self.xaxis.update_units(xdata)<EOL><DEDENT><DEDENT>if ydata is not None:<EOL><INDENT>if not self.yaxis.have_units():<EOL><INDENT>self.yaxis.update_units(ydata)<EOL><DEDENT><DEDENT>if kwargs is not None:<EOL><INDENT>xunits = kwargs.pop( '<STR_LIT>', self.xaxis.units)<EOL>if xunits!=self.xaxis.units:<EOL><INDENT>self.xaxis.set_units(xunits)<EOL>if xdata is not None:<EOL><INDENT>self.xaxis.update_units(xdata)<EOL><DEDENT><DEDENT>yunits = kwargs.pop('<STR_LIT>', self.yaxis.units)<EOL>if yunits!=self.yaxis.units:<EOL><INDENT>self.yaxis.set_units(yunits)<EOL>if ydata is not None:<EOL><INDENT>self.yaxis.update_units(ydata)<EOL><DEDENT><DEDENT><DEDENT>
look for unit *kwargs* and update the axis instances as necessary