.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/plotting/plot_rhi_mdv.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_plotting_plot_rhi_mdv.py: ================================= Create a RHI plot from a MDV file ================================= An example which creates a RHI plot of a MDV file using a RadarDisplay object. .. GENERATED FROM PYTHON SOURCE LINES 9-29 .. image-sg:: /examples/plotting/images/sphx_glr_plot_rhi_mdv_001.png :alt: ARM SGP C-SAPR 189.0 Deg. 2011-05-20T11:00:27Z Horizontal reflectivity :srcset: /examples/plotting/images/sphx_glr_plot_rhi_mdv_001.png :class: sphx-glr-single-img .. code-block:: Python print(__doc__) # Author: Jonathan J. Helmus (jhelmus@anl.gov) # License: BSD 3 clause import matplotlib.pyplot as plt import pyart from pyart.testing import get_test_data filename = get_test_data("110041.mdv") # create the plot using RadarDisplay radar = pyart.io.read_mdv(filename) display = pyart.graph.RadarDisplay(radar) fig = plt.figure(figsize=[5, 5]) ax = fig.add_subplot(111) display.plot("reflectivity", 0, vmin=-16, vmax=64.0) plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 2.299 seconds) .. _sphx_glr_download_examples_plotting_plot_rhi_mdv.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_rhi_mdv.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_rhi_mdv.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_rhi_mdv.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_