gsplot.style.legend_colormap#

Deprecated forwarding shim for gsplot.style.legend_colormap.

Functions

legend_colormap(ax[, cmap, label, ...])

Adapt legacy colormap legends to gsplot.cmap_legend().

legend_colormap(ax, cmap='viridis', label=None, num_stripes=8, vmin=0, vmax=1, reverse=False, **props)#

Adapt legacy colormap legends to gsplot.cmap_legend().

Parameters:
  • ax (Axes)

  • cmap (str)

  • label (str | None)

  • num_stripes (int)

  • vmin (float)

  • vmax (float)

  • reverse (bool)

  • props (Any)

Return type:

Any