@@ -61,14 +61,14 @@ def _config_changed(self, name, old, new):
61
61
'savefig.dpi' : 72 ,
62
62
# 10pt still needs a little more room on the xlabel:
63
63
'figure.subplot.bottom' : .125
64
- }, config = True ,
64
+ },
65
65
help = """Subset of matplotlib rcParams that should be different for the
66
66
inline backend."""
67
- )
67
+ ). tag ( config = True )
68
68
69
- figure_formats = Set ({'png' }, config = True ,
69
+ figure_formats = Set ({'png' },
70
70
help = """A set of figure formats to enable: 'png',
71
- 'retina', 'jpeg', 'svg', 'pdf'.""" )
71
+ 'retina', 'jpeg', 'svg', 'pdf'.""" ). tag ( config = True )
72
72
73
73
def _update_figure_formatters (self ):
74
74
if self .shell is not None :
@@ -81,22 +81,22 @@ def _figure_formats_changed(self, name, old, new):
81
81
raise TraitError ("Requires PIL/Pillow for JPG figures" )
82
82
self ._update_figure_formatters ()
83
83
84
- figure_format = Unicode (config = True , help = """The figure format to enable (deprecated
85
- use `figure_formats` instead)""" )
84
+ figure_format = Unicode (help = """The figure format to enable (deprecated
85
+ use `figure_formats` instead)""" ). tag ( config = True )
86
86
87
87
def _figure_format_changed (self , name , old , new ):
88
88
if new :
89
89
self .figure_formats = {new }
90
90
91
- print_figure_kwargs = Dict ({'bbox_inches' : 'tight' }, config = True ,
91
+ print_figure_kwargs = Dict ({'bbox_inches' : 'tight' },
92
92
help = """Extra kwargs to be passed to fig.canvas.print_figure.
93
93
94
94
Logical examples include: bbox_inches, quality (for jpeg figures), etc.
95
95
"""
96
- )
96
+ ). tag ( config = True )
97
97
_print_figure_kwargs_changed = _update_figure_formatters
98
98
99
- close_figures = Bool (True , config = True ,
99
+ close_figures = Bool (True ,
100
100
help = """Close all figures at the end of each cell.
101
101
102
102
When True, ensures that each cell starts with no active figures, but it
@@ -111,7 +111,7 @@ def _figure_format_changed(self, name, old, new):
111
111
iterative editing of figures, and behaves most consistently with
112
112
other matplotlib backends, but figure barriers between cells must
113
113
be explicit.
114
- """ )
114
+ """ ). tag ( config = True )
115
115
116
116
shell = Instance ('IPython.core.interactiveshell.InteractiveShellABC' ,
117
117
allow_none = True )
0 commit comments