#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Library references : * https://pypi.org/project/mendeleev/ * https://mendeleev.readthedocs.io/en/stable/ * https://github.com/lmmentel/mendeleev """ from mendeleev import element import matplotlib.pyplot as plt x, y = range(1,108), [element(i).ionenergies[1] for i in range(1,108)] for i in range(1,108): print(x[i-1], y[i-1]) plt.figure() plt.plot(x, y) plt.savefig("ionenergies.png") plt.show()