diff --git a/examples/mplot3d/voxels.py b/examples/mplot3d/voxels.py index c6a35d7bcf5b..5b74914fa271 100644 --- a/examples/mplot3d/voxels.py +++ b/examples/mplot3d/voxels.py @@ -20,16 +20,16 @@ link = abs(x - y) + abs(y - z) + abs(z - x) <= 2 # combine the objects into a single boolean array -voxels = cube1 | cube2 | link +voxelarray = cube1 | cube2 | link # set the colors of each object -colors = np.empty(voxels.shape, dtype=object) +colors = np.empty(voxelarray.shape, dtype=object) colors[link] = 'red' colors[cube1] = 'blue' colors[cube2] = 'green' # and plot everything ax = plt.figure().add_subplot(projection='3d') -ax.voxels(voxels, facecolors=colors, edgecolor='k') +ax.voxels(voxelarray, facecolors=colors, edgecolor='k') plt.show()