From 755043370e19d35c371cb7d9b44adb8545445c12 Mon Sep 17 00:00:00 2001 From: "Navid C. Constantinou" Date: Mon, 11 Oct 2021 07:35:52 +1100 Subject: [PATCH 1/2] fix default value for `shading` in docstring --- lib/matplotlib/axes/_axes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index 806e2acd0226..dde8bfd023bd 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -5643,7 +5643,7 @@ def pcolor(self, *args, shading=None, alpha=None, norm=None, cmap=None, rectangular grid. shading : {'flat', 'nearest', 'auto'}, optional - The fill style for the quadrilateral; defaults to 'flat' or + The fill style for the quadrilateral; defaults to 'auto' or :rc:`pcolor.shading`. Possible values: - 'flat': A solid color is used for each quad. The color of the From f774498a6612e1148356729b3850a4359f9a615f Mon Sep 17 00:00:00 2001 From: "Navid C. Constantinou" Date: Tue, 12 Oct 2021 09:33:29 +1100 Subject: [PATCH 2/2] default shading is :rc:`pcolor.shading` --- lib/matplotlib/axes/_axes.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index dde8bfd023bd..719866bbf935 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -5642,9 +5642,8 @@ def pcolor(self, *args, shading=None, alpha=None, norm=None, cmap=None, expanded as needed into the appropriate 2D arrays, making a rectangular grid. - shading : {'flat', 'nearest', 'auto'}, optional - The fill style for the quadrilateral; defaults to 'auto' or - :rc:`pcolor.shading`. Possible values: + shading : {'flat', 'nearest', 'auto'}, default: :rc:`pcolor.shading` + The fill style for the quadrilateral. Possible values: - 'flat': A solid color is used for each quad. The color of the quad (i, j), (i+1, j), (i, j+1), (i+1, j+1) is given by