From 98a949ee78465d3682f497fe97047eafa3453a92 Mon Sep 17 00:00:00 2001 From: Jody Klymak Date: Thu, 13 Feb 2020 11:02:06 -0800 Subject: [PATCH] DOC: suppress warning on pcolor demo --- examples/images_contours_and_fields/pcolor_demo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/images_contours_and_fields/pcolor_demo.py b/examples/images_contours_and_fields/pcolor_demo.py index 251e2df10ea6..efaedc402f76 100644 --- a/examples/images_contours_and_fields/pcolor_demo.py +++ b/examples/images_contours_and_fields/pcolor_demo.py @@ -96,11 +96,11 @@ fig, (ax0, ax1) = plt.subplots(2, 1) -c = ax0.pcolor(X, Y, Z, +c = ax0.pcolor(X, Y, Z, shading='auto', norm=LogNorm(vmin=Z.min(), vmax=Z.max()), cmap='PuBu_r') fig.colorbar(c, ax=ax0) -c = ax1.pcolor(X, Y, Z, cmap='PuBu_r') +c = ax1.pcolor(X, Y, Z, cmap='PuBu_r', shading='auto') fig.colorbar(c, ax=ax1) plt.show()