ColourBar

class tfv.viewer.ColourBar(*args: Any, **kwargs: Any)

A wrapper around the matplotlib colorbar, simplifying for neater plots.

Parameters:
  • patch (matplotlib.collections.PatchCollection object) – matplotlib object from which to take colour limits and normalization

  • location ({'left', 'right', 'bottom', 'top'}) – Size of underlying figure as (width, height) in specified units

  • offset (float) – Offset from axes as fraction of total figure width or height

  • thickness (float) – Thickness of bar as fraction of total figure width or height

  • label (string) – String to label the colour bar.