Skip to content

Commit a433a89

Browse files
authored
Remove matplotlib rc overrides.
Addresses ipython/ipython#10383.
1 parent 10234a6 commit a433a89

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

matplotlib_inline/config.py

+4-19
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,10 @@ class InlineBackendConfig(SingletonConfigurable):
3232
class InlineBackend(InlineBackendConfig):
3333
"""An object to store configuration of the inline backend."""
3434

35-
# The typical default figure size is too large for inline use,
36-
# so we shrink the figure size to 6x4, and tweak fonts to
37-
# make that fit.
38-
rc = Dict(
39-
{
40-
'figure.figsize': (6.0, 4.0),
41-
# play nicely with white background in the Qt and notebook frontend
42-
'figure.facecolor': (1, 1, 1, 0),
43-
'figure.edgecolor': (1, 1, 1, 0),
44-
# 12pt labels get cutoff on 6x4 logplots, so use 10pt.
45-
'font.size': 10,
46-
# 72 dpi matches SVG/qtconsole
47-
# this only affects PNG export, as SVG has no dpi setting
48-
'figure.dpi': 72,
49-
# 10pt still needs a little more room on the xlabel:
50-
'figure.subplot.bottom': .125
51-
},
52-
help="""Subset of matplotlib rcParams that should be different for the
53-
inline backend."""
35+
rc = Dict({ },
36+
help="""Deprecated: as of v0.1.4, we do not override any matplotlib
37+
defaults. Please use matplotlib's configuration tools, or customize this class
38+
in your `ipython_config.py` file for IPython/Jupyter-specific usage."""
5439
).tag(config=True)
5540

5641
figure_formats = Set(

0 commit comments

Comments
 (0)