matplotlib.colors.SegmentedBivarColormap#

classmatplotlib.colors.SegmentedBivarColormap(patch,N=256,shape='square',origin=(0,0),name='segmentedbivariatecolormap')[source]#

Bases:BivarColormap

BivarColormap object generated by supersampling a regular grid.

Parameters:
patchnp.array

Patch is required to have a shape (k, l, 3), and will get supersampledto a lut of shape (N, N, 4).

Nint

The number of RGB quantization levels along each axis.

shape{'square', 'circle', 'ignore', 'circleignore'}
  • If 'square' each variate is clipped to [0,1] independently

  • If 'circle' the variates are clipped radially to the centerof the colormap, and a circular mask is applied when the colormapis displayed

  • If 'ignore' the variates are not clipped, but instead assigned the'outside' color

  • If 'circleignore' a circular mask is applied, but the data is not clipped

origin(float, float)

The relative origin of the colormap. Typically (0, 0), for colormapsthat are linear on both axis, and (.5, .5) for circular colormaps.Used when getting 1D colormaps from 2D colormaps.

namestr, optional

The name of the colormap.

Parameters:
Nint, default: 256

The number of RGB quantization levels along the first axis.

Mint, default: 256

The number of RGB quantization levels along the second axis.

shape{'square', 'circle', 'ignore', 'circleignore'}
  • 'square' each variate is clipped to [0,1] independently

  • 'circle' the variates are clipped radially to the centerof the colormap, and a circular mask is applied when the colormapis displayed

  • 'ignore' the variates are not clipped, but instead assigned the'outside' color

  • 'circleignore' a circular mask is applied, but the data is notclipped and instead assigned the 'outside' color

origin(float, float), default: (0,0)

The relative origin of the colormap. Typically (0, 0), for colormapsthat are linear on both axis, and (.5, .5) for circular colormaps.Used when getting 1D colormaps from 2D colormaps.

namestr, optional

The name of the colormap.