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
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?
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.
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: