Skip to content

Inverted axes matching #4187

@jackh726

Description

@jackh726

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions