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)))