Set the x, y and z data Parameters ---------- x : array-like The x-data to be plotted. y : array-like The y-data to be plotted. z : array-like The z-data to be plotted. Notes ----- Accepts
(self, *args)
| 317 | self.stale = True |
| 318 | |
| 319 | def set_data_3d(self, *args): |
| 320 | """ |
| 321 | Set the x, y and z data |
| 322 | |
| 323 | Parameters |
| 324 | ---------- |
| 325 | x : array-like |
| 326 | The x-data to be plotted. |
| 327 | y : array-like |
| 328 | The y-data to be plotted. |
| 329 | z : array-like |
| 330 | The z-data to be plotted. |
| 331 | |
| 332 | Notes |
| 333 | ----- |
| 334 | Accepts x, y, z arguments or a single array-like (x, y, z) |
| 335 | """ |
| 336 | if len(args) == 1: |
| 337 | args = args[0] |
| 338 | for name, xyz in zip('xyz', args): |
| 339 | if not np.iterable(xyz): |
| 340 | raise RuntimeError(f'{name} must be a sequence') |
| 341 | self._verts3d = args |
| 342 | self.stale = True |
| 343 | |
| 344 | def get_data_3d(self): |
| 345 | """ |
no outgoing calls