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

scattergl calculates wrong error bar value if y value is a string #2600

Closed
slioxo opened this issue May 2, 2018 · 1 comment · Fixed by #2620
Closed

scattergl calculates wrong error bar value if y value is a string #2600

slioxo opened this issue May 2, 2018 · 1 comment · Fixed by #2620
Labels
bug something broken

Comments

@slioxo
Copy link

slioxo commented May 2, 2018

I stumbled upon this problem today. As you can see here, when the y-value is given as string and the error value as float, the error value is presumably parsed as string and then added using the "+" operator, which results in string concatenation and therefore a wrong value.

For example, if your y-value is 2 and the error value is 2 then the error bar should be drawn up to 4. When y is a string though, the error bar is drawn up to 22.

When using 'scatter' instead of 'scattergl', this bug does not occur.

@alexcjohnson
Copy link
Collaborator

Also it gets autorange even more wrong, and the errorbars disappear on redraw (the latter also reported in #2450)

Thanks for the report!

@alexcjohnson alexcjohnson added the bug something broken label May 2, 2018
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