##// END OF EJS Templates
pyplot.pause is not used anymore
Miguel Valdez -
r706:1431ba3db227
parent child
Show More
@@ -7,7 +7,7 if 'linux' in sys.platform:
7 7 matplotlib.use("TKAgg")
8 8
9 9 if 'darwin' in sys.platform:
10 matplotlib.use('WXAgg')
10 matplotlib.use('TKAgg')
11 11 #Qt4Agg', 'GTK', 'GTKAgg', 'ps', 'agg', 'cairo', 'MacOSX', 'GTKCairo', 'WXAgg', 'template', 'TkAgg', 'GTK3Cairo', 'GTK3Agg', 'svg', 'WebAgg', 'CocoaAgg', 'emf', 'gdk', 'WX'
12 12 import matplotlib.pyplot
13 13
@@ -33,20 +33,22 def createFigure(id, wintitle, width, height, facecolor="w", show=True):
33 33 def closeFigure(show=False, fig=None):
34 34
35 35 matplotlib.pyplot.ioff()
36 # matplotlib.pyplot.pause(0.1)
36 # matplotlib.pyplot.pause(0)
37 37
38 38 if show:
39 39 matplotlib.pyplot.show()
40 40
41 41 if fig != None:
42 matplotlib.pyplot.close(fig.number)
43 matplotlib.pyplot.pause(0.1)
42 matplotlib.pyplot.close(fig)
43 # matplotlib.pyplot.pause(0)
44 44 # matplotlib.pyplot.ion()
45
45 46 return
46 47
47 48 matplotlib.pyplot.close("all")
48 matplotlib.pyplot.pause(0.1)
49 # matplotlib.pyplot.pause(0)
49 50 # matplotlib.pyplot.ion()
51
50 52 return
51 53
52 54 def saveFigure(fig, filename):
General Comments 0
You need to be logged in to leave comments. Login now