pyart.graph.GridMapDisplay.plot_colorbar#

GridMapDisplay.plot_colorbar(mappable=None, orientation='horizontal', label=None, cax=None, ax=None, fig=None, field=None, ticks=None, ticklabs=None)[source]#

Plot a colorbar.

Parameters:
  • mappable (Image, ContourSet, etc.) – Image, ContourSet, etc to which the colorbar applied. If None the last mappable object will be used.

  • field (str) – Field to label colorbar with.

  • label (str) – Colorbar label. None will use a default value from the last field plotted.

  • orient (str) – Colorbar orientation, either ‘vertical’ [default] or ‘horizontal’.

  • cax (Axis) – Axis onto which the colorbar will be drawn. None is also valid.

  • ax (Axes) – Axis onto which the colorbar will be drawn. None is also valid.

  • fig (Figure) – Figure to place colorbar on. None will use the current figure.

  • ticks (array) – Colorbar custom tick label locations.

  • ticklabs (array) – Colorbar custom tick labels.