8000 Weirdness with inline figure DPI settings in Jupyter Notebook · Issue #9217 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content 8000
Weirdness with inline figure DPI settings in Jupyter Notebook #9217
Closed
@tui-rob

Description

@tui-rob

I find the default inline plotting DPI (72) of figures in Jupyter too small and would like to plot inline figures at 100 by default. However, the (i) import of pyplot and (ii) use of %matplotlib inline both seem to override the figure.dpi setting of 100 I have put in my .matplotlibrc file. I can address this issue by using mpl.rcParams['figure.dpi'] = 100 after importing pyplot and running %matplotlib inline, but think it would be better if this was not required every time.

I'm not sure if this is an issue with matplotlib, Jupyter Notebook and/or ipykernel.

Any assistance appreciated.

Issue 1: Import of pyplot overrides figure.dpi in .matplotlibrc
001

Issue 2: Use of %matplotlib inline magic overrides figure.dpi in .matplotlibrc
002

Matplotlib version

  • Operating System: Win32
  • Matplotlib Version: 2.0.2
  • Python Version: 3.6
  • Jupyter Version : Notebook 5.0, Jupyter core 4.3
  • iPython: 5.3, ipykernel: 4.6.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0