Viewer

class glue.viewers.common.viewer.Viewer(session, state=None)[source]

Bases: glue.viewers.common.viewer.BaseViewer

A viewer class that uses a state class to represent the overall viewer state, and uses layer artists and state classes to handle each dataset and subset in the data viewer.

Attributes Summary

allow_duplicate_data

allow_duplicate_subset

large_data_size

layers

Return a tuple of layers in this viewer.

Methods Summary

add_data(data)

add_subset(subset)

cleanup()

draw_legend(*args)

export_as_script(filename)

get_data_layer_artist([layer, layer_state])

get_layer_artist(cls[, layer, layer_state])

get_subset_layer_artist([layer, layer_state])

options_widget()

register_to_hub(hub)

remove_data(data)

remove_layer(layer)

remove_subset(subset)

warn(message, *args, **kwargs)

Attributes Documentation

allow_duplicate_data = False
allow_duplicate_subset = False
large_data_size = None
layers[source]

Return a tuple of layers in this viewer.

A layer is a visual representation of a dataset or subset within the viewer

Methods Documentation

add_data(data)[source]
add_subset(subset)[source]
cleanup()[source]
draw_legend(*args)[source]
export_as_script(filename)[source]
get_data_layer_artist(layer=None, layer_state=None)[source]
get_layer_artist(cls, layer=None, layer_state=None)[source]
get_subset_layer_artist(layer=None, layer_state=None)[source]
options_widget()[source]
register_to_hub(hub)[source]
remove_data(data)[source]
remove_layer(layer)[source]
remove_subset(subset)[source]
warn(message, *args, **kwargs)[source]