class plot3d(x, y, z, c=None, fig=None, ax=None, returnfig=False, figkwargs=None, axkwargs=None, plotkwargs=None, **kwargs)[source]#

Plot 3D data as a line

  • x (arr) – x coordinate data

  • y (arr) – y coordinate data

  • z (arr) – z coordinate data

  • c (str/tuple) – color, can be any of the types accepted by matplotlib’s plot()

  • fig (fig) – an existing figure to draw the plot in (or set to True to create a new figure)

  • ax (axes) – an existing axes to draw the plot in

  • returnfig (bool) – whether to return the figure, or just the axes

  • figkwargs (dict) – passed to figure()

  • axkwargs (dict) – passed to axes()

  • plotkwargs (dict) – passed to plot()

  • kwargs (dict) – also passed to plot()


x,y,z = pl.rand(3,10)
sc.plot3d(x, y, z)