def _set_data(self):
if getattr(self, '<STR_LIT:data>', False) and not getattr(self, '<STR_LIT>', False) and not getattr(self, '<STR_LIT>', False):<EOL><INDENT>_x = XVariable()<EOL>_y = YVariable()<EOL>_x.contribute_to_class(self, '<STR_LIT:X>', self.data)<EOL>_y.contribute_to_class(self, '<STR_LIT:Y>', self.data)<EOL>self['<STR_LIT:data>'] = zip(self._x.points, self._y.points)<EOL><DEDENT>else: <EOL><INDENT>for axis in ('<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>axis_obj = getattr(self, axis, False)<EOL>if not axis_obj:<EOL><INDENT>raise exception.MissingAxisException("<STR_LIT>" % axis)<EOL><DEDENT>if not getattr(axis_obj, '<STR_LIT>', False):<EOL><INDENT>raise exception.MissingDataException()<EOL><DEDENT><DEDENT>self['<STR_LIT:data>'] = zip(self._x.points, self._y.points)<EOL><DEDENT>
This method will be called to set Series data