Skip to content

Commit 67df281

Browse files
author
Phil Elson
committed
Merge pull request #723 from pelson/path_transform_cache
Caching the results of Transform.transform_path for non-affine transforms
2 parents 0a9e060 + a81545c commit 67df281

File tree

9 files changed

+807
-38
lines changed

9 files changed

+807
-38
lines changed

lib/matplotlib/backends/backend_svg.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -657,9 +657,9 @@ def draw_gouraud_triangle(self, gc, points, colors, trans):
657657

658658
writer.start(u'defs')
659659
for i in range(3):
660-
x1, y1 = points[i]
661-
x2, y2 = points[(i + 1) % 3]
662-
x3, y3 = points[(i + 2) % 3]
660+
x1, y1 = tpoints[i]
661+
x2, y2 = tpoints[(i + 1) % 3]
662+
x3, y3 = tpoints[(i + 2) % 3]
663663
c = colors[i][:]
664664

665665
if x2 == x3:
Binary file not shown.
Loading

0 commit comments

Comments
 (0)