Skip to content

Commit 4e42686

Browse files
committed
Add comment
1 parent 73b7b7c commit 4e42686

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/matplotlib/collections.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,12 @@ def draw(self, renderer):
271271
from matplotlib.patheffects import PathEffectRenderer
272272
renderer = PathEffectRenderer(self.get_path_effects(), renderer)
273273

274+
# If the collection is made up of a single shape/color/stroke,
275+
# it can be rendered once and blitted multiple times, using
276+
# `draw_markers` rather than `draw_path_collection`. This is
277+
# *much* faster for Agg, and results in smaller file sizes in
278+
# PDF/SVG/PS.
279+
274280
trans = self.get_transforms()
275281
facecolors = self.get_facecolor()
276282
edgecolors = self.get_edgecolor()

0 commit comments

Comments
 (0)