.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_histogram_example.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_auto_examples_plot_histogram_example.py: Histogram Example =================================== Example of a histogram plotter. .. GENERATED FROM PYTHON SOURCE LINES 8-18 .. image-sg:: /auto_examples/images/sphx_glr_plot_histogram_example_001.png :alt: plot histogram example :srcset: /auto_examples/images/sphx_glr_plot_histogram_example_001.png :class: sphx-glr-single-img .. code-block:: Python from gerg_plotting import Histogram, Data import numpy as np # Initalize the data object with some sample data data = Data(temperature=np.random.normal(28,size=1000)) hist = Histogram(data) # Assign the histogram plotter to a variable hist.plot(var='temperature') hist.save('example_plots/histogram_example.png',bbox_inches='tight') .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.098 seconds) .. _sphx_glr_download_auto_examples_plot_histogram_example.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_histogram_example.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_histogram_example.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_histogram_example.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_