I am trying to create something look like this:
(columns of dots, each column has the number of dots equals to each element in the data array) but I can only make
Here is my code
import matplotlib.pyplot as plt
data = [5, 6, 12, 5, 4, 5, 6, 10, 15, 34]
bins = np.arange(13)-0.5
hist, edges = np.histogram(data, bins=bins)
Y=[5, 6, 12, 5, 4, 5, 6, 10, 15, 34]
X=[10, 20, 30, 40, 50, 60, 70, 80, 90, 100]
plt.plot(X,Y,'ro')
plt.show()
Are there any functions in python that can help me with this or how to do this without built-in functions? Thank you so much.
P/s: I know that I should embed the picture instead of the link but I don't have enough badges to do that.