.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_slit_function.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Run this example online : - Click :ref:`here ` to download the full example code - Then start `Radis-Lab `__, upload the Jupyter notebook, and run it from there. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_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/images/sphx_glr_plot_slit_function_001.png :alt: plot slit function :srcset: /auto_examples/images/sphx_glr_plot_slit_function_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none (
, ) | .. code-block:: default 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 1.144 seconds) .. _sphx_glr_download_auto_examples_plot_slit_function.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_slit_function.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_slit_function.ipynb `