Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4ea83e6

Browse files
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

‎packages/python/plotly/templategen/utils/__init__.py‎

Lines changed: 5 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /