Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Correctly handle units in ax{v,h}line #10143

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

Closed
dstansby wants to merge 1 commit into matplotlib:master from dstansby:axline-units

Conversation

Copy link
Member

@dstansby dstansby commented Jan 1, 2018

This makes axvline and axhline work with units. I have checked this with astropy units (needs astropy/astropy#7037), but I'm not sure how to check it with other unit systems.

Copy link
Member

This does not seem right as it is attaching units to the user input. It does not currently work if you pass in xmin/ymin with units (ex dates)?

Copy link
Member

@tacaswell tacaswell left a comment

Choose a reason for hiding this comment

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

In the case of axhline the xmin/xmax should be in axis fraction which I do not understand why this should have units attached to it.

I suspect this bug should be fixed a different way.

Copy link
Member

jklymak commented Jan 2, 2018

@dstansby can you give us a non-astropy example that doesn't work? Maybe w/ dates as that is a readilly usable units for the rest of us...

Copy link
Member Author

dstansby commented Jan 2, 2018

Yeah, sorry, I've had my head buried in astropy units recently, so this approach doesn't work generally.

@dstansby dstansby deleted the axline-units branch January 2, 2018 20:53
@QuLogic QuLogic modified the milestones: needs sorting, v2.2.0 Feb 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@tacaswell tacaswell tacaswell requested changes

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /