Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/matplotlib/lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,9 @@ def draw(self, renderer):
self.get_markerfacecolor(), "none")):
ec_rgba = ec_rgba[:3] + (fc_rgba[3],)
gc.set_foreground(ec_rgba, isRGBA=True)
if self.get_sketch_params() is not None:
scale, length, randomness = self.get_sketch_params()
gc.set_sketch_params(scale/2, length/2, 2*randomness)

marker = self._marker

Expand Down Expand Up @@ -836,7 +839,6 @@ def draw(self, renderer):
else:
# Don't scale for pixels, and don't stroke them
marker_trans = marker_trans.scale(w)

renderer.draw_markers(gc, marker_path, marker_trans,
subsampled, affine.frozen(),
fc_rgba)
Expand Down
Binary file modified lib/matplotlib/tests/baseline_images/test_path/xkcd.pdf
Binary file not shown.
Binary file modified lib/matplotlib/tests/baseline_images/test_path/xkcd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading