8000 a bit more pep8 work · matplotlib/matplotlib@fad3bc1 · GitHub
[go: up one dir, main page]

Skip to content

Commit fad3bc1

Browse files
committed
a bit more pep8 work
1 parent eb0ec8a commit fad3bc1

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

lib/mpl_toolkits/axes_grid1/inset_locator.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
class InsetPosition(object):
2121
def __init__(self, parent, lbwh):
2222
self.parent = parent
23-
self.lbwh = lbwh # position of the inset axes in the normalized coordinate of the parent axes
23+
self.lbwh = lbwh # position of the inset axes in
24+
# the normalized coordinate of the parent axes
2425

2526
def __call__(self, ax, renderer):
2627
bbox_parent = self.parent.get_position(original=False)
@@ -37,8 +38,8 @@ def __init__(self, bbox_to_anchor, offsetbox, loc,
3738
super(AnchoredLocatorBase, self).__init__(loc,
3839
pad=0., child=None,
3940
borderpad=borderpad,
40-
bbox_to_anchor=bbox_to_anchor,
41-
bbox_transform=bbox_transform)
41+
box_to_anchor=bbox_to_anchor,
42+
box_transform=bbox_transform)
4243

4344
def draw(self, renderer):
4445
raise RuntimeError("No draw method should be called")
@@ -115,7 +116,8 @@ def __init__(self, parent_axes, zoom, loc,
115116

116117
def get_extent(self, renderer):
117118

118-
bb = mtrans.TransformedBbox(self.axes.viewLim, self.parent_axes.transData)
119+
bb = mtrans.TransformedBbox(self.axes.viewLim,
120+
self.parent_axes.transData)
119121

120122
x, y, w, h = bb.bounds
121123

@@ -238,8 +240,11 @@ def __init__(self, bbox1, bbox2, loc1a, loc2a, loc1b, loc2b, **kwargs):
238240

239241
def get_path(self):
240242
path1 = self.connect_bbox(self.bbox1, self.bbox2, self.loc1, self.loc2)
241-
path2 = self.connect_bbox(self.bbox2, self.bbox1, self.loc2b, self.loc1b)
242-
path_merged = list(path1.vertices) + list(path2.vertices) + [path1.vertices[0]]
243+
path2 = self.connect_bbox(self.bbox2, self.bbox1,
244+
self.loc2b, self.loc1b)
245+
path_merged = (list(path1.vertices) +
246+
list(path2.vertices) +
247+
[path1.vertices[0]])
243248
return Path(path_merged)
244249

245250

@@ -295,7 +300,8 @@ def zoomed_inset_axes(parent_axes, zoom, loc=1,
295300
**axes_kwargs)
296301

297302
axes_locator = AnchoredZoomLocator(parent_axes, zoom=zoom, loc=loc,
298-
bbox_to_anchor=bbox_to_anchor, bbox_transform=bbox_transform,
303+
bbox_to_anchor=bbox_to_anchor,
304+
bbox_transform=bbox_transform,
299305
**kwargs)
300306
inset_axes.set_axes_locator(axes_locator)
301307

0 commit comments

Comments
 (0)
0