.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/extras/LP01.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_gallery_extras_LP01.py: LP01 Mode Detector ================== This example demonstrates the initialization and visualization of an LP01 Mode detector using PyMieSim. .. GENERATED FROM PYTHON SOURCE LINES 9-10 Importing the package: PyMieSim .. GENERATED FROM PYTHON SOURCE LINES 10-15 .. code-block:: Python from TypedUnit import ureg from PyMieSim.single.detector import CoherentMode from PyMieSim.single import plot_system .. GENERATED FROM PYTHON SOURCE LINES 16-17 Initializing the detector .. GENERATED FROM PYTHON SOURCE LINES 17-26 .. code-block:: Python detector = CoherentMode( mode_number="LP01", # Specifying LP01 mode sampling=500 * ureg.AU, # Number of sampling points NA=1.0 * ureg.AU, # Numerical Aperture gamma_offset=90 * ureg.degree, # Gamma offset phi_offset=0 * ureg.degree, # Phi offset in degrees medium_refractive_index=1.3 * ureg.RIU, ) .. GENERATED FROM PYTHON SOURCE LINES 27-28 Plotting the detector .. GENERATED FROM PYTHON SOURCE LINES 28-29 .. code-block:: Python plot_system(detector) .. image-sg:: /gallery/extras/images/sphx_glr_LP01_001.png :alt: LP01 :srcset: /gallery/extras/images/sphx_glr_LP01_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.284 seconds) .. _sphx_glr_download_gallery_extras_LP01.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: LP01.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: LP01.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: LP01.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_