From 5c58664e78ac01c3df1b93e80916dd3356209381 Mon Sep 17 00:00:00 2001 From: Balthasar Schachtner Date: Fri, 12 Jul 2019 22:13:57 +0200 Subject: [PATCH] fix caption being propagated in scale funtions --- branca/colormap.py | 2 ++ 1 file changed, 2 insertions(+) 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, )