this question is an extension of my previous question that you can find here:
How to plot a data cube in python
The thing is that I have a 3D plot of point but if I follow the method of my previous question I could get an overflow error when I have too many points to plot. I have to plot millions of points so I need to smooth the 3D distribution, otherwise it takes a huge amount of time to make the plot and I could also get memory errors.
I was thinking that maybe I can convolve the distribution with a Gaussian kernel, but I don't know if it's the best option. Moreover, I am not able to do it yet.