Skip to content

Do not flip eagerly when both axis are discrete like #3763

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

Conversation

yutannihilation
Copy link
Member

Fix #3761

Currently, we try to make a precise guess in has_flipped_aes(), but it seems the guess goes wrong in some cases when both axis are discrete like. I don't know what the proper fix would be, but I think it's rather safe to stay unflipped when we are not fully sure it's flippable, considering we want to avoid introducing some big change to the current RC branch.

@yutannihilation
Copy link
Member Author

@thomasp85 PTAL after rstudio::conf. Sorry for bothering you....

Copy link
Member

@thomasp85 thomasp85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a good pragmatic solution. I did not anticipate the integer representation of dates when I wrote this

@yutannihilation
Copy link
Member Author

Thanks. Yeah, datetime scales tend to slip our mind... It cannot be perfect to guess how "descrete-ish" the scale is only from the internal representation, so I vaguely feel we might face more tricky cases where we want the scale information. But, let's consider it when we actually see some issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants