.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "11_demos\python_packages\seaborn\demo_timeseries.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_11_demos_python_packages_seaborn_demo_timeseries.py: Timerseries ============== .. GENERATED FROM PYTHON SOURCE LINES 5-15 .. image-sg:: /11_demos/python_packages/seaborn/images/sphx_glr_demo_timeseries_001.png :alt: demo timeseries :srcset: /11_demos/python_packages/seaborn/images/sphx_glr_demo_timeseries_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none | .. code-block:: Python import seaborn as sns sns.set_theme(style="darkgrid") # Load an example dataset with long-form data fmri = sns.load_dataset("fmri") # Plot the responses for different events and regions sns.lineplot(x="timepoint", y="signal", hue="region", style="event", data=fmri) .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.906 seconds) .. _sphx_glr_download_11_demos_python_packages_seaborn_demo_timeseries.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: demo_timeseries.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: demo_timeseries.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: demo_timeseries.zip `