.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "user-guide/usage/visualization/plot_3_lattice.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_user-guide_usage_visualization_plot_3_lattice.py: ************** Lattice points ************** This page explains how to display lattice points associated with the given ``cell``. We use FCC cell as an example. .. GENERATED FROM PYTHON SOURCE LINES 30-36 .. code-block:: Python import wulfric cell = wulfric.cell.SC_FCC(a=3) .. GENERATED FROM PYTHON SOURCE LINES 37-38 Wulfric assumes that ``cell`` contains one lattice point. .. GENERATED FROM PYTHON SOURCE LINES 38-47 .. code-block:: Python pe = wulfric.PlotlyEngine(_sphinx_gallery_fix=True) pe.plot_cell(cell=cell, legend_label="Original cell", color="green") pe.plot_lattice(cell=cell, range=(4, 4, 4), legend_label="Associated lattice") pe.show() .. raw:: html


.. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.039 seconds) .. _sphx_glr_download_user-guide_usage_visualization_plot_3_lattice.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_3_lattice.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_3_lattice.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_3_lattice.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_