8000 Merge pull request #21614 from meeseeksmachine/auto-backport-of-pr-21… · matplotlib/matplotlib@2c79a9b · GitHub
[go: up one dir, main page]

Skip to content
10000

Commit 2c79a9b

Browse files
authored
Merge pull request #21614 from meeseeksmachine/auto-backport-of-pr-21609-on-v3.5.x
Backport PR #21609 on branch v3.5.x (Fix documentation link with renaming `voxels` to `voxelarray`)
2 parents fcf7b81 + d42e5bc commit 2c79a9b

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