Skip to content

Commit

Permalink
IMP: make coloring consistent (#138)
Browse files Browse the repository at this point in the history
This addition ensures that if there are no enriched features, the coloring of the depleted features remains the same. A future modification could give the user control over the colors. 

fixes #137
  • Loading branch information
SergioAlias authored Dec 17, 2024
1 parent be1ea94 commit c26af33
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions q2_composition/_diff_abundance_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ def _plot_differentials(
significance_label, error_label,
"error-lower", "error-upper"]),
color=alt.Color('enriched', title="Relative to reference",
scale=alt.Scale(
domain=["enriched", "depleted"],
range=["#4c78a8", "#f58518"]),
sort="descending")
)

Expand Down

0 comments on commit c26af33

Please sign in to comment.