vispy.scene.widgets.colorbar.
ColorBarWidget
Bases: vispy.scene.widgets.widget.Widget
vispy.scene.widgets.widget.Widget
Widget containing a ColorBar
Either the name of the ColorMap to be used from the standard set of names (refer to vispy.color.get_colormap), or a custom ColorMap object. The ColorMap is used to apply a gradient on the colorbar.
The orientation of the colorbar, used for rendering. The orientation can be thought of as the position of the label relative to the color bar.
When the orientation is ‘left’ or ‘right’, the colorbar is vertically placed. When it is ‘top’ or ‘bottom’, the colorbar is horizontally placed. The colorbar automatically resizes when its container’s dimension changes.
‘top’: the colorbar is horizontal. Color is applied from left to right. Minimum corresponds to left and maximum to right. Label is to the top of the colorbar ‘bottom’: Same as top, except that label is to the bottom of the colorbar ‘left’: the colorbar is vertical. Color is applied from bottom to top. Minimum corresponds to bottom and maximum to top. Label is to the left of the colorbar ‘right’: Same as left, except that the label is placed to the right of the colorbar
‘top’: the colorbar is horizontal. Color is applied from left to right. Minimum corresponds to left and maximum to right. Label is to the top of the colorbar
‘bottom’: Same as top, except that label is to the bottom of the colorbar
‘left’: the colorbar is vertical. Color is applied from bottom to top. Minimum corresponds to bottom and maximum to top. Label is to the left of the colorbar
‘right’: Same as left, except that the label is placed to the right of the colorbar
The label that is to be drawn with the colorbar that provides information about the colorbar.
The color of labels. This can either be a str as the color’s name or an actual instace of a vipy.color.Color
the minimum and maximum values of the data that is given to the colorbar. This is used to draw the scale on the side of the colorbar.
The width of the border the colormap should have. This measurement is given in pixels
The color of the border of the colormap. This can either be a str as the color’s name or an actual instace of a vipy.color.Color
padding with respect to the major and minor axis
ratio of minor axis to major axis
border_color
The color of the border around the ColorBar in pixels
border_width
The width of the border around the ColorBar in pixels
clim
cmap
label
on_resize
Resize event handler
The event.
orientation
ticks