ACCLAB / DABEST-python

Data Analysis with Bootstrapped ESTimation
https://acclab.github.io/DABEST-python/
Apache License 2.0
339 stars 47 forks source link

color_col formatting #103

Closed MPMorton closed 6 months ago

MPMorton commented 4 years ago

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

josesho commented 4 years ago

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

Jacobluke- commented 6 months ago

This bug is resolved.