8000 Backport PR #21609: Fix documentation link with renaming `voxels` to … · meeseeksmachine/matplotlib@d42e5bc · GitHub
[go: up one dir, main page]

Skip to content

Commit d42e5bc

Browse files
jklymakmeeseeksmachine
auth 8000 ored andcommitted
Backport PR matplotlib#21609: Fix documentation link with renaming voxels to voxelarray
1 parent fcf7b81 commit d42e5bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/mplot3d/voxels.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@
2020
link = abs(x - y) + abs(y - z) + abs(z - x) <= 2
2121

2222
# combine the objects into a single boolean array
23-
voxels = cube1 | cube2 | link
23+
voxelarray = cube1 | cube2 | link
2424

2525
# set the colors of each object
26-
colors = np.empty(voxels.shape, dtype=object)
26+
colors = np.empty(voxelarray.shape, dtype=object)
2727
colors[link] = 'red'
2828
colors[cube1] = 'blue'
2929
colors[cube2] = 'green'
3030

3131
# and plot everything
3232
ax = plt.figure().add_subplot(projection='3d')
33-
ax.voxels(voxels, facecolors=colors, edgecolor='k')
33+
ax.voxels(voxelarray, facecolors=colors, edgecolor='k')
3434

3535
plt.show()

0 commit comments

Comments
 (0)
0