Spectrum1DViewer#

class jdaviz.configs.specviz.plugins.viewers.Spectrum1DViewer(*args, **kwargs)[source]#

Bases: JdavizProfileView

Attributes Summary

Methods Summary

available_linelists()

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.

set_plot_axes()

Attributes Documentation

redshift#
spectral_lines = None#
tools_nested = [['jdaviz:homezoom_matchx', 'jdaviz:homezoom', 'jdaviz:prevzoom'], ['jdaviz:boxzoom_matchx', 'jdaviz:xrangezoom_matchx', 'jdaviz:boxzoom', 'jdaviz:yrangezoom', 'jdaviz:xrangezoom', 'jdaviz:yrangezoom'], ['jdaviz:panzoom_matchx', 'jdaviz:panzoomx_matchx', 'jdaviz:panzoom_y', 'jdaviz:panzoom', 'jdaviz:panzoom_x', 'jdaviz:panzoom_y'], ['bqplot:xrange'], ['jdaviz:selectline'], ['jdaviz:viewer_clone', 'jdaviz:sidebar_plot', 'jdaviz:sidebar_export']]#

Methods Documentation

available_linelists()[source]#
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’).

load_line_list(line_table, replace=False, return_table=False, show=True)[source]#
plot_spectral_line(line, global_redshift=None, plot_units=None, **kwargs)[source]#
plot_spectral_lines(colors=['blue'], global_redshift=None, **kwargs)[source]#

Plots a user-provided astropy table of spectral lines in the viewer.

set_plot_axes()[source]#