-
Notifications
You must be signed in to change notification settings - Fork 19
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
Figure.axvline(x) coordinates are wrong
#45
Comments
The following patch fixes the issue for me, but I am unsure if it breaks something else
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Figure.axvline(x, ...)
requires0 <= x <= 1
, and it seems reasonable to assume that if the x_limits of the figure arex1, x2
the reference coordinate x is mapped tox1 + (x2 - x1) * x
. In this settingx=0
corresponds tox1
andx=1
corresponds tox2
.In reality it seems that
x=0
corresponds to the middle vertical(x1 + x2) / 2
. So-1
would correspond to the left boundary, but negative reference coordinates are forbidden!And likewise
The text was updated successfully, but these errors were encountered: