Skip to content

Commit 4849c7e

Browse files
committed
iterate over values
1 parent f6558ae commit 4849c7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plotly/tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,8 +1177,8 @@ def _pad(s, cell_len=cell_len):
11771177
for index in range(len(x_dom)):
11781178
subtitle_pos_x.append(((x_dom[index][1]) - (x_dom[index][0])) / 2 +
11791179
x_dom[index][0])
1180-
for index in range(len(y_dom)):
1181-
subtitle_pos_y.append(y_dom[index][1])
1180+
for y_end in y_dom: # y_dom --> y_domains above ?
1181+
subtitle_pos_y.append(y_end[1])
11821182
# If shared_axes is True the domin of each subplot is not returned so the
11831183
# title position must be calculated for each subplot
11841184
else:

0 commit comments

Comments
 (0)