Skip to content

Commit e14d19e

Browse files
committed
Create guide.merge method on the base class
1 parent 52645bf commit e14d19e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

plotnine/guides/guide.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@ def train(
148148
Returns guide if training is successful
149149
"""
150150

151+
def merge(self, other: Self) -> Self:
152+
"""
153+
Merge with another guide
154+
"""
155+
return self
156+
151157
def draw(self) -> PackerBase:
152158
"""
153159
Draw guide

plotnine/guides/guide_colorbar.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,6 @@ def train(self, scale: scale, aesthetic=None):
121121
self.hash = hashlib.sha256(info.encode("utf-8")).hexdigest()
122122
return self
123123

124-
def merge(self, other):
125-
"""
126-
Simply discards the other guide
127-
"""
128-
return self
129-
130124
def create_geoms(self):
131125
"""
132126
Return self if colorbar will be drawn and None if not

0 commit comments

Comments
 (0)