import matplotlib.pyplot as plt from ternary_diagram import TernaryDiagram fig, ax = plt. plot (, ], color = 'black' ) # You can set some options in like `lw`, `c`, and so on. scatter ( vector =, ], marker = 's', c = '#022c5e', s = 30 ) # You can set some options in like `marker`, `c` etc. import matplotlib.pyplot as plt from ternary_diagram import TernaryDiagram td = TernaryDiagram () td. This package works well with the element_recognition package (my own package) because it has a function ( get_ratio) that converts composition to ratio.įor example, from element_recognition import get_ratio get_ratio ( products =, materials = ) Li2O La2O3 TiO2 Li2La2TiO6 1.0 1.0 1.0 How to install pip install ternary-diagram Most of the matplotlib options are available.Automatically format chemical composition using subscripts.What you will be able to do with this package Meaningly, only need numpy, pandas and matplotlib. This package makes it easier for you to draw beautiful ternary diagram without pymatgen.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |