@@ -68,14 +68,14 @@ def _config_changed(self, name, old, new):
6868 )
6969
7070 figure_formats = Set ({'png' }, config = True ,
71- help = """A set of figure formats to enable: 'png',
71+ help = """A set of figure formats to enable: 'png',
7272 'retina', 'jpeg', 'svg', 'pdf'.""" )
7373
7474 def _update_figure_formatters (self ):
7575 if self .shell is not None :
7676 from IPython .core .pylabtools import select_figure_formats
7777 select_figure_formats (self .shell , self .figure_formats , ** self .print_figure_kwargs )
78-
78+
7979 def _figure_formats_changed (self , name , old , new ):
8080 if 'jpg' in new or 'jpeg' in new :
8181 if not pil_available ():
@@ -91,20 +91,20 @@ def _figure_format_changed(self, name, old, new):
9191
9292 print_figure_kwargs = Dict ({'bbox_inches' : 'tight' }, config = True ,
9393 help = """Extra kwargs to be passed to fig.canvas.print_figure.
94-
94+
9595 Logical examples include: bbox_inches, quality (for jpeg figures), etc.
9696 """
9797 )
9898 _print_figure_kwargs_changed = _update_figure_formatters
99-
99+
100100 close_figures = Bool (True , config = True ,
101101 help = """Close all figures at the end of each cell.
102-
102+
103103 When True, ensures that each cell starts with no active figures, but it
104104 also means that one must keep track of references in order to edit or
105105 redraw figures in subsequent cells. This mode is ideal for the notebook,
106106 where residual plots from other cells might be surprising.
107-
107+
108108 When False, one must call figure() to create new figures. This means
109109 that gcf() and getfigs() can reference figures created in other cells,
110110 and the active figure can continue to be edited with pylab/pyplot
@@ -117,4 +117,3 @@ def _figure_format_changed(self, name, old, new):
117117 shell = Instance ('IPython.core.interactiveshell.InteractiveShellABC' ,
118118 allow_none = True )
119119
120-
0 commit comments