diff --git a/branca/colormap.py b/branca/colormap.py index 78849d3..67f24b1 100644 --- a/branca/colormap.py +++ b/branca/colormap.py @@ -330,6 +330,7 @@ def scale(self, vmin=0., vmax=1.): index=[vmin + (vmax-vmin)*(x-self.vmin)*1./(self.vmax-self.vmin) for x in self.index], # noqa vmin=vmin, vmax=vmax, + caption=self.caption, ) @@ -417,6 +418,7 @@ def scale(self, vmin=0., vmax=1.): index=[vmin + (vmax-vmin)*(x-self.vmin)*1./(self.vmax-self.vmin) for x in self.index], # noqa vmin=vmin, vmax=vmax, + caption=self.caption, )