Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 910fdae

Browse filesBrowse files
NelleVdmcdougall
authored andcommitted
FIX - travis-ci is failing
1 parent 445e568 commit 910fdae
Copy full SHA for 910fdae

File tree

Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed

‎lib/matplotlib/tight_layout.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tight_layout.py
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,10 @@ def auto_adjust_subplotpars(fig, renderer,
191191
top=1 - margin_top)
192192

193193
if cols > 1:
194-
hspace_strip = hspaces[i * (cols + 1) + 1:(i + 1) * (cols + 1) - 1]
195-
hspace = max([sum(s) for i in range(rows) for s in hspace_strip])
194+
hspace = max([sum(s)
195+
for i in range(rows)
196+
for s
197+
in hspaces[i * (cols + 1) + 1:(i + 1) * (cols + 1) - 1]])
196198
hspace += hpad_inches / fig_width_inch
197199
h_axes = ((1 - margin_right - margin_left) -
198200
hspace * (cols - 1)) / cols

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.