ax3d#

ax3d(nrows=None, ncols=None, index=None, fig=None, ax=None, returnfig=False, elev=None, azim=None, figkwargs=None, **kwargs)[source]#

Create a 3D axis to plot in.

Usually not invoked directly; kwargs are passed to fig.add_subplot()

Parameters:
  • nrows (int) – number of rows of axes in plot

  • ncols (int) – number of columns of axes in plot

  • index (int) – index of current plot

  • fig (Figure) – if provided, use existing figure

  • ax (Axes) – if provided, validate and use these axes

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

  • elev (float) – the elevation of the 3D viewpoint

  • azim (float) – the azimuth of the 3D viewpoint

  • figkwargs (dict) – passed to plt.figure()

  • kwargs (dict) – passed to plt.axes()

New in version 3.0.0: nrows, ncols, and index arguments first
New in version 3.1.0: improved validation; ‘silent’ and ‘axkwargs’ argument removed