Skip to content

Fix Matplotlib style error caused by deprecated seaborn-white#37

Open
KAPKEPOT wants to merge 43 commits intotradytics:masterfrom
kachebutuk:master
Open

Fix Matplotlib style error caused by deprecated seaborn-white#37
KAPKEPOT wants to merge 43 commits intotradytics:masterfrom
kachebutuk:master

Conversation

@KAPKEPOT
Copy link
Copy Markdown

@KAPKEPOT KAPKEPOT commented Mar 5, 2026

Problem

Running the project with recent versions of Matplotlib raises the following error:

OSError: 'seaborn-white' is not a valid package style

This happens because newer versions of Matplotlib removed the legacy seaborn style aliases.

Cause

The code currently uses:

plt.style.use('seaborn-white')

However, this style name is no longer included in the Matplotlib style library.

Solution

Replace the deprecated style with the updated style name:

plt.style.use('seaborn-v0_8-white')

This restores compatibility with modern Matplotlib versions.

Impact

Fixes runtime error when executing the simulator.

Maintains the same visual style for plots.

Ensures compatibility with recent Matplotlib releases.

Files modified

simulator.py
eiten.py
backtester.py

KAPKEPOT added 30 commits March 5, 2026 14:24
Updated libraries and plot styles in the BackTester class.
Updated the command for running the portfolio manager to use a configuration file instead of command-line arguments.
Added usage instructions for running the portfolio manager with a config file and a quick run option using stocks.
Updated headings in README for consistency and clarity.
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.

1 participant