Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bd2d58f

Browse files
committed
STY: fix bool conventions and whitespace
1 parent cd5a6d6 commit bd2d58f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/figure.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1638,7 +1638,7 @@ def _do_layout(gs, layout, unique_ids, nested):
16381638
start_row, start_col = np.min(indx, axis=0)
16391639
end_row, end_col = np.max(indx, axis=0) + 1
16401640
slc = (slice(start_row, end_row), slice(start_col, end_col))
1641-
if not np.all(covered[slc] == False):
1641+
if np.any(covered[slc]):
16421642
raise ValueError
16431643
covered[slc] = True
16441644
if isinstance(name, str):
@@ -1653,16 +1653,16 @@ def _do_layout(gs, layout, unique_ids, nested):
16531653
layout = np.asarray(layout)
16541654
rows, cols = layout.shape
16551655
gs_n = GridSpecFromSubplotSpec(rows, cols, gs[j, k])
1656-
nested_output = _do_layout(gs_n, layout, *_process_layout(layout))
1656+
nested_output = _do_layout(gs_n, layout,
1657+
*_process_layout(layout))
16571658

16581659
output.update(nested_output)
16591660
return output
16601661

16611662
layout = np.asarray(layout)
16621663
rows, cols = layout.shape
16631664
gs = GridSpec(rows, cols, figure=self, **gridspec_kw)
1664-
return _do_layout(gs, layout, *_process_layout(layout))
1665-
1665+
return _do_layout(gs, layout, *_process_layout(layout))
16661666

16671667
def delaxes(self, ax):
16681668
"""

0 commit comments

Comments
 (0)