Skip to content

Commit 85fa3af

Browse files
Python2 divide gets me every time
1 parent 46b480a commit 85fa3af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/python/plotly/plotly/subplots.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ def _check_hv_spacing(dimsize, spacing, name, dimname):
535535
raise ValueError("%s spacing must be between 0 and 1." % (name,))
536536
if dimsize <= 1:
537537
return
538-
max_spacing = 1 / (dimsize - 1)
538+
max_spacing = 1.0 / float(dimsize - 1)
539539
if spacing > max_spacing:
540540
raise ValueError(
541541
"%s spacing cannot be greater than (1 / (%s - 1)) = %f."

0 commit comments

Comments
 (0)