def set_data(self, *args):
if len(args)==<NUM_LIT:1>:<EOL><INDENT>x, y = args[<NUM_LIT:0>]<EOL><DEDENT>else:<EOL><INDENT>x, y = args<EOL><DEDENT>not_masked = <NUM_LIT:0><EOL>if not ma.isMaskedArray(x):<EOL><INDENT>x = np.asarray(x)<EOL>not_masked += <NUM_LIT:1><EOL><DEDENT>if not ma.isMaskedArray(y):<EOL><INDENT>y = np.asarray(y)<EOL>not_masked += <NUM_LIT:1><EOL><DEDENT>if (not_masked < <NUM_LIT:2> or<EOL>(x is not self._xorig and<EOL>(x.shape != self._xorig.shape or np.any(x != self._xorig))) or<EOL>(y is not self._yorig and<EOL>(y.shape != self._yorig.shape or np.any(y != self._yorig)))):<EOL><INDENT>self._xorig = x<EOL>self._yorig = y<EOL>self._invalid = True<EOL><DEDENT>
Set the x and y data

ACCEPTS: 2D array