Skip to content

Commit

Permalink
Fixed matplotlib plot style (#25)
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

Co-authored-by: Michele Fortunato <mikyluck92@hotmail.it>
Co-authored-by: Robert Martin <11792905+robertmartin8@users.noreply.github.com>
  • Loading branch information
3 people authored Jul 16, 2024
1 parent acdfd43 commit 71aa7f1
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 71aa7f1

Please sign in to comment.