.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "source/auto_examples/plotting/plot_time_height_scatter.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_time_height_scatter.py: Time-Height Scatter Plot ------------------------ This will show how to use the time-height scatter plot function that's part of the TimeSeries Display. .. GENERATED FROM PYTHON SOURCE LINES 8-24 .. image-sg:: /source/auto_examples/plotting/images/sphx_glr_plot_time_height_scatter_001.png :alt: sgpsondewnpnC1.b1 tdry on 20190101, sgpsondewnpnC1.b1 rh on 20190101 :srcset: /source/auto_examples/plotting/images/sphx_glr_plot_time_height_scatter_001.png :class: sphx-glr-single-img .. code-block:: Python import matplotlib.pyplot as plt import act from act.tests import sample_files # Read in radiosonde data ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_SONDE1) # Create scatter plots of the sonde data display = act.plotting.TimeSeriesDisplay(ds, figsize=(7, 6), subplot_shape=(2,)) display.time_height_scatter('tdry', plot_alt_field=True, subplot_index=(0,)) display.time_height_scatter('rh', subplot_index=(1,), cvd_friendly=True, day_night_background=True) plt.tight_layout() ds.close() plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.506 seconds) .. _sphx_glr_download_source_auto_examples_plotting_plot_time_height_scatter.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_time_height_scatter.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_time_height_scatter.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_time_height_scatter.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_