_iter_collection(self, gc, master_transform, all_transforms, path_ids, offsets, offsetTrans, facecolors, edgecolors, linewidths, linestyles, antialiaseds, urls, offset_position)
This method yields all of the path, offset and graphics context combinations to draw the path collection. The caller should already have looped over the results of _iter_collection_raw_paths
to draw this collection.
The arguments should be the same as that passed into draw_path_collection
, with the exception of path_ids, which is a list of arbitrary objects that the backend will use to reference one of the paths created in the _iter_collection_raw_paths
stage.
Each yielded result is of the form:
xo, yo, path_id, gc, rgbFace
where xo, yo is an offset; path_id is one of the elements of path_ids; gc is a graphics context and rgbFace is a color to use for filling the path.
Helper method (along with _iter_collection_raw_paths
) to implement draw_path_collection
in a space-efficient manner.
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them