qspec logo qspec logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2026 Patrick Müller. All rights reserved.

qspec.simulate.Atom. plot  (  indices=None ,  draw_bounds=False ,  show=True  )[source]

Plot a term scheme of the atom.

Parameters:
indicesarray_like | None

The indices of the states to be drawn. If None, all states are drawn.

draw_boundsbool

Whether to draw the upper vertical bounds of the states.

showbool

Whether to show the plot.

Returns:
(x, y, d)tuple[dict[int, ndarray], dict[int, ndarray], int]

The $x$ and $y$ positions of the states as well as the distance constant $d$ in the plot.