.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "source/auto_examples/plotting/plot_stripes.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_source_auto_examples_plotting_plot_stripes.py: Example plot using stripes -------------------------- Plot up climate stripes plots from already existing climatologies from ARM data. Author: Adam Theisen .. GENERATED FROM PYTHON SOURCE LINES 10-29 .. image-sg:: /source/auto_examples/plotting/images/sphx_glr_plot_stripes_001.png :alt: act_datastream temperature Stripes on 19930101 :srcset: /source/auto_examples/plotting/images/sphx_glr_plot_stripes_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none /home/runner/work/ACT/ACT/act/plotting/plot.py:81: UserWarning: Could not discern datastreamname and dict or tuple were not provided. Using defaultname of act_datastream! warnings.warn( | .. code-block:: Python import act import matplotlib.pyplot as plt # SGP E13 MET data has already been processed to yearly averages, # removing data flagged by embedded qc and DQRs url = 'https://raw.githubusercontent.com/AdamTheisen/ARM-Climatologies/refs/heads/main/results/sgpmetE13.b1_temp_mean_Y.csv' col_names = ['time', 'temperature', 'count'] ds = act.io.read_csv(url, column_names=col_names, index_col=0, parse_dates=True) # Drop years with less than 500000 samples ds = ds.where(ds['count'] > 500000) # Create plot display display = act.plotting.TimeSeriesDisplay(ds, figsize=(10, 2)) reference = ['2003-01-01', '2013-01-01'] display.plot_stripes('temperature', reference_period=reference) plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.227 seconds) .. _sphx_glr_download_source_auto_examples_plotting_plot_stripes.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_stripes.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_stripes.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_stripes.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_