.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "source/auto_examples/plotting/plot_hist_kwargs.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_hist_kwargs.py: Plot a histogram of Met data. ---------------------------------------------------- This is a simple example for how to plot a histogram of Meteorological data, while using hist_kwargs parameter. Author: Zachary Sherman .. GENERATED FROM PYTHON SOURCE LINES 10-25 .. image-sg:: /source/auto_examples/plotting/images/sphx_glr_plot_hist_kwargs_001.png :alt: sgpmetE13.b1 temp_mean on 20190101 :srcset: /source/auto_examples/plotting/images/sphx_glr_plot_hist_kwargs_001.png :class: sphx-glr-single-img .. code-block:: Python from arm_test_data import DATASETS from matplotlib import pyplot as plt import numpy as np import act filename_met = DATASETS.fetch('sgpmetE13.b1.20190101.000000.cdf') met_ds = act.io.arm.read_arm_netcdf(filename_met) # Plot data hist_kwargs = {'range': (-10, 10)} histdisplay = act.plotting.DistributionDisplay(met_ds) histdisplay.plot_stacked_bar('temp_mean', bins=np.arange(-40, 40, 5), hist_kwargs=hist_kwargs) plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.098 seconds) .. _sphx_glr_download_source_auto_examples_plotting_plot_hist_kwargs.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_hist_kwargs.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_hist_kwargs.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_hist_kwargs.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_