-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Support range bounds for categorical axis #13830
Milestone
Comments
4 tasks
Is this just about stopping excessive zoom out? The issue with providing "bounds" is that categorical factors do not have any intrinsic order so "start" and "end" do not make sense. Maybe there is another way to suppress excess zoom though, if that is the concern. |
Yes, the particular use-case is about limiting the navigable extents |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem description
We can set the navigable bounds of a continuous axis, e.g.
p.x_range.bounds = (10, 50)
but not a categorical axis, e.g.p.y_range.bounds = ("b", "f")
. If the categorical axis ticks are unique, maybe they can be supported in this way?Feature description
Potential alternatives
Maybe we could define a mapping between categorical and continuous ticks and then use that instead to set the bounds
factors = [("a", 1), ("b", 2), ...]
Additional information
No response
The text was updated successfully, but these errors were encountered: