Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Cannot use seaborn style with matplotlib #407

Open
Layla-Aphrodite opened this issue Apr 22, 2024 · 0 comments
Open

Cannot use seaborn style with matplotlib #407

Layla-Aphrodite opened this issue Apr 22, 2024 · 0 comments

Comments

@Layla-Aphrodite
Copy link

When I try to use the seaborn style the same way as example showed on the book Python Crash Course:

import matplotlib.pyplot as plt

input_values  =  [1,2,3,4,5]
squares = [1,4,9,16,25]

plt.style.use('seaborn')
fig, ax = plt.subplots()
---snip---

it blew up with the following warning:
OSError: 'seaborn' is not a valid package style, path of style file, URL of style file, or library style name (library styles are listed in style.available)

And when I try to see the full list of available styles running the following line in terminal, the output is: -bash: import: command not found.
>>> import matplotlib.pyplot as plt

Does anyone know the reason why?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant