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.
2 parents a8b79bb + cd9cc10 commit 28efb11Copy full SHA for 28efb11
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