Skip to content

Commit 684d0b8

Browse files
authored
Merge pull request #49 from zarstensen/plotly-titleside-fix48
Fix create colorbar configuring invalid title properties.
2 parents 9b9f7f6 + ec78ed5 commit 684d0b8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

spb/backends/plotly/plotly.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,10 @@ def _create_colorbar(self, label, sc=False):
372372
self._colorbar_counter += 1
373373
return dict(
374374
x=1 + self._cbs * k,
375-
title=label,
376-
titleside="right",
375+
title=dict(
376+
text=label,
377+
side="right"
378+
),
377379
# scale down the color bar to make room for legend
378380
len=(
379381
self._cbsdf if (sc and (self.legend or (self.legend is None)))

0 commit comments

Comments
 (0)