# ValueError: 'seaborn' is not a valid style sheet. Available styles: ['bmh', 'classic', 'dark_background', 'fast', 'fivethirtyeight', 'ggplot', 'grayscale', 'seaborn-v0_8', 'seaborn-v0_8-bright', 'seaborn-v0_8-colorblind', 'seaborn-v0_8-dark', 'seaborn-v0_8-dark-palette', 'seaborn-v0_8-darkgrid', 'seaborn-v0_8-deep', 'seaborn-v0_8-muted', 'seaborn-v0_8-notebook', 'seaborn-v0_8-paper', 'seaborn-v0_8-pastel', 'seaborn-v0_8-talk', 'seaborn-v0_8-ticks', 'seaborn-v0_8-white', 'seaborn-v0_8-whitegrid', 'tableau-colorblind10']

- **ID:** `python/matplotlib-seaborn-style-error`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

In matplotlib 3.6+, the 'seaborn' style was renamed to 'seaborn-v0_8' to avoid confusion with the seaborn library; using the old name raises an error.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.8 | active | — | — |
| 3.9 | active | — | — |

## Workarounds

1. **Use the correct style name with version suffix** (95% success)
   ```
   plt.style.use('seaborn-v0_8-darkgrid')
   ```
2. **Use an alternative style like 'ggplot'** (90% success)
   ```
   plt.style.use('ggplot')
   ```

## Dead Ends

- **Installing seaborn library to fix the style** — The style is built into matplotlib; seaborn library is separate and not required for styles. (90% fail)
- **Using 'seaborn-darkgrid' without the version suffix** — All seaborn styles now require the 'seaborn-v0_8-' prefix. (85% fail)
