|
Qudi
|
Create a ColorBar according to a previously defined color map. More...


Public Member Functions | |
| def | __init__ (self, cmap, width, cb_min, cb_max) |
| def | refresh_colorbar (self, cb_min, cb_max, width=None, height=None, xMin=None, yMin=None) |
| Refresh the appearance of the colorbar for a changed count range. More... | |
| def | paint (self, p, args) |
| Overwrite the paint method from GraphicsObject. More... | |
| def | boundingRect (self) |
| Overwrite the paint method from GraphicsObject. More... | |
Public Attributes | |
| colors | |
| stops | |
| width | |
| pic | |
Create a ColorBar according to a previously defined color map.
| object | pyqtgraph.ColorMap cmap: a defined colormap |
| float | width: width of the colorbar in x direction, starting from the origin. |
| numpy.array | ticks: optional, definition of the relative ticks marks |
| def guiutils.ColorBar.boundingRect | ( | self | ) |
Overwrite the paint method from GraphicsObject.
Get the position, width and hight of the displayed object.
| def guiutils.ColorBar.paint | ( | self, | |
| p, | |||
| args | |||
| ) |
Overwrite the paint method from GraphicsObject.
| object | p: a pyqtgraph.QtGui.QPainter object, which is used to set the color of the pen. |
Since this colorbar object is in the end a GraphicsObject, it will drop an implementation error, since you have to write your own paint function for the created GraphicsObject.
| def guiutils.ColorBar.refresh_colorbar | ( | self, | |
| cb_min, | |||
| cb_max, | |||
width = None, |
|||
height = None, |
|||
xMin = None, |
|||
yMin = None |
|||
| ) |
Refresh the appearance of the colorbar for a changed count range.
| float | cb_min: The minimal count value should be passed here. |
| float | cb_max: The maximal count value should be passed here. |
| float | width: optional, with that you can change the width of the colorbar in the display. |
1.8.13