@@ -1968,6 +1968,34 @@ class QuadMesh(Collection):
1968
1968
"""
1969
1969
Class for the efficient drawing of a quadrilateral mesh.
1970
1970
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
+
1971
1999
A quadrilateral mesh consists of a grid of vertices.
1972
2000
The dimensions of this array are (*meshWidth* + 1, *meshHeight* + 1).
1973
2001
Each vertex in the mesh has a different set of "mesh coordinates"
@@ -1991,7 +2019,6 @@ class QuadMesh(Collection):
1991
2019
vertex at mesh coordinates (0, 0), then the one at (0, 1), then at (0, 2)
1992
2020
.. (0, meshWidth), (1, 0), (1, 1), and so on.
1993
2021
1994
- *shading* may be 'flat', or 'gouraud'
1995
2022
"""
1996
2023
def __init__ (self , * args , ** kwargs ):
1997
2024
# signature deprecation since="3.5": Change to new signature after the
0 commit comments