We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 970f304 commit 5a0535dCopy full SHA for 5a0535d
plotly/tools.py
@@ -1177,11 +1177,10 @@ def _pad(s, cell_len=cell_len):
1177
y_dom = list_of_domains[1::2]
1178
subtitle_pos_x = []
1179
subtitle_pos_y = []
1180
- for index in range(len(x_dom)):
1181
- subtitle_pos_x.append(((x_dom[index][1]) - (x_dom[index][0])) / 2 +
1182
- x_dom[index][0])
1183
- for y_end in y_dom: # y_dom --> y_domains above ?
1184
- subtitle_pos_y.append(y_end[1])
+ for x_domains in x_dom:
+ subtitle_pos_x.append(sum(x_domains) / 2)
+ for y_domains in y_dom:
+ subtitle_pos_y.append(y_domains[1])
1185
# If shared_axes is True the domin of each subplot is not returned so the
1186
# title position must be calculated for each subplot
1187
else:
0 commit comments