Skip to content

Commit 7120bbc

Browse files
committed
Fix Agg clipping
Addresses the slowness mentioned in matplotlib#5016
1 parent b7ef642 commit 7120bbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_backend_agg.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ RendererAgg::draw_path(GCAgg &gc, PathIterator &path, agg::trans_affine &trans,
479479

480480
trans *= agg::trans_affine_scaling(1.0, -1.0);
481481
trans *= agg::trans_affine_translation(0.0, (double)height);
482-
bool clip = !face.first && gc.has_hatchpath() && !path.has_curves();
482+
bool clip = !face.first && !gc.has_hatchpath() && !path.has_curves();
483483
bool simplify = path.should_simplify() && clip;
484484
double snapping_linewidth = points_to_pixels(gc.linewidth);
485485
if (gc.color.a == 0.0) {

0 commit comments

Comments
 (0)