Set the data array for x. Parameters ---------- x : 1D array See Also -------- set_data set_ydata
(self, x)
| 1299 | self._markersize = sz |
| 1300 | |
| 1301 | def set_xdata(self, x): |
| 1302 | """ |
| 1303 | Set the data array for x. |
| 1304 | |
| 1305 | Parameters |
| 1306 | ---------- |
| 1307 | x : 1D array |
| 1308 | |
| 1309 | See Also |
| 1310 | -------- |
| 1311 | set_data |
| 1312 | set_ydata |
| 1313 | """ |
| 1314 | if not np.iterable(x): |
| 1315 | raise RuntimeError('x must be a sequence') |
| 1316 | self._xorig = copy.copy(x) |
| 1317 | self._invalidx = True |
| 1318 | self.stale = True |
| 1319 | |
| 1320 | def set_ydata(self, y): |
| 1321 | """ |