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

Skip to content

Commit 4876264

Browse files
committed
DOC: fix pcolormesh doc
1 parent 32805b1 commit 4876264

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

lib/matplotlib/axes/_axes.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6543,10 +6543,8 @@ def pcolor(self, *args, shading=None, alpha=None, norm=None, cmap=None,
65436543
:ref:`Notes <axes-pcolormesh-grid-orientation>` section below.
65446544
65456545
If ``shading='flat'`` the dimensions of *X* and *Y* should be one
6546-
greater than those of *C*, and the quadrilateral is colored due
6547-
to the value at ``C[i, j]``. If *X*, *Y* and *C* have equal
6548-
dimensions, a warning will be raised and the last row and column
6549-
of *C* will be ignored.
6546+
greater than those of *C*, otherwise a ValueError is raised. The
6547+
quadrilateral is colored due to the value at ``C[i, j]``.
65506548
65516549
If ``shading='nearest'``, the dimensions of *X* and *Y* should be
65526550
the same as those of *C* (if not, a ValueError will be raised). The
@@ -6750,10 +6748,8 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
67506748
:ref:`Notes <axes-pcolormesh-grid-orientation>` section below.
67516749
67526750
If ``shading='flat'`` the dimensions of *X* and *Y* should be one
6753-
greater than those of *C*, and the quadrilateral is colored due
6754-
to the value at ``C[i, j]``. If *X*, *Y* and *C* have equal
6755-
dimensions, a warning will be raised and the last row and column
6756-
of *C* will be ignored.
6751+
greater than those of *C*, otherwise a ValueError is raised. The
6752+
quadrilateral is colored due to the value at ``C[i, j]``.
67576753
67586754
If ``shading='nearest'`` or ``'gouraud'``, the dimensions of *X*
67596755
and *Y* should be the same as those of *C* (if not, a ValueError

0 commit comments

Comments
 (0)