##// END OF EJS Templates
Close all mpl figures after flushing them to the console....
Fernando Perez -
Show More
@@ -21,7 +21,7 b' from IPython.lib.pylabtools import figure_to_svg'
21 # Functions
21 # Functions
22 #-----------------------------------------------------------------------------
22 #-----------------------------------------------------------------------------
23
23
24 def show(close=False):
24 def show(close=True):
25 """Show all figures as SVG payloads sent to the IPython clients.
25 """Show all figures as SVG payloads sent to the IPython clients.
26
26
27 Parameters
27 Parameters
@@ -57,8 +57,6 b' def flush_svg():'
57 prior code execution, there had been any calls to draw_if_interactive.
57 prior code execution, there had been any calls to draw_if_interactive.
58 """
58 """
59 if show._draw_called:
59 if show._draw_called:
60 # Show is called with the default close=False here, otherwise, the
61 # Figure will be closed and not available for future plotting.
62 show()
60 show()
63 show._draw_called = False
61 show._draw_called = False
64
62
General Comments 0
You need to be logged in to leave comments. Login now