icat.histograms.Histograms#

class icat.histograms.Histograms(width=700, **params)#

Bases: Viewer

Component class to show histogram distributions both of the current sample, as well as the across the entire active dataset.

Parameters:

width (int) – Width to render the collection of histograms at.

Methods

__init__([width])

fire_on_range_changed(data)

on_range_changed(callback)

Register a callback function for when the range slider is updated.

refresh_data(data)

Update both local and global histograms for the currently active dataset in the datamanager.

servable([title, location, area, target])

Serves the object or adds it to the configured pn.state.template if in a panel serve context, writes to the DOM if in a pyodide context and returns the Panel object to allow it to display itself in a notebook context.

show([title, port, address, ...])

Starts a Bokeh server and displays the Viewable in a new tab.

Attributes

name

param

fire_on_range_changed(data)#
name = 'Histograms'#
on_range_changed(callback)#

Register a callback function for when the range slider is updated.

Callbacks for this event should take an array of two elements [min, max] as a parameter.

Parameters:

callback (Callable) –

refresh_data(data)#

Update both local and global histograms for the currently active dataset in the datamanager.

Parameters:

data (DataManager) – The data manager to pull the data from.