Skip to content

Commit

Permalink
Fixed matplotlib plot style
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mikylucky authored Jan 30, 2024
1 parent 46f8485 commit 745bc16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypfopt/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from . import CLA, EfficientFrontier, exceptions, risk_models

try:
plt.style.use("seaborn-deep")
plt.style.use("seaborn-v0_8-deep")
except Exception: # pragma: no cover
pass

Expand Down

0 comments on commit 745bc16

Please sign in to comment.