Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ae11003

Browse files
committed
Reverting part of r5420; this should be temporary.
It seems that to make "ipython -pylab" work with interactive backends, with the exceptions of tkagg and qt4agg, the old mixed-case backend names need to be preserved in the interactive_bk list. svn path=/trunk/matplotlib/; revision=5429
1 parent f48ef81 commit ae11003

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

lib/matplotlib/rcsetup.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,15 @@
1212
from matplotlib.fontconfig_pattern import parse_fontconfig_pattern
1313
from matplotlib.colors import is_color_like
1414

15-
interactive_bk = ['gtk', 'gtkagg', 'gtkcairo', 'fltkagg', 'qtagg', 'qt4agg',
16-
'tkagg', 'wx', 'wxagg', 'cocoaagg']
15+
#interactive_bk = ['gtk', 'gtkagg', 'gtkcairo', 'fltkagg', 'qtagg', 'qt4agg',
16+
# 'tkagg', 'wx', 'wxagg', 'cocoaagg']
17+
# The capitalized forms seem to be needed for ipython at present;
18+
# this is mysterious to me (EF).
19+
20+
interactive_bk = ['GTK', 'GTKAgg', 'GTKCairo', 'FltkAgg', 'QtAgg', 'Qt4Agg',
21+
'TkAgg', 'WX', 'WXAgg', 'CocoaAgg']
22+
23+
1724
non_interactive_bk = ['agg', 'cairo', 'emf', 'gdk',
1825
'pdf', 'ps', 'svg', 'template']
1926
all_backends = interactive_bk + non_interactive_bk

0 commit comments

Comments
 (0)