DABEST-python icon indicating copy to clipboard operation
DABEST-python copied to clipboard

color_col formatting

Open MPMorton opened this issue 5 years ago • 1 comments

Could you provide me some more info on how color_col is supposed to work and how the data is supposed to be formatted? I think I'm doing things exactly like the tutorial. I attached the code and data I can't get to work. Basically if I use mean_diff.plot() it works without color, but mean_diff.plot(color_col="Type") does not, and gives the following error:

Traceback (most recent call last):

  File "/Users/mm/Documents/F_test.py", line 10, in <module>
    F_dabest.mean_diff.plot(color_col="Type");

  File "/Users/mm/opt/anaconda3/lib/python3.7/site-packages/dabest/_classes.py", line 1693, in plot
    out = EffectSizeDataFramePlotter(self, **all_kwargs)

  File "/Users/mm/opt/anaconda3/lib/python3.7/site-packages/dabest/plotter.py", line 377, in EffectSizeDataFramePlotter
    slopegraph_kwargs['color']  = plot_palette_raw[color_key]

KeyError: nan

Thanks for any help!

F.zip

MPMorton avatar Aug 11 '20 15:08 MPMorton

I can replicate your error. I'm not sure what exactly is causing it, let me get back!

josesho avatar Aug 13 '20 07:08 josesho

This bug is resolved.

Jacobluke- avatar Feb 27 '24 08:02 Jacobluke-