Skip to content

Fix template error bar coloring for bar plots #1643

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion templategen/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from plotly import graph_objs as go
from .colors import GRAY27

colorscale_parent_paths = [
('histogram2dcontour',),
Expand Down Expand Up @@ -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}}}]

Expand Down