robertmartin8 / PyPortfolioOpt

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

from pypfopt import plotting #592

Open Nilkanth2781 opened 7 months ago

Nilkanth2781 commented 7 months ago

OSError: 'seaborn-deep' is not a valid package style, path of style file, URL of style file, or library style name (library styles are listed in style.available)

Charango-Chile commented 7 months ago

The offending line is on the file plotting.py:

plt.style.use("seaborn-deep")

This style does no longer exists within matplotlib. Changing the line to another style ("classic" for example) removes the error and in your code you can then use plt.style.use() with your own desired available style.