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

plt.style.use() doesn't work on the first pass #15056

Closed
andrzejnovak opened this issue Aug 13, 2019 · 1 comment
Closed

plt.style.use() doesn't work on the first pass #15056

andrzejnovak opened this issue Aug 13, 2019 · 1 comment

Comments

@andrzejnovak
Copy link
Contributor

Using style to update rcParams has a strange bug, running the code as shown below the changed parameter isn't updated. Strangely enough after executing all cells again it works as expected.
image

Matplotlib version

  • Operating system: WSL
  • Matplotlib version: master
  • Matplotlib backend (module://ipykernel.pylab.backend_inline):
  • Python version: 3.7
  • Jupyter version (if applicable): 1.0.0
  • Other libraries:
@ImportanceOfBeingErnest
Copy link
Member

It's more that it's not working in the first cell, or the cell where pyplot is first imported.

This is a known thing, reported e.g. in #9217 already, but ultimately it's an IPython/ipykernel problem, tracked in ipython/ipykernel#267

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants