Skip to content

Commit 380eea6

Browse files
authored
remove unexpected indents in load_seabornobj
Unexpected indents will cause errors when loading object with only one axes(Brick objects do not have the `set_originalpositions` method)
1 parent 7848b49 commit 380eea6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

patchworklib/patchworklib.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -611,9 +611,9 @@ def load_seabornobj(g, label=None, labels=None, figsize=(3,3)):
611611
outers = bricks.get_inner_corner()
612612
expand(bricks, figsize[0]/abs(outers[0]-outers[1]), figsize[1]/abs(outers[3]-outers[2]))
613613

614-
x0, x1, y0, y1 = bricks.get_outer_corner()
615-
bricks._originalsize = (abs(x1-x0), abs(y0-y1))
616-
bricks.set_originalpositions()
614+
x0, x1, y0, y1 = bricks.get_outer_corner()
615+
bricks._originalsize = (abs(x1-x0), abs(y0-y1))
616+
bricks.set_originalpositions()
617617

618618
return bricks
619619

0 commit comments

Comments
 (0)