I have 3D data which is of the following form:
[(X1, Y1, Z1, VALUE1), (X2, Y2, Z2, VALUE2)...]
X, Y and Z are integers between 1 and 5 and value is an integer greater or equal to zero. So, for example a dataset could look like this:
import numpy as np
x = np.array(range(1,6))
y = np.array(range(1,6))
z = np.array(range(1,6))
data = np.random.randint(1,100, size=(len(x), len(y), len(z)) )
Now I would like to visualize the data in 3D. One possibility would be to plot cubes of different color to fill the space given by the arrays (x,y,z) as shown in the answer here: 3D discrete heatmap in matplotlib
The problem is that there exist 125 cubes.
Is there a better visualization for visualizing the 3D distribution of the data? Ideally, a plot would allow to inspect the different cubes but also an aggregation over some cubes could work.