Skip to content

Commit

Permalink
add barplot color
Browse files Browse the repository at this point in the history
  • Loading branch information
dengzq1234 committed Nov 13, 2024
1 parent 935455e commit 48625ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions treeprofiler/tree_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1420,6 +1420,10 @@ def configure_layout(prop, new_column_width, color_dict, color_prop, size_prop,
color_dict = color_config.get(key).get('value2color')
color_prop = key
barplot_color = None
elif 'barplot_color' in list(color_config.get(key).get('detail2color').keys()):
color_dict = None
color_prop = None
barplot_color = color_config.get(key).get('detail2color').get('barplot_color')[0]
else:
color_dict = color_config.get(prop, {}).get('value2color', None)
color_prop = None
Expand Down

0 comments on commit 48625ef

Please sign in to comment.