atompy.Hist1d.for_plot#

property Hist1d.for_plot#

Returns bin-centers and bin-values

Returns:
centersndarray
bin_valuesndarray

Examples

# 'hist' is a Hist1d object
plt.plot(*hist.for_plot)
# ... which is equivalent to
plt.plot(hist.centers, hist.histogram)