.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/plot_sounding.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_gallery_plot_sounding.py: A Sounding ========== Temperature and :term:`dewpoint` profiles, with the ascent's :term:`wind barb` symbols on the gutter staff to the right of the diagram. The :term:`sounding` is Norman, Oklahoma at 12Z on 2013-05-20. .. GENERATED FROM PYTHON SOURCE LINES 13-45 .. image-sg:: /gallery/images/sphx_glr_plot_sounding_001.png :alt: plot sounding :srcset: /gallery/images/sphx_glr_plot_sounding_001.png :class: sphx-glr-single-img .. code-block:: Python from __future__ import annotations from typing import TYPE_CHECKING import matplotlib.pyplot as plt from tephpy import samples if TYPE_CHECKING: from matplotlib.figure import Figure def main() -> Figure: """Draw a sounding and its wind barbs. Returns ------- matplotlib.figure.Figure The composed figure. """ snd = samples.sounding("norman-12z") fig, ax = plt.subplots(figsize=(8.0, 4.0), subplot_kw={"projection": "tephigram"}) ax.plot_sounding(snd) ax.plot_barbs(snd) ax.legend() return fig if __name__ == "__main__": main() plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.183 seconds) .. rst-class:: sphx-glr-example-tags 🏷 Tags: sounding, barbs .. _sphx_glr_download_gallery_plot_sounding.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_sounding.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_sounding.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_sounding.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_