.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples_generated/gallery/ptable.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_ptable.py: Periodic Table ============== .. GENERATED FROM PYTHON SOURCE LINES 8-27 .. image-sg:: /examples_generated/gallery/images/sphx_glr_ptable_001.png :alt: ptable :srcset: /examples_generated/gallery/images/sphx_glr_ptable_001.png :class: sphx-glr-single-img .. code-block:: Python import matplotlib.pyplot as plt from ase.utils.ptable import ptable from ase.visualize.plot import plot_atoms atoms = ptable() atoms.write('ptable.png') fig, ax = plt.subplots() ax = plot_atoms(atoms) ax.set_axis_off() fig.tight_layout() # Calling "povray ptable_pov.ini" will render it with povray. # atoms.write('ptable_pov.pov') # from ase.visualize import view # view(atoms) .. _sphx_glr_download_examples_generated_gallery_ptable.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: ptable.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: ptable.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: ptable.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_