Skip to content

Using matches when opposite axis is categorical causes error #3560

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
nicolaskruchten opened this issue Feb 21, 2019 · 8 comments · Fixed by #3565
Closed

Using matches when opposite axis is categorical causes error #3560

nicolaskruchten opened this issue Feb 21, 2019 · 8 comments · Fixed by #3565
Assignees
Labels
bug something broken

Comments

@nicolaskruchten
Copy link
Contributor

This pen shows the problem: https://codepen.io/nicolaskruchten/pen/gqyyVL?editors=0010

@nicolaskruchten nicolaskruchten changed the title Using matches with grid causes error Using matches with grid and bars causes error Feb 21, 2019
@nicolaskruchten nicolaskruchten changed the title Using matches with grid and bars causes error Using matches with grid causes error Feb 21, 2019
@nicolaskruchten nicolaskruchten changed the title Using matches with grid causes error Using matches on Y with grid causes error Feb 21, 2019
@nicolaskruchten
Copy link
Contributor Author

Note that this only happens with the x axis AFAICT... doing the same trick with x doesn't fail.

@nicolaskruchten
Copy link
Contributor Author

Hmm doesn't even seem related to grid per se.

@nicolaskruchten nicolaskruchten changed the title Using matches on Y with grid causes error Using matches on Y causes error Feb 21, 2019
@nicolaskruchten
Copy link
Contributor Author

nicolaskruchten commented Feb 21, 2019

Here's the same problem with scatter, no grid, on Y: https://codepen.io/nicolaskruchten/pen/jdRgNr?editors=0010

@nicolaskruchten nicolaskruchten changed the title Using matches on Y causes error Using matches when opposite axis is categorical causes error Feb 21, 2019
@nicolaskruchten
Copy link
Contributor Author

OK so actually it's not just y ... same thing happens on x if I swap everything! Basically if the non-shared axis is categorical it doesn't work, but if both are linear it does, in both permutations! See https://codepen.io/nicolaskruchten/pen/LqvoNV?editors=0010

@etpinard
Copy link
Contributor

That's the expected behaviour. Matching axes only work on axes of the same type.

@etpinard etpinard self-assigned this Feb 21, 2019
@etpinard etpinard added the bug something broken label Feb 21, 2019
@nicolaskruchten
Copy link
Contributor Author

No... in this case I'm matching continuous to continuous, but the OTHER axis is categorical.

@nicolaskruchten
Copy link
Contributor Author

i.e. both ys are continuous, and the x is categorical, and I'm trying to match y2 to y.

@etpinard
Copy link
Contributor

Ah I see. On it!

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

Successfully merging a pull request may close this issue.

2 participants