I have this cube that ive displayed using voxels.

I need to rotate it like the image above.
I've tried np.rot and scipy.ndimage.interpolate.rotate with no success.
Could someone point me in the right direction
Cube = np.rand.rand(8,8,10) < .5
ax = plt.figure().add_subplot(projection=‘3d’)
ax.voxels(cube)
Plt.show()