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

Skip to content

Commit 82486c5

Browse files
author
ShawnChen1996
committed
Update colorbar.py
should fix the pep8 failure
1 parent 9ac3c86 commit 82486c5

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

lib/matplotlib/colorbar.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,9 +1589,7 @@ def make_axes_gridspec(parent, *, location=None, orientation=None,
15891589
panchor = kw.pop('panchor', (1.0, 0.5))
15901590

15911591
# for shrinking
1592-
wh_ratios = [(1-anchor[1])*(1-shrink),
1593-
shrink,
1594-
anchor[1]*(1-shrink)]
1592+
wh_ratios = [(1-anchor[1])*(1-shrink), shrink, anchor[1]*(1-shrink)]
15951593

15961594
gs = parent.get_subplotspec().subgridspec(
15971595
1, 2, wspace=wh_space, width_ratios=[1-fraction-pad, fraction])
@@ -1603,9 +1601,7 @@ def make_axes_gridspec(parent, *, location=None, orientation=None,
16031601
panchor = kw.pop('panchor', (0.5, 0.0))
16041602

16051603
# for shrinking
1606-
wh_ratios = [(1-anchor[0])*(1-shrink),
1607-
shrink,
1608-
anchor[0]*(1-shrink)]
1604+
wh_ratios = [(1-anchor[0])*(1-shrink), shrink, anchor[0]*(1-shrink)]
16091605

16101606
gs = parent.get_subplotspec().subgridspec(
16111607
2, 1, hspace=wh_space, height_ratios=[fraction, 1-fraction-pad])

0 commit comments

Comments
 (0)