Skip to content

Don't switch relationship of ymin/ymax during stacking #3673

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

Merged
merged 3 commits into from
Dec 17, 2019

Conversation

thomasp85
Copy link
Member

This PR addresses the problem uncovered in #3529 where position_stack changes the relation of ymin/ymax during stacking, making it difficult to recover the correct line to draw. It is less drastic than what #3607 proposes, and simply ensure minimal changes to the incoming data

@thomasp85 thomasp85 added this to the ggplot2 3.3.0 milestone Dec 16, 2019
Copy link
Member

@yutannihilation yutannihilation left a comment

Choose a reason for hiding this comment

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

Thanks! Looks good to me.

Could you add some short comment that we need max_is_lower to preserve the relationship, so that we won't easily hit the same bug again?

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