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

make_subplots error message when spacing is impossible #2556

Closed
nicolaskruchten opened this issue Jun 9, 2020 · 0 comments · Fixed by #2897
Closed

make_subplots error message when spacing is impossible #2556

nicolaskruchten opened this issue Jun 9, 2020 · 0 comments · Fixed by #2897
Assignees
Milestone

Comments

@nicolaskruchten
Copy link
Contributor

Trivial example... no positive row-height can satisfy 3 rows with two 0.51-height gaps between them.

from plotly.subplots import make_subplots
fig = make_subplots(rows=3, vertical_spacing=0.51)

The error message is:

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

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

but it should be something more akin to "no way to satisfy vertical_spacing and rows simultaneously"

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

Successfully merging a pull request may close this issue.

2 participants