Skip to content

[ENH]: secondary_x/yaxis accept transform argument #25119

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
jklymak opened this issue Jan 31, 2023 · 0 comments · Fixed by #25224
Closed

[ENH]: secondary_x/yaxis accept transform argument #25119

jklymak opened this issue Jan 31, 2023 · 0 comments · Fixed by #25224
Milestone

Comments

@jklymak
Copy link
Member

jklymak commented Jan 31, 2023

Problem

#25117 wanted to put an extra axes at y=0. It should be possible to pass ax.transData to secondary_xaxis so that the location variable is understood as data co-ordinates, not axes-relative co-ordinates.

Proposed solution

secondary_xaxis(0, transform=ax.transData) should put the secondary axes at y=0. Of course the default should be ax.transAxes for back-compatibility.

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

Successfully merging a pull request may close this issue.

2 participants