class bar3d(data, fig=None, ax=None, returnfig=False, cmap='viridis', figkwargs=None, axkwargs=None, plotkwargs=None, **kwargs)[source]#

Plot 2D data as 3D bars

  • data (arr) – 2D data

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

  • cmap (str) – colormap name

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

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

  • colorbar (bool) – whether to plot a colorbar

  • figkwargs (dict) – passed to figure()

  • axkwargs (dict) – passed to axes()

  • plotkwargs (dict) – passed to plot()

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


data = pl.rand(5,4)