Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 44c209a

Browse files
committed
Clarify current behavior of draw_path_collection.
Note that the definition of "corresponding entry" is intentionally left a bit vague, because the current behavior is in fact not consistent between backends and will need to be harmonized first. The goal of this change here is mostly to describe the order in which `master_transform`, `all_transforms`, and `offsetTrans` are applied.
1 parent cb483fc commit 44c209a

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
@@ -223,12 +223,15 @@ def draw_path_collection(self, gc, master_transform, paths, all_transforms,
223223
linewidths, linestyles, antialiaseds, urls,
224224
offset_position):
225225
"""
226-
Draw a collection of paths selecting drawing properties from
227-
the lists *facecolors*, *edgecolors*, *linewidths*,
228-
*linestyles* and *antialiaseds*. *offsets* is a list of
229-
offsets to apply to each of the paths. The offsets in
230-
*offsets* are first transformed by *offsetTrans* before being
231-
applied.
226+
Draw a collection of paths.
227+
228+
Each paths is first transformed by the corresponding entry
229+
in *all_transforms* (a list of (3, 3) matrices) and then by
230+
*master_transform*. They are then translated by the corresponding
231+
entry in *offsets*, which has been first transformed by *offsetTrans*.
232+
233+
*facecolors*, *edgecolors*, *linewidths*, *linestules*, and
234+
*antialiased* are lists that set the corresponding properties.
232235
233236
*offset_position* is unused now, but the argument is kept for
234237
backwards compatibility.

0 commit comments

Comments
 (0)