I pretend to remove slices from the third dimension of a 4d numpy array if it’s contains only zeros. I have a 4d numpy array of dimensions [256,256,336,6] and I need to delete the slices in the third dimension that only contains zeros. So the result would have a shape like this , e.g. [256,256,300,6] if 36 slices are fully
Tag: 4d
How to plot the fourth variable based on a given x, y and z coordinate framework
I have a numpy array with four columns and several rows. First column is my variable and three others are x, y and z coordinates, respectivly: The first column has some discrete values, e.g. it is 1 or 2 or 3. Now, using matplotlib or any other useful library like seaborn) I want to plot these values in a 3d