Skip to content

Fix mo.ui.matplotlib pixel bounds calcuation#8419

Merged
akshayka merged 1 commit intomainfrom
aka/fix-ui-matplotlib-bounds
Feb 22, 2026
Merged

Fix mo.ui.matplotlib pixel bounds calcuation#8419
akshayka merged 1 commit intomainfrom
aka/fix-ui-matplotlib-bounds

Conversation

@akshayka
Copy link
Contributor

This commit fixes a bug in which the axes bounds were computed before figure layout; figure layout can change axes bounds, so we were working with incorrect representation bounds.

This change also fixes a bug in which users were previously able to select outside the plot area.

Without this fix, selections were in many cases subtly incorrect, and in other cases obviously incorrect (e.g., selecting data outside of the plot area, where no data should exist).

This commit fixes a bug in which the axes bounds were computed
before figure layout; figure layout can change axes bounds, so we
were working with incorrect representation bounds.

This change also fixes a bug in which users were previously able to
select outside the plot area.
@vercel
Copy link

vercel bot commented Feb 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marimo-docs Ready Ready Preview, Comment Feb 22, 2026 4:56am

Request Review

@akshayka akshayka removed the request for review from Light2Dark February 22, 2026 04:56
@akshayka akshayka added the bug Something isn't working label Feb 22, 2026
@akshayka akshayka merged commit dfbe9f4 into main Feb 22, 2026
34 of 45 checks passed
@akshayka akshayka deleted the aka/fix-ui-matplotlib-bounds branch February 22, 2026 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

1 participant