BokehPlot#

class ctapipe.visualization.bokeh.BokehPlot(use_notebook=None, autoscale=True, cmap='inferno', norm='lin', **figure_kwargs)[source]#

Bases: object

Base class for bokeh plots

Attributes Summary

cmap

Get the current colormap

norm

The norm instance of the Display

Methods Summary

add_colorbar()

clear_overlays()

Remove any added overlays from the figure

rescale()

Scale pixel colors to min/max range

set_limits_minmax(zmin, zmax)

Set the limits of the color range to zmin / zmax

set_limits_percent([percent])

Set the limits to min / fraction of max value

show()

Display the figure

update()

Update the figure

Attributes Documentation

cmap#

Get the current colormap

norm#

The norm instance of the Display

Possible values:

  • “lin”: linear scale

  • “log”: log scale (cannot have negative values)

  • “symlog”: symmetric log scale (negative values are ok)

Methods Documentation

add_colorbar()[source]#
clear_overlays()[source]#

Remove any added overlays from the figure

rescale()[source]#

Scale pixel colors to min/max range

set_limits_minmax(zmin, zmax)[source]#

Set the limits of the color range to zmin / zmax

set_limits_percent(percent=95)[source]#

Set the limits to min / fraction of max value

show()[source]#

Display the figure

update()[source]#

Update the figure