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

'seaborn-whitegrid' is not a valid package style #152

Open
ivanpetrushev opened this issue Nov 10, 2023 · 4 comments
Open

'seaborn-whitegrid' is not a valid package style #152

ivanpetrushev opened this issue Nov 10, 2023 · 4 comments

Comments

@ivanpetrushev
Copy link

ivanpetrushev commented Nov 10, 2023

I see plot() explicitly sets the seaborn-whitegrid as a plot style: https://github.com/arundo/adtk/blob/master/src/adtk/visualization/_visualization.py#L201

Is it possible to have the plot style set as a configuration option, or leave it entirely out of this codebase?

The problem is that I can't get seaborn-whitegrid to register in my environment at all.

requirements.txt:

numpy==1.26.1
scipy==1.11.3
influxdb-client==1.36.1
pandas==2.1.2
matplotlib==3.8.1
adtk==0.6.2
SciencePlots==2.1.0
seaborn==0.13.0

plt.style.available:

['Solarize_Light2', '_classic_test_patch', '_mpl-gallery', '_mpl-gallery-nogrid', '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-poster', 'seaborn-v0_8-talk', 'seaborn-v0_8-ticks', 'seaborn-v0_8-white', 'seaborn-v0_8-whitegrid', 'tableau-colorblind10']

Somehow I have seaborn-v0_8-whitegrid available, but no seaborn-whitegrid.

Environment: docker image FROM public.ecr.aws/lambda/python:3.10

@nabeelraza-7
Copy link

I was getting the same issue so I forked and removed the styling entirely, here. If you want to style them, you can set the styles yourself.

@BreadFeet
Copy link

True, it is not one of the styles available, following this official document: https://matplotlib.org/stable/gallery/style_sheets/style_sheets_reference.html

Hope it will get fixed sooner or later!

@gbakerpennsy
Copy link

I just went into ...\mpl-data\stylelib and copied over seaborn_v8... to 'seaborn-whitegrid'
remember to reload matplotlib

@Datakriger101
Copy link

I just went into ...\mpl-data\stylelib and copied over seaborn_v8... to 'seaborn-whitegrid' remember to reload matplotlib

Worked like a charm. Thank you

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

No branches or pull requests

5 participants