Skip to content

sachour/python-quaternary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-quaternary

Rudimentary library for quaternary diagram plotting in python based on Matplotlib. Can be installed by pip at https://pypi.org/project/python-quaternary/. Please see example files for an example case of how to use it.

Installation

###pip

pip install python-quaternary

Useage

Please see examples in the examples folder fore detailed examples. First you need to import it with

from quaternary import quaternary

Then, you need to create a matplotlib figure and create the quaternary object

fig = plt.figure()
quat = quaternary(fig)

After that, you can set the grid and labels on each corner

quat.set_grid()
quat.set_label1('C$_1$')
quat.set_label2('C$_4$')
quat.set_label3('C$_{10}$')
quat.set_label4('CO$_2$',pad=0.05)

Some day I may write actual documentation for this library depending on if anyone finds it useful...

Citation

If you want to cite it, open the file CITATION.md.

About

Quaternnary/tetrahedral diagram plotting library for python based matplotlib

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages