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])

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

fire_on_range_changed(data)

force_new_dynamic_value(**kwargs)

Inspect .param.force_new_dynamic_value method for the full docstring

get_param_values(**kwargs)

Inspect .param.get_param_values method for the full docstring

get_value_generator(**kwargs)

Inspect .param.get_value_generator method for the full docstring

inspect_value(**kwargs)

Inspect .param.inspect_value method for the full docstring

message(**kwargs)

Inspect .param.message method for the full docstring

on_range_changed(callback)

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

params(**kwargs)

Inspect .param.params method for the full docstring

pprint(*args, **kwargs)

print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

refresh_data(data)

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

script_repr([imports, prefix])

Deprecated variant of __repr__ designed for generating a runnable script.

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.

set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn(**kwargs)

Inspect .param.set_dynamic_time_fn method for the full docstring

set_param(**kwargs)

Inspect .param.set_param method for the full docstring

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

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

state_pop()

Restore the most recently saved state.

state_push()

Save this instance's state.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

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.