You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 > 0.
Should be cleaner logic and faster computation.
Proposed fix
Implement and update Axes._point_in_data_domain to use it.
Hi @scottshambaugh! I would like work on this fix if it's still open.
I have implemented val_in_range in ScaleBase with a fallback and added optimized overrides in LinearScale, LogScale and LogitScale. I have also refactored _point_in_data_domain to use this new change. I'll open a draft PR shortly. I would appreciate any guidance regarding documentation and docstring updates. Thank you.
Activity
[-][MNT]: Scale.val_in_range method[/-][+][MNT]: Scale `val_in_range` method[/+]null-dreams commentedon Mar 14, 2026
Hi @scottshambaugh! I would like work on this fix if it's still open.
I have implemented
val_in_rangeinScaleBasewith a fallback and added optimized overrides inLinearScale,LogScaleandLogitScale. I have also refactored_point_in_data_domainto use this new change. I'll open a draft PR shortly. I would appreciate any guidance regarding documentation and docstring updates. Thank you.