@@ -32,26 +32,19 @@ class InlineBackendConfig(SingletonConfigurable):
32
32
class InlineBackend (InlineBackendConfig ):
33
33
"""An object to store configuration of the inline backend."""
34
34
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.
35
+ # While we are deprecating overriding matplotlib defaults out of the
36
+ # box, this structure should remain here (empty) for API compatibility
37
+ # and the use of other tools that may need it. Specifically Spyder takes
38
+ # advantage of it.
39
+ # See https://github.com/ipython/ipython/issues/10383 for details.
38
40
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."""
54
- ).tag (config = True )
41
+ {},
42
+ help = """Dict to manage matplotlib configuration defaults in the inline
43
+ backend. As of v0.1.4 IPython/Jupyter do not override defaults out of
44
+ the box, but third-party tools may use it to manage rc data. To change
45
+ personal defaults for matplotlib, use matplotlib's configuration
46
+ tools, or customize this class in your `ipython_config.py` file for
47
+ IPython/Jupyter-specific usage.""" ).tag (config = True )
55
48
56
49
figure_formats = Set (
57
50
{'png' },
0 commit comments