.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/6_Misc/plot_slit_function.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note You can download :ref:`below ` the full example code and run it with 🔬 `Radis-Lab `__, .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_6_Misc_plot_slit_function.py: ============= Slit Function ============= Quickly load and plot a slit function with :py:func:`~radis.tools.slit.plot_slit` .. GENERATED FROM PYTHON SOURCE LINES 10-17 .. image-sg:: /auto_examples/6_Misc/images/sphx_glr_plot_slit_function_001.png :alt: plot slit function :srcset: /auto_examples/6_Misc/images/sphx_glr_plot_slit_function_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none (
, ) | .. code-block:: Python from radis import plot_slit from radis.test.utils import getTestFile my_slit = getTestFile("slitfunction.txt") # for the example here plot_slit(my_slit, wunit="nm") .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.541 seconds) .. _sphx_glr_download_auto_examples_6_Misc_plot_slit_function.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_slit_function.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_slit_function.py `