Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with plotting mean_diff #98

Open
paul-hawkins opened this issue Apr 20, 2020 · 8 comments
Open

Problem with plotting mean_diff #98

paul-hawkins opened this issue Apr 20, 2020 · 8 comments
Assignees

Comments

@paul-hawkins
Copy link

The following code should produce two plots, but only the swarm plot is produced, and an error is thrown.

new_df = pd.read_csv('%s/all_ringrmsd_data_only.txt' % rootdir, sep='\t')
s_control = db.load(new_df,idx=('OMEGA','MOE','Macromodel','Desmond','RDKit','Prime'))

s_control.cohens_d

s_control.mean_diff.plot(raw_marker_size=3)

image

IndexError: index 12 is out of bounds for size 12

all_ringrmsd_data_only.txt

@josesho josesho self-assigned this Apr 21, 2020
@josesho
Copy link
Member

josesho commented Apr 23, 2020

Hi Paul,

I am able to run your code snippet, on the data you uploaded.

I get this image.

image

Can I check: what is your DABEST version when you run

dabest.__version___

or

db.__version___

given than you import DABEST as db in your example? I'm using the latest version, DABEST v0.3.0.

@dhuzard
Copy link

dhuzard commented Apr 23, 2020

Hi @josesho , I have the same issue with my data: an "IndexError: index 10 is out of bounds for size 8" when running the plot function.
I ran the code of @paul-hawkins and I also obtained the same error.
I have DABEST 0.3.0 as well.
I am using Jupyter Notebook.
Note that I can have a graph for only two variables: idx=('OMEGA','MOE'), the problem appears with more than two.
Dabest two variables

@paul-hawkins
Copy link
Author

paul-hawkins commented Apr 23, 2020 via email

@josesho
Copy link
Member

josesho commented Apr 24, 2020

@paul-hawkins and @dhuzard ,

This looks suspiciously like issues #67 and #70.

Could I trouble both of you to check what version of pandas you two have installed?

import pandas as pd
pd.__version__

Thanks!

@dhuzard
Copy link

dhuzard commented Apr 24, 2020

I found out the solution: upgrading to python 3.8 !

@paul-hawkins
Copy link
Author

paul-hawkins commented Apr 24, 2020 via email

@josesho
Copy link
Member

josesho commented Apr 27, 2020

Hi, @paul-hawkins, I think upgrading pandas to >= 0.26 should do it. Can you give it a go?

@paul-hawkins
Copy link
Author

paul-hawkins commented Apr 27, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants