Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

Fix lasso selection rendering for self-intersecting paths (#8378)

Trevor Manz0232327d122d
diff --git a/frontend/src/plugins/impl/matplotlib/matplotlib-renderer.ts b/frontend/src/plugins/impl/matplotlib/matplotlib-renderer.ts
index 8655a92a9c..2d2f5ccc25 100644
--- a/frontend/src/plugins/impl/matplotlib/matplotlib-renderer.ts
+++ b/frontend/src/plugins/impl/matplotlib/matplotlib-renderer.ts
@@ -427,7 +427,7 @@ export class MatplotlibRenderer {
ctx.save();
ctx.fillStyle = s.selectionColor;
ctx.globalAlpha = s.selectionOpacity;
- ctx.fill();
+ ctx.fill("evenodd");
ctx.restore();
ctx.strokeStyle = s.selectionColor;