.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "tutorials/widgets/plot_2_sort_gallery.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_tutorials_widgets_plot_2_sort_gallery.py: SortingExtractor Widgets Gallery =================================== Here is a gallery of all the available widgets using SortingExtractor objects. .. GENERATED FROM PYTHON SOURCE LINES 7-13 .. code-block:: Python import matplotlib.pyplot as plt import spikeinterface.extractors as se import spikeinterface.widgets as sw .. GENERATED FROM PYTHON SOURCE LINES 14-15 First, let's create a toy example with the `extractors` module: .. GENERATED FROM PYTHON SOURCE LINES 15-18 .. code-block:: Python recording, sorting = se.toy_example(duration=100, num_channels=1, seed=0, num_segments=1) .. rst-class:: sphx-glr-script-out .. code-block:: none /home/docs/checkouts/readthedocs.org/user_builds/spikeinterface/checkouts/3072/src/spikeinterface/core/generate.py:2255: UserWarning: generate_unit_locations(): no solution for minimum_distance=20.0 and max_iteration=100 warnings.warn(f"generate_unit_locations(): no solution for {minimum_distance=} and {max_iteration=}") .. GENERATED FROM PYTHON SOURCE LINES 19-21 plot_rasters() ~~~~~~~~~~~~~~ .. GENERATED FROM PYTHON SOURCE LINES 21-24 .. code-block:: Python w_rs = sw.plot_rasters(sorting) .. image-sg:: /tutorials/widgets/images/sphx_glr_plot_2_sort_gallery_001.png :alt: plot 2 sort gallery :srcset: /tutorials/widgets/images/sphx_glr_plot_2_sort_gallery_001.png :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 25-27 plot_isi_distribution() ~~~~~~~~~~~~~~~~~~~~~~~ .. GENERATED FROM PYTHON SOURCE LINES 27-30 .. code-block:: Python w_isi = sw.plot_isi_distribution(sorting, window_ms=150.0, bin_ms=5.0, figsize=(20, 8)) .. image-sg:: /tutorials/widgets/images/sphx_glr_plot_2_sort_gallery_002.png :alt: plot 2 sort gallery :srcset: /tutorials/widgets/images/sphx_glr_plot_2_sort_gallery_002.png :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 31-33 plot_autocorrelograms() ~~~~~~~~~~~~~~~~~~~~~~~~ .. GENERATED FROM PYTHON SOURCE LINES 33-36 .. code-block:: Python w_ach = sw.plot_autocorrelograms(sorting, window_ms=150.0, bin_ms=5.0, unit_ids=[1, 2, 5]) .. image-sg:: /tutorials/widgets/images/sphx_glr_plot_2_sort_gallery_003.png :alt: 1, 2, 5 :srcset: /tutorials/widgets/images/sphx_glr_plot_2_sort_gallery_003.png :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 37-39 plot_crosscorrelograms() ~~~~~~~~~~~~~~~~~~~~~~~~ .. GENERATED FROM PYTHON SOURCE LINES 39-46 .. code-block:: Python w_cch = sw.plot_crosscorrelograms(sorting, window_ms=150.0, bin_ms=5.0, unit_ids=[1, 2, 5]) plt.show() .. image-sg:: /tutorials/widgets/images/sphx_glr_plot_2_sort_gallery_004.png :alt: 1, 2, 5 :srcset: /tutorials/widgets/images/sphx_glr_plot_2_sort_gallery_004.png :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 47-49 plot_unit_presence() ~~~~~~~~~~~~~~~~~~~~ .. GENERATED FROM PYTHON SOURCE LINES 49-54 .. code-block:: Python w_pr = sw.plot_unit_presence(sorting) plt.show() .. image-sg:: /tutorials/widgets/images/sphx_glr_plot_2_sort_gallery_005.png :alt: plot 2 sort gallery :srcset: /tutorials/widgets/images/sphx_glr_plot_2_sort_gallery_005.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 3.653 seconds) .. _sphx_glr_download_tutorials_widgets_plot_2_sort_gallery.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_2_sort_gallery.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_2_sort_gallery.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_2_sort_gallery.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_