From ec78ed56792cecaf4cbc54784b84439bfb218af3 Mon Sep 17 00:00:00 2001 From: karstensensensen Date: Thu, 10 Apr 2025 22:48:42 +0200 Subject: [PATCH] Fix create colorbar configuring invalid title properties. --- spb/backends/plotly/plotly.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spb/backends/plotly/plotly.py b/spb/backends/plotly/plotly.py index 4cebe45..e18a5cf 100644 --- a/spb/backends/plotly/plotly.py +++ b/spb/backends/plotly/plotly.py @@ -372,8 +372,10 @@ def _create_colorbar(self, label, sc=False): self._colorbar_counter += 1 return dict( x=1 + self._cbs * k, - title=label, - titleside="right", + title=dict( + text=label, + side="right" + ), # scale down the color bar to make room for legend len=( self._cbsdf if (sc and (self.legend or (self.legend is None)))