Skip to content

Commit 4ea83e6

Browse files
committed
Add colorbar options for coloraxis
1 parent 2b42d85 commit 4ea83e6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: packages/python/plotly/templategen/utils/__init__.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,13 @@ def initialize_template(
8282
template.layout.plot_bgcolor = panel_background_clr
8383
template.layout.polar.bgcolor = panel_background_clr
8484
template.layout.ternary.bgcolor = panel_background_clr
85-
set_all_colorbars(template, colorbar_common)
85+
8686
cartesian_axis = dict(axis_common, zerolinecolor=zerolinecolor_clr)
8787

88+
# Colorbars
89+
set_all_colorbars(template, colorbar_common)
90+
template.layout.coloraxis.colorbar = colorbar_common
91+
8892
# Colorscales
8993
template.layout.colorscale.sequential = colorscale
9094
if colorscale_minus is not None:

0 commit comments

Comments
 (0)