arc.calculations_atom_single.StarkMap.plotLevelDiagram#
- StarkMap.plotLevelDiagram(units='cm', highlightState=True, progressOutput=False, debugOutput=False, highlightColour='red', addToExistingPlot=False)[source]#
Makes a plot of a stark map of energy levels
To save this plot, see
savePlot
. To print this plot seeshowPlot
. Pointers (handles) towards matplotlib figure and axis used are saved infig
andax
variables respectively.- Parameters
units (
char
,optional) – possible values {’cm’,’GHz’,’eV’}; [case insensitive] if the string contains ‘cm’ (default) Stark diagram will be plotted in energy units cm \({}^{-1}\); if value is ‘GHz’, Stark diagram will be plotted as energy \(/h\) in units of GHz; if the value is ‘eV’, Stark diagram will be plotted as energy in units eV.highlightState (
bool
, optional) – False by default. If True, scatter plot colour map will map in red amount of original state for the given eigenStateprogressOutput (
bool
, optional) – if True prints the progress of calculation; Set to False by default.debugOutput (
bool
, optional) – if True prints additional information usefull for debuging. Set to False by default.addToExistingPlot (
bool
, optional) – if True adds points to existing old plot. Note that then interactive plotting doesn’t work. False by default.