@@ -205,7 +205,19 @@ class TriMesh(Collection):
205
205
@staticmethod
206
206
def convert_mesh_to_paths (tri : Triangulation ) -> list [Path ]: ...
207
207
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 ):
209
221
def __init__ (
210
222
self ,
211
223
coordinates : ArrayLike ,
@@ -217,7 +229,14 @@ class QuadMesh(Collection):
217
229
def get_paths (self ) -> list [Path ]: ...
218
230
# Parent class has an argument, perhaps add a noop arg?
219
231
def set_paths (self ) -> None : ... # type: ignore[override]
220
- def set_array (self , A : ArrayLike | None ) -> None : ...
221
232
def get_datalim (self , transData : transforms .Transform ) -> transforms .Bbox : ...
222
- def get_coordinates (self ) -> ArrayLike : ...
223
233
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