Skip to content

Commit d829ab0

Browse files
Hideto MoriHideto Mori
Hideto Mori
authored and
Hideto Mori
committed
modified h/vstack() for 'adjust_width/adjust_height == False'
1 parent 51a7ef7 commit d829ab0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

patchworklib/patchworklib.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1272,7 +1272,7 @@ def hstack(brick1, brick2, target=None, margin=None, direction="r", adjust_heigh
12721272
brick1_icorners = brick1.get_inner_corner(labels)
12731273
brick2_icorners = brick2.get_inner_corner()
12741274
vratio = abs(brick1_icorners[3] - brick1_icorners[2]) / abs(brick2_icorners[3] - brick2_icorners[2])
1275-
if vratio < 0.8 and target is None and adjust_width == True:
1275+
if vratio < 0.8 and target is None and adjust_height == True:
12761276
expand(brick1, 1/vratio, 1/vratio)
12771277
brick1_ocorners = brick1.get_outer_corner()
12781278
brick2_ocorners = brick2.get_outer_corner()

0 commit comments

Comments
 (0)