Skip to content
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

Make geom_hline and geom_vline consistent with documentation and with R's ggplot2 #622

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MaxPMagee
Copy link

This change fixes #597 and #545, both to match the docs, and to make it more consistent with ggplot2 (it uses 'yintercept' and 'xintercept', which is why some docs do too), while maintaining backward compatibility with those who have used the 'x' or 'y' param, since that's all you could do to get it working previously.

Also toss a ValueError if neither x/y nor xintercept/yintercept are set when plotting (instead of ambiguous and unhelpful type comparison exception).

Looks like that makes this doc incorrect, though. Will fix that one next.

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.

geom_hline() does not work: TypeError: unorderable types: float() > NoneType()
2 participants