SpecvizProfileView#

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

Bases: JdavizViewerMixin, BqplotProfileView

Attributes Summary

redshift

spectral_lines

tools_nested

Methods Summary

add_data(data[, color, alpha])

Overrides the base class to add markers for plotting uncertainties and data quality flags.

available_linelists()

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').

get_scales()

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

show_mask()

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:
spectrumglue.core.data.Data

Data object with the spectrum.

colorobj

Color value for plotting.

alphafloat

Alpha value for plotting.

Returns:
resultbool

True if successful, False otherwise.

available_linelists()[source]#
clean()[source]#
data(cls=None)[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’).

get_scales()[source]#
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]#
show_mask()[source]#