pwtools.mpl.plotlines3d¶
- pwtools.mpl.plotlines3d(ax3d, x, y, z, *args, **kwargs)[source]¶
Plot x-z curves stacked along y.
- Parameters:
ax3d (Axes3D instance)
x (nd array) – 1d (x-axis) or 2d (x-axes are the columns)
y (1d array)
z (nd array with "y"-values) –
- 1dthe same curve will be plotted len(y) times against x (1d) or
x[:,i] (2d)
- 2deach column z[:,i] will be plotted against x (1d) or each x[:,i]
(2d)
*args (additional args and keywords args passed to ax3d.plot())
**kwargs (additional args and keywords args passed to ax3d.plot())
- Return type:
ax3d
Examples
>>> x = linspace(0,5,100) >>> y = arange(1.0,5) # len(y) = 4 >>> z = np.repeat(sin(x)[:,None], 4, axis=1)/y # make 2d >>> fig,ax = fig_ax3d() >>> plotlines3d(ax, x, y, z) >>> show()