MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / draw_quad_mesh

Method draw_quad_mesh

lib/matplotlib/backend_bases.py:261–280  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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):

Callers 1

drawMethod · 0.80

Calls 3

draw_path_collectionMethod · 0.95
get_linewidthMethod · 0.45

Tested by

no test coverage detected