Skip to content

Commit 092f833

Browse files
authored
Merge pull request #21963 from anntzer/dpc
Clarify current behavior of draw_path_collection.
2 parents be35409 + 2fd670f commit 092f833

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,15 @@ def draw_path_collection(self, gc, master_transform, paths, all_transforms,
224224
linewidths, linestyles, antialiaseds, urls,
225225
offset_position):
226226
"""
227-
Draw a collection of paths selecting drawing properties from
228-
the lists *facecolors*, *edgecolors*, *linewidths*,
229-
*linestyles* and *antialiaseds*. *offsets* is a list of
230-
offsets to apply to each of the paths. The offsets in
231-
*offsets* are first transformed by *offsetTrans* before being
232-
applied.
227+
Draw a collection of *paths*.
228+
229+
Each path is first transformed by the corresponding entry
230+
in *all_transforms* (a list of (3, 3) matrices) and then by
231+
*master_transform*. They are then translated by the corresponding
232+
entry in *offsets*, which has been first transformed by *offsetTrans*.
233+
234+
*facecolors*, *edgecolors*, *linewidths*, *linestyles*, and
235+
*antialiased* are lists that set the corresponding properties.
233236
234237
*offset_position* is unused now, but the argument is kept for
235238
backwards compatibility.

0 commit comments

Comments
 (0)