galpy.util.plot.hist

galpy.util.plot.hist(x, xlabel=None, ylabel=None, overplot=False, **kwargs)[source]

Plot a histogram of the input array using matplotlib’s hist function.

Parameters:
  • x (numpy.ndarray) – Array to histogram.

  • xlabel (str, optional) – x-axis label, LaTeX math mode, no $s needed.

  • ylabel (str, optional) – y-axis label, LaTeX math mode, no $s needed.

  • overplot (bool, optional) – If True, plot on top of the current figure.

  • **kwargs – All other keyword arguments are passed to pyplot.hist.

Returns:

Output from pyplot.hist

Return type:

tuple

Notes

  • 2009-12-23 - Written - Bovy (NYU)