.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/slice.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_auto_examples_slice.py: 1D slices ========= .. GENERATED FROM PYTHON SOURCE LINES 5-17 .. image-sg:: /auto_examples/images/sphx_glr_slice_001.png :alt: slice :srcset: /auto_examples/images/sphx_glr_slice_001.png :class: sphx-glr-single-img .. code-block:: Python import napari viewer = napari.Viewer() viewer.open_sample("napari", "kidney") viewer.window.add_plugin_dock_widget( plugin_name="napari-matplotlib", widget_name="1D slice" ) if __name__ == "__main__": napari.run() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 1.728 seconds) .. _sphx_glr_download_auto_examples_slice.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: slice.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: slice.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_