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

Customize Annotations #147

Open
SimonE1220 opened this issue Apr 16, 2024 · 1 comment
Open

Customize Annotations #147

SimonE1220 opened this issue Apr 16, 2024 · 1 comment

Comments

@SimonE1220
Copy link

Dear all,
I wanted to ask if I can customize the statistical annotations of the plot.
For example:
I have a p value of 0.032 and 0.00023
Can this values be displayed as P=0.032 and if the p values is smaler than 0.001 it is displayed as P=2.3*10^-4
Additionally, I want to use just a line instead of the bracket for the annotation.

Thank you in advanced.
Simon

@tlint101
Copy link

tlint101 commented May 4, 2024

Hi there. Not sure if you have solved your problem yet.

I'm not sure how if it is possible to draw a line instead of a bracket for the annotation. As for the custom annotations, this is possible. This is done using:

annot.set_custom_annotations(["Your Custom Annotation"])

You can see further examples with the example notebook here. It should be down by cell 21.

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