I\'m plotting about 10,000 items in an array. They are of around 1,000 unique values.
The plotting has been running half an hour now. I made sure rest of the code wo
It will be instant to plot the histogram after flattening the numpy array. Try the below demo code:
import numpy as np array2d = np.random.random_sample((512,512))*100 plt.hist(array2d.flatten()) plt.hist(array2d.flatten(), bins=1000)