arviz icon indicating copy to clipboard operation
arviz copied to clipboard

How to define the location of plot_forest legend?

Open ricardoV94 opened this issue 1 year ago • 3 comments

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

ricardoV94 avatar Feb 21 '24 11:02 ricardoV94

Found a way with seaborn.move_legend helper

ricardoV94 avatar Feb 21 '24 11:02 ricardoV94

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

OriolAbril avatar Feb 21 '24 16:02 OriolAbril

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

Remember to replace dummy_legend with your actual legend label

sayan112207 avatar Feb 25 '24 05:02 sayan112207