Skip to content

floating point math bug in make_subplots #1121

Closed
@chubukov

Description

@chubukov
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions