nikolasibalic / ARC-Alkali-Rydberg-Calculator

Object-oriented Python library for computation of properties of highly-excited Rydbeg states of alkali and divalent atoms.
https://atomcalc.org
BSD 3-Clause "New" or "Revised" License
90 stars 78 forks source link

Move LevelPlot labels from showPlot to drawLevels #132

Closed petermao closed 1 year ago

petermao commented 1 year ago

If the user saves the LevelPlot figure without first opening it in a graphical window (by running showPlot()), the axis labels are not present.

Moving the labelling into drawLevels resolves this issue with no change in behavior for users that always call showPlot().

Also, add default title "{elementName}: n \in [{lFrom}, {lTo}]". This is different from stock ARC, but I figure it doesn't hurt. With any graphical interaction, this title is overwritten.

Changes above line 1700 are just whitespace cleanup.

nikolasibalic commented 1 year ago

Thank you @petermao for this improvement PR!

You updates are now released as v3.2.9