yieldplotlib.plots.yield_hist
=============================

.. py:module:: yieldplotlib.plots.yield_hist

.. autoapi-nested-parse::

   Script to test AYO and EXOSIMS loading.



Functions
---------

.. autoapisummary::

   yieldplotlib.plots.yield_hist.plot_hist
   yieldplotlib.plots.yield_hist.autolabel


Module Contents
---------------

.. py:function:: plot_hist(temps, planet_bins, runs, run_labels, ax=None, ax_kwargs=None, use_cyberpunk=False)

   Plot a histogram of planet populations for different temperature bins.

   Args:
       temps (list):
           List of temperature bins to plot, e.g., ["hot", "warm", "cold"].
       planet_bins (list):
           List of planet types to plot, e.g., ["Earth", "Rocky", "Super Earth"].
       runs (list):
           List of EXOSIMSDirectories and AYODirectories to plot.
       run_labels (list):
           List of labels for each run.
       ax (matplotlib.axes.Axes, optional):
           Axes to plot on. If None, a new figure is created.
       ax_kwargs (dict, optional):
           Keyword arguments to pass to ax.set().
       use_cyberpunk (bool, optional):
           Whether to use the mplcyberpunk style. Default is False.

   Returns:
       matplotlib.figure.Figure, matplotlib.axes.Axes:
           Figure and axes objects for the plot.


.. py:function:: autolabel(ax, rects, use_cyberpunk=False)

   Attach a text label above each bar displaying its height.


