Skip to content

Commit 67c2515

Browse files
committed
Create guide.merge method on the base class
1 parent 598ba56 commit 67c2515

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
@@ -156,6 +156,12 @@ def train(
156156
Returns guide if training is successful
157157
"""
158158

159+
def merge(self, other: Self) -> Self:
160+
"""
161+
Merge with another guide
162+
"""
163+
return self
164+
159165
def draw(self) -> PackerBase:
160166
"""
161167
Draw guide

plotnine/guides/guide_colorbar.py

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

126-
def merge(self, other):
127-
"""
128-
Simply discards the other guide
129-
"""
130-
return self
131-
132126
def create_geoms(self):
133127
"""
134128
Return self if colorbar will be drawn and None if not

0 commit comments

Comments
 (0)