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

floating point math bug in make_subplots #1121

Closed
chubukov opened this issue Aug 19, 2018 · 2 comments
Closed

floating point math bug in make_subplots #1121

chubukov opened this issue Aug 19, 2018 · 2 comments

Comments

@chubukov
Copy link

import plotly as py
from plotly.tools import make_subplots
n=80
make_subplots(n,1)

<stacktrace snipped,>

ValueError:
Invalid value of type 'builtins.float' received for the 'domain[1]' property of layout.yaxis
Received value: 1.0000000000000004

The 'domain[1]' property is a number and may be specified as:
  - An int or float in the interval [0, 1]

plotly version 3.0.0rc11
happens with python 3.5.4 and python 3.6.3

curiously, n=100 works fine! But most other values >40 fail for me

@jonmmease
Copy link
Contributor

Hi @chubukov ,

I think you're hitting this issue: #1050

It was fixed in version 3.0.2. Could you please update and try again?

Thanks!

@chubukov
Copy link
Author

@jonmmease Yep, seems to be fixed. Thanks.

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

No branches or pull requests

2 participants