GradientLegend

class pyqtgraph.GradientLegend(size, offset)[source]

Draws a color gradient rectangle along with text labels denoting the value at specific points along the gradient.

__init__(size, offset)[source]
setColorMap(colormap)[source]

Set displayed gradient from a ColorMap object.

setLabels(l)[source]

Defines labels to appear next to the color scale. Accepts a dict of {text: value} pairs