diff --git a/templategen/utils/__init__.py b/templategen/utils/__init__.py index fa821ccd972..f9985368822 100644 --- a/templategen/utils/__init__.py +++ b/templategen/utils/__init__.py @@ -1,4 +1,5 @@ from plotly import graph_objs as go +from .colors import GRAY27 colorscale_parent_paths = [ ('histogram2dcontour',), @@ -157,8 +158,12 @@ def initialize_template(annotation_defaults, 'line': {'color': table_line_clr}}}] # Bar outline + # Changing marker line color also affects error color, + # so reset default error colors template.data.bar = [ - {'marker': {'line': {'width': 0.5, 'color': panel_background_clr}}}] + {'marker': {'line': {'width': 0.5, 'color': panel_background_clr}}, + 'error_y': {'color': GRAY27}, + 'error_x': {'color': GRAY27}}] template.data.barpolar = [ {'marker': {'line': {'width': 0.5, 'color': panel_background_clr}}}]