.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/plot_igorio.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_examples_plot_igorio.py: IgorProIO Demo ======================= .. GENERATED FROM PYTHON SOURCE LINES 8-9 Import our packages .. GENERATED FROM PYTHON SOURCE LINES 9-14 .. code-block:: Python from urllib.request import urlretrieve import matplotlib.pyplot as plt from neo.io import get_io .. GENERATED FROM PYTHON SOURCE LINES 15-17 Then download some data we can try out some data on the NeuralEnsemble ephy testing repo .. GENERATED FROM PYTHON SOURCE LINES 17-40 .. code-block:: Python url_repo = "https://web.gin.g-node.org/NeuralEnsemble/ephy_testing_data/raw/master/" distantfile = url_repo + "igor/win-version2.ibw" localfile = "win-version2.ibw" urlretrieve(distantfile, localfile) # ###################################################### # Once we have our data we can use `get_io` to find an # io (Igor in this case). Then we read the analogsignals # Finally we will make some nice plots # # Note: not all IOs have all types of read functionality # see our documentation for a better understanding of the # Neo object hierarchy and the functionality of differnt IOs reader = get_io(localfile) signal = reader.read_analogsignal() plt.plot(signal.times, signal) plt.xlabel(signal.sampling_period.dimensionality) plt.ylabel(signal.dimensionality) plt.show() .. image-sg:: /examples/images/sphx_glr_plot_igorio_001.png :alt: plot igorio :srcset: /examples/images/sphx_glr_plot_igorio_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 1.690 seconds) .. _sphx_glr_download_examples_plot_igorio.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_igorio.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_igorio.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_igorio.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_