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

Fixed matplotlib plot style #583

Merged

Conversation

mikylucky
Copy link
Contributor

MatplotlibDeprecationWarning: The seaborn styles shipped by Matplotlib are deprecated since 3.6, as they no longer correspond to the styles shipped by seaborn. However, they will remain available as 'seaborn-v0_8-<style>'

Fixes
#581

MatplotlibDeprecationWarning: The seaborn styles shipped by Matplotlib are deprecated since 3.6, as they no longer correspond to the styles shipped by seaborn. However, they will remain available as 'seaborn-v0_8-<style>'

Fixes
robertmartin8#581
@@ -17,7 +17,7 @@
from . import CLA, EfficientFrontier, exceptions, risk_models

try:
plt.style.use("seaborn-deep")
plt.style.use("seaborn-v0_8-deep")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

most likely better to use "default" instead of "seaborne-*" for backwards compatibility with matplotlib < 3.8.0

@dudukels
Copy link

Just pip installed PyPortfolioOpt and was trying to import plotting module, I am still getting the seaborn-deep error

@jaedmunt
Copy link

Same error with seaborn-deep still persists. Python 3.9 - not plt.style specified, just the standard Efficientfrontier

@robertmartin8 robertmartin8 merged commit 2940519 into robertmartin8:master May 28, 2024
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

Successfully merging this pull request may close these issues.

None yet

5 participants