SpecvizProfileView#
- class jdaviz.configs.specviz.plugins.viewers.SpecvizProfileView(*args, **kwargs)[source]#
Bases:
JdavizViewerMixin
,BqplotProfileView
Attributes Summary
Methods Summary
add_data
(data[, color, alpha])Overrides the base class to add markers for plotting uncertainties and data quality flags.
clean
()data
([cls])erase_spectral_lines
([name, name_rest, ...])Erase either all spectral lines, all spectral lines sharing the same name (e.g. 'He II') or a specific name-rest value combination (e.g. 'HE II 1640.5', stored in SpectralLine as 'table_index').
load_line_list
(line_table[, replace, ...])plot_spectral_line
(line[, global_redshift, ...])plot_spectral_lines
([colors, global_redshift])Plots a user-provided astropy table of spectral lines in the viewer.
Attributes Documentation
- redshift#
- spectral_lines = None#
- tools_nested = [['jdaviz:homezoom', 'jdaviz:prevzoom'], ['jdaviz:boxzoom', 'jdaviz:xrangezoom', 'jdaviz:yrangezoom'], ['jdaviz:panzoom', 'jdaviz:panzoom_x', 'jdaviz:panzoom_y'], ['bqplot:xrange'], ['jdaviz:selectline'], ['jdaviz:sidebar_plot', 'jdaviz:sidebar_export']]#
Methods Documentation
- add_data(data, color=None, alpha=None, **layer_state)[source]#
Overrides the base class to add markers for plotting uncertainties and data quality flags.
- Parameters:
- spectrum
glue.core.data.Data
Data object with the spectrum.
- colorobj
Color value for plotting.
- alphafloat
Alpha value for plotting.
- spectrum
- Returns:
- erase_spectral_lines(name=None, name_rest=None, show_none=True)[source]#
Erase either all spectral lines, all spectral lines sharing the same name (e.g. ‘He II’) or a specific name-rest value combination (e.g. ‘HE II 1640.5’, stored in SpectralLine as ‘table_index’).