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
Visual tests fail with scales 1.0 #2824
Comments
So I expect both the failures above come from our fix to #2281 in r-lib/scales#161 -- the behavior is as expected for zero range discrete scales and a little surprising for the continuous scale, I'll look into both to confirm. Presumably because of the same or similar reason why visual tests weren't running on travis, tests on my system weren't showing any failures at all until I updated my version of vdiffr this morning. Now that I can actually see the failures, I'll look them over and get a sense of what are expected changes and if there is anything to be concerned about. |
It seems to me that the result for continuous scales is as expected given the change in |
Yep, it's behaving as expected by the change in code, I simply failed to consider the continuous scale defaults when making the change. I still think it's appropriate to have the mul and add parameters affect zero_range scales but @hadley should probably have a final say on whether this magnitude of a change in default behavior is appropriate. After review, scales PR161 was the source of almost all new failures. The rest were caused by changes to |
Yeah, I think it makes a lot of sense - the previous values were pure magic, and now they arise from the scale expansion parameters. |
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
I updated to scales 1.0 and now numerous visual tests fail. I could just accept them but I think it would be good if somebody who has worked on scales could look them over to make sure it's all good. Most noticeable are substantial changes in default data ranges for data sets with only a single x or y value (see screenshots).
Before:
After:
Before:
After:
The text was updated successfully, but these errors were encountered: