CTAN Comprehensive TeX Archive Network

Directory graphics/pgf/contrib/pgf-spectra

This is pgf-spectra, version 2.1.2 (03/07/2021).

This package provides the \pgfspectra[<options>] command which draws continuous and emission or absorption spectra for 98 elements and their ions. It was developed mainly for the writing of my own documentation and exams sheets supporting directly PDF output format.
The drawing is made with the TikZ package and is based in the pst-spectra extension for PSTricks.

*** v2.1.2 ***
Minor fix: wrong char encoding (pgf-spectra.sty, line:1555)
*** v2.1.1 ***
Major changes:
Small documentation enhancements.
Code rewrote for the command \pgfspectraplotshade.
New keys for \pgfspectraplotshade:
- shade begin
- logarithmic
*** v2.1.0 ***
The continuous visible region is now drawn via TikZ shading improving a little bit the speed of the whole process.
Minor fix: the width of the emission/absortion lines are now correctly drawn
New commands:
- \tempercolor (correlated color temperature, Kelvin to rgb color)
- \pgfspectrashade (for usage with TikZ package)
- \pgfspectraplotshade (for usage with PGFPLOTS package)
- \pgfspectraplotmap (for usage with PGFPLOTS package)
- \pgfspectrarainbow (draws a rainbow)
New keys for \pgfspectra:
- use visible shading
- backVIS
- axis unit
- axis unit precision
Keys for \pgfspectraplotshade:
- shade end
- shade opacity
- shade opacity color
Keys for \pgfspectrarainbow:
- rainbow fade
- rainbow start
- rainbow knock out
- rainbow background
- rainbow transparency

** Requirements: TikZ package.
** Installation: unpack everything in a directory in the TeX search path and refresh the TeX database.
** Usage: just place \usepackage{pgf-spectra} in the preamble.
** Contact the author: Hugo Gomes (hugo.parelho@gmail.com)
** Licence: released under the LaTeX Project Public License v1.3 or later, see http://www.latex-project.org/lppl.txt

Previous versions

version 2.0.0 (15/03/2021).
Major changes:
- the 'window' of spectra now ranges from 10nm to 4000nm
 and the lines was updated. (In version 1.0 was 380nm to 740nm)
- support for redshifted (blueshifted) lines
- possibility of setting a style for the spectra's
New commands:
- \pgfspectraStyle
- \pgfspectraStyleReset
New keys:
- axis ticks (axis minor ticks)
- backIRUV (only for emission spectrum)
- IRcolor (for emission lines and for the background in absorption spectrum)
- UVcolor (for emission lines and for the background in absorption spectrum)
- red shift
- show redshift value

First release: version 1.0 (15/04/2016)
- \pgfspectra
- \wlcolor
- element
- width
- height
- back
- charge
- Imin
- lines
- line width
- begin
- end
- axis step
- axis color
- axis font
- axis font color
- label position
- label before text
- label after text
- label font
- label font color
- gamma
- brightness
- line intensity
- relative intensity threshold
- absorption
- axis
- label
- relative intensity

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

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

The purpose of this package is to draw the spectra of elements in a simple way.

It is based on the package pst-spectra, but with some extra options. It relies on PGF/TikZ for drawing the desired spectrum, continuous or discrete.

There are data available for the spectra of 98 elements and their ions (from the NASA database and from NIST). It also allows the user to draw spectra using their own data.

Version2.1.2 2021-07-03
LicensesThe Project Public License 1.3
MaintainerHugo Gomes
Contained inTeX Live as pgf-spectra
MiKTeX as pgf-spectra
TopicsPGF TikZ
Guest Book Sitemap Contact Contact Author