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

OSError starting with SciencePlots==2.0.0 #78

Closed
Tobias-Fischer opened this issue Nov 23, 2022 · 2 comments
Closed

OSError starting with SciencePlots==2.0.0 #78

Tobias-Fischer opened this issue Nov 23, 2022 · 2 comments
Labels
user question/help Issues regarding questions or help requests

Comments

@Tobias-Fischer
Copy link

Hiya,

I love using SciencePlots, many thanks for the project!

On a fresh install, however, I cannot use the science style:

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/fischert/mambaforge/envs/DECRA/lib/python3.10/site-packages/matplotlib/style/core.py", line 162, in use
    raise IOError(
OSError: 'science' not found in the style library and input is not a valid URL or path; see `style.available` for list of available styles

It works fine for version 1.0.9 though. Any clues?

Thanks!

@garrettj403
Copy link
Owner

Hi @Tobias-Fischer

We recently changed how the package is installed. You now need to add import scienceplots to the top of your file (before plt.style.use....

Does that work for you?

@Tobias-Fischer
Copy link
Author

Awesome, thanks!

@echedey-ls echedey-ls pinned this issue Nov 24, 2022
@echedey-ls echedey-ls added bug Something isn't working user question/help Issues regarding questions or help requests and removed bug Something isn't working labels Jan 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user question/help Issues regarding questions or help requests
Projects
None yet
Development

No branches or pull requests

3 participants