from moseley import PeriodicTable, PeakPatternAtlasPeak pattern atlas
The forest and the trees
Given our ability to generate theoretical XRF spectra we can now build an atlas of spectral peak patterns for different chemical elements. In the following we will ignore the exotic Lanthanides and Actinides and further limit our attention to what I call the Elements Of Interest. To plot the periodic table instantiate the PeriodicTable class and run the .plot() method. The edges of pre-selected elements of interest (to me) are colored red.
table = PeriodicTable()
table.plot_table();
We are now in a position to compute our atlas of elemental XRF peak patterns…
ppa = PeakPatternAtlas()Ready building Peak Pattern Atlas!
ax = ppa.plot_atlas()
ax.set_ylabel('Elements (alpha sorted)');
FUNCTIONS
PeriodicTable
PeriodicTable (EOI=None)
Create a periodic table of elements.
colorize
colorize (ptable_regular)
*Generate regular element colors dictionary.
Returns: element_colors_dict*
PeakPatternAtlas
PeakPatternAtlas (EOI=None, excitation_energy_keV=25, x_keVs=None, verbose=True)
Create a PeakPatternAtlas instance.