I am trying to understand what are the values of a 2D histogram.
I have 2 numpy arrays of the same length X and Y (float numbers in each one).
For example the first 10 values of X: [ 88, 193, 60, 98, 78, 100, 75, 76, 130]
and Y: [ 18. , 9. , 36.1, 18.5, 34.3, 32.9, 32.2, 22. , 15. ]
When I use:
import matplotlib.pyplot as plt
plt.hist2d(X,Y, bins=(10,20))
I get a 2D histogram.
But what does it mean?
1D histogram simply shows me how much of each item I have.
Please explain me what does it mean in 2D.
Thanks in advance!