I have a 7x2 matrix, the first column being the quantity and the second being the value:
[[0.5 3. ]
[0.5 4. ]
[1. 4. ]
[0.5 8. ]
[0.5 9. ]
[0.5 8. ]
[0.5 5.99638637]]
For example, the first row says there's 0.5 of value 3. How should I make a histogram where the x-axis depicts the values and the y-axis depicts the quantity, taking into account that values may appear in multiple rows?