Draw a quadmesh. The base (fallback) implementation converts the quadmesh to paths and then calls `draw_path_collection`.
(self, gc, master_transform, meshWidth, meshHeight,
coordinates, offsets, offsetTrans, facecolors,
antialiased, edgecolors)
| 259 | self.draw_path(gc0, path, transform, rgbFace) |
| 260 | |
| 261 | def draw_quad_mesh(self, gc, master_transform, meshWidth, meshHeight, |
| 262 | coordinates, offsets, offsetTrans, facecolors, |
| 263 | antialiased, edgecolors): |
| 264 | """ |
| 265 | Draw a quadmesh. |
| 266 | |
| 267 | The base (fallback) implementation converts the quadmesh to paths and |
| 268 | then calls `draw_path_collection`. |
| 269 | """ |
| 270 | |
| 271 | from matplotlib.collections import QuadMesh |
| 272 | paths = QuadMesh._convert_mesh_to_paths(coordinates) |
| 273 | |
| 274 | if edgecolors is None: |
| 275 | edgecolors = facecolors |
| 276 | linewidths = np.array([gc.get_linewidth()], float) |
| 277 | |
| 278 | return self.draw_path_collection( |
| 279 | gc, master_transform, paths, [], offsets, offsetTrans, facecolors, |
| 280 | edgecolors, linewidths, [], [antialiased], [None], 'screen') |
| 281 | |
| 282 | def draw_gouraud_triangles(self, gc, triangles_array, colors_array, |
| 283 | transform): |
no test coverage detected