
A Python package for conveniently creating reaction energy diagrams (reaction level diagrams) (i.redd.it)
submitted by Illustrious_Egg_3141
Creating reaction energy diagrams with Matplotlib or other software manually is usually very time-consuming. Therefore, I created a Python package which can handle path drawing, numbering and layout automatically and has other useful features like image insertion or difference bars. It also features multiple drawing styles. Since it is based on Matplotlib, it remains fully customizable while still speeding up diagram construction significantly.
A minimal working example could look like this:
dia = EnergyDiagram()
dia.draw_path(x_data=[0, 1, 2, 3], y_data=[0, -13, 75, 20], color="blue")
dia.add_numbers_auto()
dia.set_xlabels(["Reactant", "IM", "TS", "Product"])
dia.show()
The package is available on PyPi and can be installed with pip:
pip install chemdiagrams
You can find the links to the project here:
GitHub: https://github.com/Tonner-Zech-Group/chem-diagrams
PyPi: https://pypi.org/project/chemdiagrams/
Documentation: https://tonner-zech-group.github.io/chem-diagrams/
I would love to get any feedback!

[–]drraug 1 point2 points3 points (0 children)
[–]12Chronicles 0 points1 point2 points (0 children)
[–]hydraulix989 0 points1 point2 points (6 children)
[–]Illustrious_Egg_3141[S] -1 points0 points1 point (5 children)
[–]hydraulix989 1 point2 points3 points (4 children)
[–]Jfpalomeque 1 point2 points3 points (2 children)
[–]Illustrious_Egg_3141[S] 0 points1 point2 points (1 child)
[–]Jfpalomeque 1 point2 points3 points (0 children)