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

Skip to content

Commit 17280cf

Browse files
committed
Reverted import removal, reformatted an if-else
1 parent b3c2148 commit 17280cf

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

lib/mpl_toolkits/axes_grid1/axes_grid.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
from __future__ import (absolute_import, division, print_function,
22
unicode_literals)
33

4+
import six
5+
46
import matplotlib.cbook as cbook
57

68
import matplotlib.pyplot as plt
@@ -539,8 +541,10 @@ def __init__(self, fig,
539541
self._colorbar_location = cbar_location
540542
if cbar_pad is None:
541543
# horizontal or vertical arrangement?
542-
self._colorbar_pad = axes_pad[0] \
543-
if cbar_location in ("left", "right") else axes_pad[1]
544+
if cbar_location in ("left", "right"):
545+
self._colorbar_pad = axes_pad[0]
546+
else:
547+
self._colorbar_pad = axes_pad[1]
544548
else:
545549
self._colorbar_pad = cbar_pad
546550

0 commit comments

Comments
 (0)