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

Little problems with the plots #144

Open
PaulCarrascosa opened this issue Apr 11, 2023 · 3 comments
Open

Little problems with the plots #144

PaulCarrascosa opened this issue Apr 11, 2023 · 3 comments
Assignees

Comments

@PaulCarrascosa
Copy link

Hello, I'm using your wonderful package but I am wondering if there is a bug or if it comes from me.

  1. I work now on repeated measures with paired data, I should have the same colors for the 3 individuals in my group (I have 5 groups of 3 individuals) but instead I have 2 identical colors and one which is not very similar per group. Here is a view of my plot :

Capture d’écran 2023-04-07 162228

Is it expected or something goes wrong ?

  1. Another thing, I've searched how to put the title on the legend of a 'basic' .load() because I do "color_col=" as a .plot() parameter but I just have the values, it could be great to have the title. If I do the same thing as the plot for repeated measures (which has the title on the legend) it doesn't work. Here the view of the plot with the problem of the legend :

Capture d’écran 2023-04-07 163212

  1. Moreover, I don't know if is it possible to put a title on the plots, I haven't found the argument for.
@maiyishan maiyishan self-assigned this Apr 12, 2023
@maiyishan
Copy link
Collaborator

Hi @PaulCarrascosa,

Thank you for using DABEST!

For issue 1, this is unexpected behavior and we are not sure what could be causing this. Would you be willing to provide your dataset so we can attempt to reproduce?

For issues 2 and 3, DABEST does not currently have an argument for adding titles to figures. We will add this to future versions, but for now you should be able to add them post-hoc using matplotlib.

Thank you!

@PaulCarrascosa
Copy link
Author

I closed it by mistake, sorry !

Thanks for you fast answer !

Here are the data I'm using to plot the repeated measures :
Data.csv

I will try with matplotlib then, thank you !

Jacobluke- added a commit to Jacobluke-/DABEST-python that referenced this issue May 30, 2023
maiyishan added a commit that referenced this issue Aug 7, 2023
∆∆ updates and Issue #144 fixes
@PaulCarrascosa
Copy link
Author

Hello !

I have few issues with the tool again.

  • First of all, I have the same problem than before with the color of the repeated measures plot using the following data :
    result_df.csv

Here is the plot I have with these data :
Move isolated

We can see colors in the plot which are not present in the legend.

  • Then, in the same data file, I have data which are missing that I have replaced by '0' in the dataframe to make the plot work because I think that 'NaN' or 'None' values doesn't make the plot work. What can I do with this to avoid loosing data ?

If I am wrong with something, I am open to your help.

Thanks a lot

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

No branches or pull requests

2 participants