Skip to content

Commit af9cb17

Browse files
committed
ensure hor and ver spacing is always float
1 parent 9b9b578 commit af9cb17

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plotly/figure_factory/_bullet.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ def _bullet(df, markers, measures, ranges, subtitles, titles, orientation,
1818
num_of_lanes = len(df)
1919
num_of_rows = num_of_lanes if orientation == 'h' else 1
2020
num_of_cols = 1 if orientation == 'h' else num_of_lanes
21-
if not horizontal_spacing and not vertical_spacing:
22-
horizontal_spacing = vertical_spacing = 1./num_of_lanes
21+
if not horizontal_spacing:
22+
horizontal_spacing = 1./num_of_lanes
23+
if not vertical_spacing:
24+
vertical_spacing = 1./num_of_lanes
2325
fig = plotly.tools.make_subplots(
2426
num_of_rows, num_of_cols, print_grid=False,
2527
horizontal_spacing=horizontal_spacing,

0 commit comments

Comments
 (0)