##// END OF EJS Templates
Use qt4agg, not qtagg, mpl backend in pylab profile....
Thomas Kluyver -
Show More
@@ -1,23 +1,23 b''
1 c = get_config()
1 c = get_config()
2 app = c.InteractiveShellApp
2 app = c.InteractiveShellApp
3
3
4 # This can be used at any point in a config file to load a sub config
4 # This can be used at any point in a config file to load a sub config
5 # and merge it into the current one.
5 # and merge it into the current one.
6 load_subconfig('ipython_config.py', profile='default')
6 load_subconfig('ipython_config.py', profile='default')
7
7
8 lines = """
8 lines = """
9 import matplotlib
9 import matplotlib
10 %gui qt
10 %gui qt
11 matplotlib.use('qtagg')
11 matplotlib.use('qt4agg')
12 matplotlib.interactive(True)
12 matplotlib.interactive(True)
13 from matplotlib import pyplot as plt
13 from matplotlib import pyplot as plt
14 from matplotlib.pyplot import *
14 from matplotlib.pyplot import *
15 """
15 """
16
16
17 # You have to make sure that attributes that are containers already
17 # You have to make sure that attributes that are containers already
18 # exist before using them. Simple assigning a new list will override
18 # exist before using them. Simple assigning a new list will override
19 # all previous values.
19 # all previous values.
20 if hasattr(app, 'exec_lines'):
20 if hasattr(app, 'exec_lines'):
21 app.exec_lines.append(lines)
21 app.exec_lines.append(lines)
22 else:
22 else:
23 app.exec_lines = [lines] No newline at end of file
23 app.exec_lines = [lines]
General Comments 0
You need to be logged in to leave comments. Login now