Relative Content

Tag Archive for pythonnumpyhistogramhistogram2d

Is there a way to reduce noise within this 2d numpy histogram by setting a minimum count limit to each bin?

I am working with a dataset and am trying to correlate 2 variables and use the third variable as a weight within a numpy 2d histogram. However, there is a lot of noise within the output histogram and I am wondering if there is some way to filter out bins with less than, say, 5 values contained within it. The first part of my code shown below is just an example of the variables I would be inputting. The latter part is for the histogram itself.