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

Changing the line color indicating statistical significance #64

Open
juancq opened this issue Mar 27, 2023 · 6 comments
Open

Changing the line color indicating statistical significance #64

juancq opened this issue Mar 27, 2023 · 6 comments
Labels

Comments

@juancq
Copy link
Contributor

juancq commented Mar 27, 2023

Great package!

Where in the code should I look if I want to modify the plotting so that I can change the color of a line when the corresponding row is statistically significant? I don't want to show the p-values or the stars, I just want to change the line color.

@LSYS
Copy link
Owner

LSYS commented Mar 31, 2023

Hi @juancq, thank you for using the package! Do you mean the color of the confidence interval lines? Those would be from the linecolor kwarg

linecolor = kwargs.get("linecolor", ".6")

and
ecolor=linecolor,

But off the top of my mind I'm not sure how easy it would be change colors just for selected rows. I'm using the errorbar API to draw the confidence intervals (https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.errorbar.html)

@juancq
Copy link
Contributor Author

juancq commented Apr 3, 2023

I'll play around with the code and see if there's an easy way to implement it.

@LSYS LSYS added the Help Wanted Help wanted/needed label Dec 24, 2023
@Katharinebarry
Copy link

Hello, is there anyway to change the reference line from 0 to 1? I am using odds ratios so i would like a different reference line

@Katharinebarry
Copy link

i try to use the logscale option and receive many errors

@LSYS
Copy link
Owner

LSYS commented Mar 3, 2024

Hi @Katharinebarry, this has been raised before. See #77. Use the "xline": 1 option. For errors, showing some reproducible example would help.

@Katharinebarry
Copy link

Thank you so much worked like a charm!

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

No branches or pull requests

3 participants