.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples_generated/gallery/phasediagram.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_examples_generated_gallery_phasediagram.py: Phase diagrams ============== .. GENERATED FROM PYTHON SOURCE LINES 7-27 .. rst-class:: sphx-glr-horizontal * .. image-sg:: /examples_generated/gallery/images/sphx_glr_phasediagram_001.png :alt: phasediagram :srcset: /examples_generated/gallery/images/sphx_glr_phasediagram_001.png :class: sphx-glr-multi-img * .. image-sg:: /examples_generated/gallery/images/sphx_glr_phasediagram_002.png :alt: phasediagram :srcset: /examples_generated/gallery/images/sphx_glr_phasediagram_002.png :class: sphx-glr-multi-img .. rst-class:: sphx-glr-script-out .. code-block:: none Species: K, Ta, O References: 12 0 K 0.000 1 Ta 0.000 2 O2 0.000 3 K3TaO8 -16.167 4 KO2 -2.288 5 KO3 -2.239 6 Ta2O5 -19.801 7 TaO3 -8.556 8 TaO -1.967 9 K2O -3.076 10 K2O2 -4.257 11 KTaO3 -13.439 Simplices: 7 | .. code-block:: Python from ase.phasediagram import PhaseDiagram references = [ ('K', 0), ('Ta', 0), ('O2', 0), ('K3TaO8', -16.167), ('KO2', -2.288), ('KO3', -2.239), ('Ta2O5', -19.801), ('TaO3', -8.556), ('TaO', -1.967), ('K2O', -3.076), ('K2O2', -4.257), ('KTaO3', -13.439), ] pd = PhaseDiagram(references) for d in [2, 3]: pd.plot(dims=d, show=False, fontsize=20) .. _sphx_glr_download_examples_generated_gallery_phasediagram.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: phasediagram.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: phasediagram.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: phasediagram.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_