Skip to content

Commit d328fc9

Browse files
committed
Add reference to closepoly snapping issue.
1 parent 8c2ca35 commit d328fc9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/_util.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,10 @@ void restore_init_matrix(cairo_t* cr)
286286
//
287287
// TODO: Path clipping in the general case (with codes present), and snapping
288288
// in the presence of CLOSEPOLY (likely the correct solution is to preload the
289-
// whole path and adjust for snapping). Fortunately, in the most common case
290-
// where everything is axis-aligned, the first and last points are already
291-
// snapped due to being aligned with the second and next-to-last points
292-
// already, so the bug is hidden.
289+
// whole path and adjust for snapping), matplotlib#30576. Fortunately, in the
290+
// most common case where everything is axis-aligned, the first and last points
291+
// are already snapped due to being aligned with the second and next-to-last
292+
// points already, so the bug is hidden.
293293
// NOTE: Matplotlib also *rounds* the linewidth in some cases (see
294294
// RendererAgg::_draw_path), which helps with snappiness. We do not provide
295295
// this behavior; instead, one should set the default linewidths appropriately

0 commit comments

Comments
 (0)