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

Skip to content

Commit b7b3272

Browse files
leejjoonmdboom
authored andcommitted
patheffect.draw_path_collection work with mixed renderer.
1 parent 05bec2c commit b7b3272

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
2013-04-15 Added 'axes.xmargin' and 'axes.ymargin' to rpParams to set default
1717
margins on auto-scaleing. - TAC
1818

19+
2013-04-16 Added patheffect support for Line2D objects. -JJL
20+
1921
2013-03-19 Added support for passing `linestyle` kwarg to `step` so all `plot`
2022
kwargs are passed to the underlying `plot` call. -TAC
2123

lib/matplotlib/patheffects.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ def draw_path_collection(self, renderer,
7979
recommended to use those generators, so that changes to the
8080
behavior of :meth:`draw_path_collection` can be made globally.
8181
"""
82+
83+
if isinstance(renderer, MixedModeRenderer):
84+
renderer = renderer._renderer
85+
8286
path_ids = []
8387
for path, transform in renderer._iter_collection_raw_paths(
8488
master_transform, paths, all_transforms):

0 commit comments

Comments
 (0)