GradientLegend — pyqtgraph 0.9.8 documentation

### Navigation

- index
- modules |
- next |
- previous |
- pyqtgraph 0.9.8 documentation »
- API Reference »
- Pyqtgraph’s Graphics Items »

# GradientLegend

class `pyqtgraph.` `GradientLegend`(size, offset)

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

  `__init__`(size, offset)
  `setLabels`(l)

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

### Navigation

- index
- modules |
- next |
- previous |
- pyqtgraph 0.9.8 documentation »
- API Reference »
- Pyqtgraph’s Graphics Items »