I have some piecewise-constant probability density functions of 3 variables, and I would like to represent these on a 3D plot. My idea is to do this by leaving those grid cubes where p(x,y,z)=0 transparent, whilst increasing the opacity (or introducing some colouring, whichever looks better) for grid cubes with increasing p-value. In this way I hope to build a 3D object representing the "most likely" regions of space.
I can do this easily in 2D by making a coloured contour plot with MatPlotLib, but I haven't found any references for 3D versions.
Does anyone know if such a thing already exists? Or have any ideas?
Many thanks! A.