.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/sellmeier/plot_silica.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_sellmeier_plot_silica.py: Plot the Refractive Index of Optical Material: Silica ===================================================== This module demonstrates the usage of the PyOptik library to calculate and plot the refractive index of the optical material Silica glass over a specified range of wavelengths. .. GENERATED FROM PYTHON SOURCE LINES 10-23 .. image-sg:: /gallery/sellmeier/images/sphx_glr_plot_silica_001.png :alt: Refractive Index vs. Wavelength: [fused_silica] :srcset: /gallery/sellmeier/images/sphx_glr_plot_silica_001.png :class: sphx-glr-single-img .. code-block:: Python import numpy from PyOptik import MaterialBank # Initialize the material with the Sellmeier model material = MaterialBank.fused_silica # Calculate refractive index at specific wavelengths RI = material.compute_refractive_index(wavelength=[1310e-9, 1550e-9]) # Display calculated refractive indices at sample wavelengths material.plot( wavelength=numpy.linspace(500e-9, 1500e-9, 300) ) .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.233 seconds) .. _sphx_glr_download_gallery_sellmeier_plot_silica.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_silica.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_silica.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_