Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cac4026

Browse files
authored
Merge pull request #16503 from jklymak/doc-fix-pcolor
DOC: suppress warning on pcolor demo
2 parents 7758ad7 + 98a949e commit cac4026

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/images_contours_and_fields/pcolor_demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@
9696

9797
fig, (ax0, ax1) = plt.subplots(2, 1)
9898

99-
c = ax0.pcolor(X, Y, Z,
99+
c = ax0.pcolor(X, Y, Z, shading='auto',
100100
norm=LogNorm(vmin=Z.min(), vmax=Z.max()), cmap='PuBu_r')
101101
fig.colorbar(c, ax=ax0)
102102

103-
c = ax1.pcolor(X, Y, Z, cmap='PuBu_r')
103+
c = ax1.pcolor(X, Y, Z, cmap='PuBu_r', shading='auto')
104104
fig.colorbar(c, ax=ax1)
105105

106106
plt.show()

0 commit comments

Comments
 (0)