@@ -205,7 +205,19 @@ class TriMesh(Collection):
205205 @staticmethod
206206 def convert_mesh_to_paths (tri : Triangulation ) -> list [Path ]: ...
207207
208- class QuadMesh (Collection ):
208+ class _MeshData :
209+ def __init__ (
210+ self ,
211+ coordinates : ArrayLike ,
212+ * ,
213+ shading : Literal ["flat" , "gouraud" ] = ...,
214+ ) -> None : ...
215+ def set_array (self , A : ArrayLike | None ) -> None : ...
216+ def get_coordinates (self ) -> ArrayLike : ...
217+ def get_facecolor (self ) -> ColorType | Sequence [ColorType ]: ...
218+ def get_edgecolor (self ) -> ColorType | Sequence [ColorType ]: ...
219+
220+ class QuadMesh (_MeshData , Collection ):
209221 def __init__ (
210222 self ,
211223 coordinates : ArrayLike ,
@@ -217,7 +229,14 @@ class QuadMesh(Collection):
217229 def get_paths (self ) -> list [Path ]: ...
218230 # Parent class has an argument, perhaps add a noop arg?
219231 def set_paths (self ) -> None : ... # type: ignore[override]
220- def set_array (self , A : ArrayLike | None ) -> None : ...
221232 def get_datalim (self , transData : transforms .Transform ) -> transforms .Bbox : ...
222- def get_coordinates (self ) -> ArrayLike : ...
223233 def get_cursor_data (self , event : MouseEvent ) -> float : ...
234+
235+ class PolyQuadMesh (_MeshData , PolyCollection ):
236+ def __init__ (
237+ self ,
238+ coordinates : ArrayLike ,
239+ ** kwargs
240+ ) -> None : ...
241+ def get_facecolor (self ) -> ColorType | Sequence [ColorType ]: ...
242+ def get_edgecolor (self ) -> ColorType | Sequence [ColorType ]: ...
0 commit comments