Skip to content

Commit de96f4e

Browse files
authored
Merge pull request #19452 from anntzer/dmd
Fix the docstring of draw_markers to match the actual behavior.
2 parents 6468994 + 0cba479 commit de96f4e

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,7 @@ def draw_path(self, gc, path, transform, rgbFace=None):
193193
def draw_markers(self, gc, marker_path, marker_trans, path,
194194
trans, rgbFace=None):
195195
"""
196-
Draw a marker at each of the vertices in path.
197-
198-
This includes all vertices, including control points on curves.
199-
To avoid that behavior, those vertices should be removed before
200-
calling this function.
196+
Draw a marker at each of *path*'s vertices (excluding control points).
201197
202198
This provides a fallback implementation of draw_markers that
203199
makes multiple calls to :meth:`draw_path`. Some backends may
@@ -208,13 +204,10 @@ def draw_markers(self, gc, marker_path, marker_trans, path,
208204
----------
209205
gc : `.GraphicsContextBase`
210206
The graphics context.
211-
212207
marker_trans : `matplotlib.transforms.Transform`
213208
An affine transform applied to the marker.
214-
215209
trans : `matplotlib.transforms.Transform`
216210
An affine transform applied to the path.
217-
218211
"""
219212
for vertices, codes in path.iter_segments(trans, simplify=False):
220213
if len(vertices):

0 commit comments

Comments
 (0)