You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the solution you'd like
Have colors when using paired=..., just like there is if there is no paired=....
The structure of the plot can stay the same.
Paired plots are currently displayed as a slopegraph - paired lines without markers. There would therefore be no aesthetic logic for color coding each group. Is your suggestion that we should include markers for each data point in each group (and color these) as well as including the slopegraph (black lines)?
Let me try to explain better. My suggestion would be to have an argument to color the bars and the paired mean difference distribution like done in the plot on the right.
Ooh i see, you would like to be able to have the colored groups for the bars and the halfviolins. I will look into the cleanest way to implement this if we do decide to - will get back to you :)
Hi! Apologies for the long delay. I am working on it at the moment. We are also doing some modifications to the default plotting format of the slopegraph plots. So far I have added this functionality if the user specifies a custom_palette in the plotting function - ie., if the user doesn't specify a custom_palette, it will remain black/grey
Hi! Apologies for the long delay. I am working on it at the moment. We are also doing some modifications to the default plotting format of the slopegraph plots. So far I have added this functionality if the user specifies a custom_palette in the plotting function - ie., if the user doesn't specify a custom_palette, it will remain black/grey
I have a question in regard to this: I am trying to have both the raw slopes and the mean difference distributions coloured by group. However, changing the color_col parameter affects only the slopes, while creating a dictionary for the custom_palette only influences the mean difference distributions. Is there any way to apply the same colour to both parts?
Activity
JAnns98 commentedon Apr 30, 2025
Paired plots are currently displayed as a slopegraph - paired lines without markers. There would therefore be no aesthetic logic for color coding each group. Is your suggestion that we should include markers for each data point in each group (and color these) as well as including the slopegraph (black lines)?
siemdejong commentedon May 1, 2025
The slopegraph without markers is fine.
Let me try to explain better. My suggestion would be to have an argument to color the bars and the paired mean difference distribution like done in the plot on the right.
I think, that
DABEST-python/dabest/plot_tools.py
Line 1271 in 5d83bb1
and
DABEST-python/dabest/plot_tools.py
Line 31 in 5d83bb1
DABEST-python/dabest/plot_tools.py
Line 47 in 5d83bb1
make the colors gray/black by default and does not allow for each bar to have a distinct color.
Something like what is done here
DABEST-python/dabest/plot_tools.py
Line 1364 in 5d83bb1
may already be enough.
JAnns98 commentedon May 2, 2025
Ooh i see, you would like to be able to have the colored groups for the bars and the halfviolins. I will look into the cleanest way to implement this if we do decide to - will get back to you :)
siemdejong commentedon May 2, 2025
A suggestion: it would be great if it was compatible with
plt.style.use(...)so that users can use any color cycle.siemdejong commentedon Aug 6, 2025
Have you decided if this is something that could be added?
JAnns98 commentedon Aug 14, 2025
Hi! Apologies for the long delay. I am working on it at the moment. We are also doing some modifications to the default plotting format of the slopegraph plots. So far I have added this functionality if the user specifies a custom_palette in the plotting function - ie., if the user doesn't specify a custom_palette, it will remain black/grey
JAnns98 commentedon Aug 26, 2025
This feature has now been pushed to the dev (vnbdev) branch
PaulBallot commentedon Jan 20, 2026
I have a question in regard to this: I am trying to have both the raw slopes and the mean difference distributions coloured by group. However, changing the color_col parameter affects only the slopes, while creating a dictionary for the custom_palette only influences the mean difference distributions. Is there any way to apply the same colour to both parts?
Complete the #218 fix and add regression tests