Skip to content

Commit 28ab632

Browse files
authored
bug fix cmap_str not being set in line collection (#285)
1 parent 699ed89 commit 28ab632

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fastplotlib/graphics/line_collection.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ def cmap(self, cmap: str):
228228
for i, g in enumerate(self.graphics):
229229
g.colors = colors[i]
230230

231+
self._cmap_str = cmap
232+
231233
@property
232234
def cmap_values(self) -> np.ndarray:
233235
return self._cmap_values

0 commit comments

Comments
 (0)