Title: [MNT]: Scale `val_in_range` method · Issue #31286 · matplotlib/matplotlib · GitHub
Open Graph Title: [MNT]: Scale `val_in_range` method · Issue #31286 · matplotlib/matplotlib
X Title: [MNT]: Scale `val_in_range` method · Issue #31286 · matplotlib/matplotlib
Description: Summary From @timhoffm's comment: #31061 (comment) Should we grow a method Scale.val_in_range(val). This seems like a logically meaningful API. ScaleBase could implement this as a generic fallback via limit_range_for_scale to support exi...
Open Graph Description: Summary From @timhoffm's comment: #31061 (comment) Should we grow a method Scale.val_in_range(val). This seems like a logically meaningful API. ScaleBase could implement this as a generic fallback ...
X Description: Summary From @timhoffm's comment: #31061 (comment) Should we grow a method Scale.val_in_range(val). This seems like a logically meaningful API. ScaleBase could implement this as a generic fallb...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/31286
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[MNT]: Scale `val_in_range` method","articleBody":"### Summary\n\nFrom @timhoffm's comment: https://github.com/matplotlib/matplotlib/pull/31061#discussion_r2792029031\n\n\u003e Should we grow a method `Scale.val_in_range(val)`. This seems like a logically meaningful API. `ScaleBase` could implement this as a generic fallback via `limit_range_for_scale` to support existing third-party scales. But specific scales could implement their logic much more efficiently; e.g. `LinearScale` would just return `True`, and `LogScale` would return `val \u003e 0`.\n\nShould be cleaner logic and faster computation.\n\n### Proposed fix\n\nImplement and update `Axes._point_in_data_domain` to use it.","author":{"url":"https://github.com/scottshambaugh","@type":"Person","name":"scottshambaugh"},"datePublished":"2026-03-11T23:52:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/31286/matplotlib/issues/31286"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3758c528-61d4-ab36-b148-d1a98f51baf3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C424:2D3512:5B5E19:79C8FB:6A526952 |
| html-safe-nonce | 338f13a17e9abcf34698ded712d32000c64eddb14184bf30ba12d24f624305c3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDI0OjJEMzUxMjo1QjVFMTk6NzlDOEZCOjZBNTI2OTUyIiwidmlzaXRvcl9pZCI6IjM4NDg0MDczNjc0OTE0MTQzNTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e91110b575eed171fbbe68ec16deae26a584335d6b690d8a3d9fcfc81fc7d23b |
| hovercard-subject-tag | issue:4061295472 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/31286/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0eced865b5e9a579b8ff174d214017d7e5ec489ef8825c7b0c792c719f5b7cc5/matplotlib/matplotlib/issues/31286 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0eced865b5e9a579b8ff174d214017d7e5ec489ef8825c7b0c792c719f5b7cc5/matplotlib/matplotlib/issues/31286 |
| og:image:alt | Summary From @timhoffm's comment: #31061 (comment) Should we grow a method Scale.val_in_range(val). This seems like a logically meaningful API. ScaleBase could implement this as a generic fallback ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | scottshambaugh |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width