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

Changing rcParams in same Jupyter notebook cell as %matplotlib inline has no effect #11815

ketch opened this Issue Aug 6, 2018 · 1 comment


None yet
3 participants

ketch commented Aug 6, 2018

Bug report

Bug summary

Modifying rcParams in the same cell where %matplotlib inline is called (for the first time) causes only a temporary change (within that cell). In later cells, the values of rcParams revert back.

Code for reproduction

screen shot 2018-08-06 at 11 25 09 am

Notice that even if inline is changed to some other backend, things work properly:

screen shot 2018-08-06 at 11 25 32 am

Matplotlib version

  • Operating system: Mac OS 10.13.4
  • Matplotlib version: 2.2.2
  • Matplotlib backend (print(matplotlib.get_backend())): nbAgg
  • Python version: 3.6.5
  • Jupyter version (if applicable): 4.4.0
  • Other libraries:

See also #11693, which seems to be another manifestation of the same bug.


This comment has been minimized.


ImportanceOfBeingErnest commented Aug 6, 2018

Duplicate of

This lies not in the hands of matplotlib, see ◄this comment.

@jklymak jklymak closed this Aug 6, 2018

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