@@ -1968,6 +1968,35 @@ class QuadMesh(Collection):
1968
1968
"""
1969
1969
Class for the efficient drawing of a quadrilateral mesh.
1970
1970
1971
+ A quadrilateral mesh is a grid of M by N adjacent qudrilaterals that are
1972
+ defined via a (M+1, N+1) grid of vertices. The quadrilateral (m, n) is
1973
+ defind by the vertices ::
1974
+
1975
+ (m+1, n) ----------- (m+1, n+1)
1976
+ / /
1977
+ / /
1978
+ / /
1979
+ (m, n) -------- (m, n+1)
1980
+
1981
+ The mesh need not be regular and the polygons need not be convex.
1982
+
1983
+ Parameters
1984
+ ----------
1985
+ coordinates : (M+1, N+1, 2) array-like
1986
+ The vertices. ``coordinates[m, n]`` specifies the (x, y) coordinates
1987
+ of vertex (m, n).
1988
+
1989
+ antialiased : bool, default: True
1990
+
1991
+ shading : {'flat', 'gouraud'}, default: 'flat'
1992
+
1993
+ Notes
1994
+ -----
1995
+ There exists a deprecated API version ``QuadMesh(M, N, coords)``, where
1996
+ the dimensions are given explicitly and ``coords`` is a (M*N, 2)
1997
+ array-like. This has been deprecated in Matplotlib 3.5. The following
1998
+ describes the semantics of this deprecated API.
1999
+
1971
2000
A quadrilateral mesh consists of a grid of vertices.
1972
2001
The dimensions of this array are (*meshWidth* + 1, *meshHeight* + 1).
1973
2002
Each vertex in the mesh has a different set of "mesh coordinates"
@@ -1991,7 +2020,6 @@ class QuadMesh(Collection):
1991
2020
vertex at mesh coordinates (0, 0), then the one at (0, 1), then at (0, 2)
1992
2021
.. (0, meshWidth), (1, 0), (1, 1), and so on.
1993
2022
1994
- *shading* may be 'flat', or 'gouraud'
1995
2023
"""
1996
2024
def __init__ (self , * args , ** kwargs ):
1997
2025
# signature deprecation since="3.5": Change to new signature after the
@@ -2020,7 +2048,7 @@ def __init__(self, *args, **kwargs):
2020
2048
_api .warn_deprecated (
2021
2049
"3.5" ,
2022
2050
message = "This usage of Quadmesh is deprecated: Parameters "
2023
- "meshWidth and meshHights will be removed; "
2051
+ "meshWidth and meshHeights will be removed; "
2024
2052
"coordinates must be 2D; all parameters except "
2025
2053
"coordinates will be keyword-only." )
2026
2054
coords = np .asarray (coords , np .float64 ).reshape ((h + 1 , w + 1 , 2 ))
0 commit comments