TimeScatterView#

class lcviz.viewers.TimeScatterView(*args, **kwargs)[source]#

Bases: JdavizViewerMixin, WithSliceIndicator, BqplotScatterView

Attributes Summary

Methods Summary

add_data(data[, color, alpha])

Overrides the base class to handle subset styling defaults.

apply_roi(roi[, use_current])

Apply an ROI to the viewer.

data([cls])

set_plot_axes()

Attributes Documentation

slice_component_label#
slice_display_unit_name#
tools_nested = [['jdaviz:homezoom', 'jdaviz:prevzoom'], ['jdaviz:boxzoom', 'jdaviz:xrangezoom', 'jdaviz:yrangezoom'], ['jdaviz:panzoom', 'jdaviz:panzoom_x', 'jdaviz:panzoom_y'], ['bqplot:xrange', 'bqplot:yrange', 'bqplot:rectangle'], ['jdaviz:selectslice'], ['jdaviz:viewer_clone', 'jdaviz:sidebar_plot', 'jdaviz:sidebar_export']]#

Methods Documentation

add_data(data, color=None, alpha=None, **layer_state)[source]#

Overrides the base class to handle subset styling defaults.

Parameters:
  • data (glue.core.data.Data) – Data object with the light curve.

  • color (obj) – Color value for plotting.

  • alpha (float) – Alpha value for plotting.

Returns:

resultTrue if successful, False otherwise.

Return type:

bool

apply_roi(roi, use_current=False)[source]#

Apply an ROI to the viewer.

Detects whether the user is resizing or moving an existing subset. When detected and mode is NewMode, temporarily switches to ReplaceMode so the subset is modified in-place rather than duplicated.

data(cls=None)[source]#
set_plot_axes()[source]#