CTAN Comprehensive TeX Archive Network

pgf-spectra – Draw continuous or discrete spectra using PGF/TikZ

The purpose of this package is to draw the spectrum of elements in a simple way. It relies on PGF/TikZ to draw the desired spectrum, continuous or discrete.

Data for the spectra of 98 elements and their ions are available (from the NASA database and from NIST). Lines data ranges from Extreme UV to Near IR (from 10 to 4000 nanometers).

It also allows the user to draw spectra using their own data.

It is possible to redshift the lines of a spectrum, by directly entering the redshift value or the velocity and the angle to compute the redshift value.

Spectral lines data can be presented in a table or exported to a file.

The package also provides color conversion (correlated color temperature), shadings for use with TikZ and/or pgfplots and color maps for use with pgfplots.

Version3.0.1a 2024-07-07
LicensesThe Project Public License 1.3
MaintainerHugo Gomes
Contained inTeX Live as pgf-spectra
MiKTeX as pgf-spectra
TopicsPGF TikZ

Download the contents of this package in one zip archive (3.4M).

Community Comments



Here you can see a respective diagram in newer browsers.


Guest Book Sitemap Contact Contact Author