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

How to define the location of plot_forest legend? #2314

Open
ricardoV94 opened this issue Feb 21, 2024 · 3 comments
Open

How to define the location of plot_forest legend? #2314

ricardoV94 opened this issue Feb 21, 2024 · 3 comments

Comments

@ricardoV94
Copy link

It tends to overlap with the posterior lines. I would like to set up something like loc=(1, 0.5)

@ricardoV94
Copy link
Author

Found a way with seaborn.move_legend helper

@OriolAbril
Copy link
Member

It's not possible to pass arguments through plot_forest to customize the legend, the move_legend option is the best that can be done so far

@sayan112207
Copy link

sayan112207 commented Feb 25, 2024

plt.legend(handles=[dummy_legend], loc='center left', bbox_to_anchor=(1, 0.5))

Remember to replace dummy_legend with your actual legend label

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

3 participants