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

Strange behaviour when hiding a trace in a plot with many filling traces #2380

Closed
ChristofferHS opened this issue Feb 17, 2018 · 5 comments
Closed
Labels
bug something broken

Comments

@ChristofferHS
Copy link

If you have around 10 traces or more in a plot that fill to a neighbour, clicking the legend to hide an individual trace can lead to strange behaviour from filled areas.

It appears that, generally, clicking the legend entry for a trace (the uppermost non-filling trace in the CodePen example below) that does not fill to a neighbour and whose hiding makes the plot rescale, will make a filled area get an incorrect shape. If you zoom in or out, the filled area gets its correct shape back. If you manually adjust the zoom level before you click, the issue does not seem to occur.

Another issue, possibly unrelated: if you click filling trace 7 or 2 in the CodePen example below, the filled area that should have expanded instead becomes empty. Manually setting the zoom level does not prevent this issue from occurring. However, here as well, the plot is corrected upon zooming; and a similar amount of traces seems necessary to trigger the bug.

CodePen

@etpinard
Copy link
Contributor

etpinard commented Feb 19, 2018

Thanks for the report(s).

@etpinard etpinard added the bug something broken label Feb 19, 2018
@alexcjohnson
Copy link
Collaborator

Possibly a variant of (solved issue) #2271?

@etpinard
Copy link
Contributor

Perhaps fixed via #3005

@ChristofferHS
Copy link
Author

I seem unable to reproduce the issues on the CodePen, but #3005 isn't effective already, is it? Was it fixed by some other code?

At any rate, it looks like the issue is resolved.

@alexcjohnson
Copy link
Collaborator

Yep, seems to have been fixed between 1.40 and 1.41. I suspect either #2978 or #2960.

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

No branches or pull requests

3 participants