Change the position of annotation #3396
Replies: 2 comments 2 replies
-
Please provide a reproducible example so that it is possible to help, thanks. |
Beta Was this translation helpful? Give feedback.
1 reply
-
You may be interested in seeing my answer here #3247 and there #2994 for moving the legend around. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
when I ran this code:
colors = np.where(gsea_results["score"].head(20) >= 0, "positive", "negative")
plot = (so.Plot(data = (gsea_results.head(20).assign(**{"-log10(pval)": lambda x: -np.log10(x["pval"])})), x="-log10(pval)", y = "source", color = colors).add(so.Bar()))
plot.show()
it appeared this graph:

I tried to move with move_legend method but it only works with seaborn grid, I tried but i could not change seaborn object to seaborn grid.
Can anyone help me with this problem?
Thank you very much!
Beta Was this translation helpful? Give feedback.
All reactions