Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

matplotlib histogram frequency labels

data = np.random.default_rng(123).rayleigh(1, 70)
counts, edges, bars = plt.hist(data)
#              ^

plt.bar_label(bars)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #matplotlib #histogram #frequency #labels
ADD COMMENT
Topic
Name
1+8 =