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

Inverted axes matching #4187

Closed
jackh726 opened this issue Sep 13, 2019 · 2 comments
Closed

Inverted axes matching #4187

jackh726 opened this issue Sep 13, 2019 · 2 comments
Labels
feature something new

Comments

@jackh726
Copy link

This was previously discussed in #1549 (comment)

One more question: What if you want two axes to match but inverted? I'm thinking of things like x/y match but you want the diagonal to go NW-to-SE... or the population pyramid, with male on one side and female on the other, which you can do with a single axis and positive/negative data, but that requires fudging the data (negating one set) and with two axes you could put the labels in the middle without overlapping the data... Perhaps we could support this with scaleratio: -1?

I'm finding myself wanting this feature, but as far as I can tell, it isn't implemented yet. Specifically, I need it for x/y match with the NW-to-SE diagonal (for zooming onto squares (not physical, but data-based) on the diagonal). As noted, I can fudge the data to be on the NW/SE diagonal, but zooming isn't correct.

As noted above, one possible way to support this would be scaleratio: -1. Would that physically constrain the axes too? If so, I think that's less than ideal. One other option would to maybe add a matchesreversed option, which is identical to matches, except inverted. Or allow specifying an axes to matches like x-reversed (or similar).

Related, but not the same: #3539

@etpinard etpinard added the feature something new label Sep 16, 2019
@FRYoussef
Copy link

Hi, any progress with this?

I have two scatter plots, one of them with an inverted axis.
I need to match both y axes in order to share the same range between them, but 'matches' property doesn't consider whether you reverse an axis.

@gvwilson
Copy link
Contributor

Hi - we are trying to tidy up the stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for several years, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. Thanks for your help - @gvwilson

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

No branches or pull requests

4 participants