I have an array of values and I want to plot a histogram where each index of the array is a bin and the height of the bin is determine by the value in that index. How can I do this using python and matplotlib?
Example: x = [25, 100, 52,12] and my histogram has 4 bins, and each has a height corresponding to the value per index.