From 8f2ab7a1e40de9ca3ff3bb6c4210daf51cb665c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Hendrik=20M=C3=BCller?= <44469195+kolibril13@users.noreply.github.com> Date: Fri, 12 Nov 2021 10:20:12 +0100 Subject: [PATCH] Rename to voxelarray --- examples/mplot3d/voxels.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()