Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99e6240 commit 4c398f3Copy full SHA for 4c398f3
1 file changed
examples/mplot3d/surface3d_3.py
@@ -28,7 +28,7 @@
28
colors = np.empty(X.shape, dtype=str)
29
for y in range(ylen):
30
for x in range(xlen):
31
- colors[x, y] = colortuple[(x + y) % len(colortuple)]
+ colors[y, x] = colortuple[(x + y) % len(colortuple)]
32
33
# Plot the surface with face colors taken from the array we made.
34
surf = ax.plot_surface(X, Y, Z, facecolors=colors, linewidth=0)
0 commit comments