Skip to content

Commit eca01b9

Browse files
committed
Fix to_linear_segmented bug where i_under, i_over were used
1 parent d3e1e78 commit eca01b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proplot/colors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,7 @@ def to_linear_segmented(self, **kwargs):
15381538
if not self._isinit:
15391539
self._init()
15401540
return LinearSegmentedColormap.from_list(
1541-
self.name, self._lut, **kwargs
1541+
self.name, self._lut[:-3, :], **kwargs
15421542
)
15431543

15441544
@classmethod

0 commit comments

Comments
 (0)