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

Open
jackh726 opened this issue Sep 13, 2019 · 1 comment
Open

Inverted axes matching #4187

jackh726 opened this issue Sep 13, 2019 · 1 comment

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

@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.

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

No branches or pull requests

3 participants