Skip to content

Commit f0c4a5c

Browse files
committed
bug fix
1 parent 2f5c35b commit f0c4a5c

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

patchworklib/patchworklib.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,8 @@ def savefig(self, fname=None, transparent=None, quick=True, **kwargs):
10431043
return fig
10441044

10451045
def __or__(self, other):
1046-
self.comeback()
1046+
self.comeback()
1047+
other.comeback()
10471048
if other._type == "spacer":
10481049
return other.__ror__(self)
10491050

@@ -1059,6 +1060,7 @@ def __or__(self, other):
10591060

10601061
def __truediv__(self, other):
10611062
self.comeback()
1063+
other.comeback()
10621064
if other._type == "spacer":
10631065
return other.__rtruediv__(self)
10641066

@@ -1302,6 +1304,7 @@ def move_legend(self, new_loc, **kws):
13021304

13031305
def __or__(self, other):
13041306
self.comeback()
1307+
other.comeback()
13051308
if other._type == "spacer":
13061309
return other.__ror__(self)
13071310

@@ -1317,6 +1320,7 @@ def __or__(self, other):
13171320

13181321
def __truediv__(self, other):
13191322
self.comeback()
1323+
other.comeback()
13201324
if other._type == "spacer":
13211325
return other.__rtruediv__(self)
13221326

@@ -1540,6 +1544,7 @@ def move_legend(self, new_loc, **kws):
15401544

15411545
def __or__(self, other):
15421546
self.comeback()
1547+
other.comeback()
15431548
if other._type == "spacer":
15441549
return other.__ror__(self)
15451550

@@ -1555,6 +1560,7 @@ def __or__(self, other):
15551560

15561561
def __truediv__(self, other):
15571562
self.comeback()
1563+
other.combeback()
15581564
if other._type == "spacer":
15591565
return other.__rtruediv__(self)
15601566

0 commit comments

Comments
 (0)