code: def _add_values(ax: Axes, h1: Histogram1D, data, *, value_format=lambda x: x, **kwargs):
      
      from .common import get_value_format
      value_format = get_value_format(value_format)
      text_kwargs = {"ha": "center", "va": "bottom", "clip_on" : True}
      text_kwargs.update(kwargs)
  
      for x, y in zip(h1.bin_centers, data):
          ax.text(x, y, str(value_format(y)), **text_kwargs)
docs: Show values next to each bin in a 1D plot.
  
      Parameters
      ----------
      ax : plt.Axes
      h1 : physt.histogram1d.Histogram1D
      data : array_like
          The values to be displayed
      kwargs : dict
          Parameters to be passed to matplotlib to override standard text params.