ImguiColorbar#

ImguiColorbar#

Constructor#

ImguiColorbar(graphics[, histogram, ...])

An imgui colorbar with draggable vmin/vmax handles, an optional histogram, a gamma slider, and a right-click colormap picker.

Properties#

ImguiColorbar.bar_width

get or set the width of the colored bar in pixels

ImguiColorbar.cmap

get or set the colormap

ImguiColorbar.data_range

the value range spanned by the bar

ImguiColorbar.figure

the figure this container is drawn in

ImguiColorbar.gamma

get or set the gamma, applied to the images and the bar

ImguiColorbar.graphics

get or set the graphics managed by this colorbar

ImguiColorbar.height

get or set the height of the colorbar in pixels, None fills the available space

ImguiColorbar.histogram

the histogram as a precomputed (counts, edges) tuple, or None for no histogram

ImguiColorbar.title

get or set the title drawn above the bar, None for no title

ImguiColorbar.vmax

get or set the upper contrast limit

ImguiColorbar.vmin

get or set the lower contrast limit

Methods#

ImguiColorbar.draw()

pushes and pops the ID to keep identical containers unique within one frame

ImguiColorbar.update()

Implement your GUI here and it will be drawn within the host window