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

Skip to content

Commit c811d1c

Browse files
committed
Update docstring of QuadMesh
1 parent f0c79b6 commit c811d1c

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

lib/matplotlib/collections.py

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1968,6 +1968,34 @@ class QuadMesh(Collection):
19681968
"""
19691969
Class for the efficient drawing of a quadrilateral mesh.
19701970
1971+
A quadrilateral mesh consists of a (N, M) grid of vertices, that define
1972+
N-1 * M-1 quadrilaterals ::
1973+
1974+
: (m+1, n) ----------- (m+1, n+1)
1975+
: / /
1976+
: / /
1977+
: / /
1978+
: (m, n) -------- (m, n+1)
1979+
1980+
The mesh need not be regular and the polygons need not be convex.
1981+
1982+
Parameters
1983+
----------
1984+
coordimates : (M, N, 2) array-like
1985+
The vertices. ``coordinates[m, n]`` specified the coordinates (x, y)
1986+
of vertex (m, n).
1987+
1988+
antialiased : bool, default: True
1989+
1990+
shading : {'flat', 'gouraud'}, default: 'flat'
1991+
1992+
Notes
1993+
-----
1994+
There exists a deprecated API version ``QuadMesh(M, N, coords)``, where
1995+
the dimensions are given explicitly and ``coords`` is a (M*N, 2)
1996+
array-like. This has been deprecated in Matplotlib 3.5. The following
1997+
describes the semantics of this deprecated API.
1998+
19711999
A quadrilateral mesh consists of a grid of vertices.
19722000
The dimensions of this array are (*meshWidth* + 1, *meshHeight* + 1).
19732001
Each vertex in the mesh has a different set of "mesh coordinates"
@@ -1991,7 +2019,6 @@ class QuadMesh(Collection):
19912019
vertex at mesh coordinates (0, 0), then the one at (0, 1), then at (0, 2)
19922020
.. (0, meshWidth), (1, 0), (1, 1), and so on.
19932021
1994-
*shading* may be 'flat', or 'gouraud'
19952022
"""
19962023
def __init__(self, *args, **kwargs):
19972024
# signature deprecation since="3.5": Change to new signature after the

0 commit comments

Comments
 (0)