robertmartin8 / PyPortfolioOpt

Financial portfolio optimisation in python, including classical efficient frontier, Black-Litterman, Hierarchical Risk Parity
https://pyportfolioopt.readthedocs.io/
MIT License
4.51k stars 956 forks source link

Labelling Assets and Efficient Frontier #336

Closed SantoshKBehera closed 3 years ago

SantoshKBehera commented 3 years ago

Is your feature request related to a problem? I am trying to plot efficient frontiers over several periods to study the contraction/ expansion of the frontier. While several frontier are plotted, identifying which EF with period is not possible.

Describe the feature you'd like EFs should be labelled based on series. Assets should be labelled, may be limited to a certain size. With multiple EFs, repetion of Assets , optimal seems redundant.

Additional context Add any other context or screenshots about the feature request here. Efficient Frontier

robertmartin8 commented 3 years ago

@SantoshKBehera Thanks for the feature suggestion.

I wonder if there is a matplotlib fix which can allow you to customise the legend on an existing ax. Have you had a look through the legend docs here?

robertmartin8 commented 3 years ago

Closing for now – please reopen if needed.