MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / set_data_3d

Method set_data_3d

lib/mpl_toolkits/mplot3d/art3d.py:319–342  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 4

__init__Method · 0.95
test_invalid_line_dataFunction · 0.95
update_linesFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_invalid_line_dataFunction · 0.76