8000 Merge pull request #21609 from kolibril13/voxelarray · matplotlib/matplotlib@38080dd · GitHub
[go: up one dir, main page]

Skip to content

Commit 38080dd

Browse files
authored
Merge pull request #21609 from kolibril13/voxelarray
Fix documentation link with renaming `voxels` to `voxelarray`
2 parents 29a3707 + 8f2ab7a commit 38080dd

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