Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion branca/colormap.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,9 @@ def to_step(self, n=None, index=None, data=None, method=None,
index[i+1] * i/(n-1.)) for
i in range(n)]

return StepColormap(colors, index=index, vmin=index[0], vmax=index[-1])
caption = self.caption

return StepColormap(colors, index=index, vmin=index[0], vmax=index[-1], caption=caption)

def scale(self, vmin=0., vmax=1.):
"""Transforms the colorscale so that the minimal and maximal values
Expand Down