I want to plot random numbers of Bars with matplotlib. I set each tick_label individually but shows only the last one.
Which one is correct? using tick_label property or using the plot set_xticks function?
import matplotlib.pyplot as plt
import random as r
for i in range(10):
plt.bar(i,i*2, r.randint(1,2) , tick_label=i)
plt.show()


