-
Notifications
You must be signed in to change notification settings - Fork 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
Discrete x/y scales reserve space for unused limits #1638
Comments
I've bisected it to 89893c7. |
Probably related to #1589 |
The goal was to fix #1542 - ie when you accidentally use a discrete scale with only continuous data. (You have to be able to use a mix of cont and disc so that jittering and similar work) |
I somehow missed that reference - sorry 'bout that |
It seems your change in Was the change supposed to do avoid drawing all breaks when numeric ranges were converted to discrete? |
Your guess is as good as mine. (But I don't think it was supposed to) |
Also is it intentional that continuous data on a discrete scale does not receives any expansion? In general can you explain the calls to |
I'm not sure I can - I've done some exploration recently and I think multiplicative looks better for both. I don't remember my original reasoning |
Makes sense - additive is very dependent on the number of levels. But no matter what looks best, shouldn't it honor what is passed in through the |
The goal was always to get an aesthetic pleasing amount of space between the data and the axes. In an ideal world, that would be the same for both x and y axes, but there's no way to do that. You're right that we should respect both options - I'm not sure why I made that change. For this problem, the fix is probably straightforward - what we need to make sure to capture is a few different motivating examples of mixing continuous and discrete values on a discrete axis. |
I'll cook up a PR with a potential fix and let you stress test it as you seems to have a better idea about what is the intended functionality... (coding in the blind FTW :-) |
Fixes #1638 * Use get_limit in call to dimension
For example, from the docs
In the 0.9.3.1 docs, it looks like this:
The text was updated successfully, but these errors were encountered: