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

Skip to content

Commit ce2d116

Browse files
committed
updated creation of default config files at build time:
* modify matplotlib.conf based on available backends and setup.cfg * modify backend selection: SVG, Agg, TkAgg, WXAgg, GTK, GTKAgg, selection in setup.cfg svn path=/trunk/matplotlib/; revision=4242
1 parent 5a76671 commit ce2d116

5 files changed

Lines changed: 46 additions & 487 deletions

File tree

CHANGELOG

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
2007-11-13 Improved the default backend selection at build time:
2+
SVG -> Agg -> TkAgg -> WXAgg -> GTK -> GTKAgg. The last usable
3+
backend in this progression will be chosen in the default
4+
config file. If a backend is defined in setup.cfg, that will
5+
be the default backend - DSD
6+
7+
2007-11-13 Improved creation of default config files at build time for
8+
traited config package - DSD
9+
110
2007-11-12 Exposed all the build options in setup.cfg. These options are
211
read into a dict called "options" by setupext.py. Also, added
312
"-mpl" tags to the version strings for packages provided by

lib/matplotlib/config/mplconfig.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class MPLConfig(TConfig):
6565
class backend(TConfig):
6666
"""Valid backends are: 'GTKAgg', 'GTKCairo', 'QtAgg', 'Qt4Agg',
6767
'TkAgg', 'Agg', 'Cairo', 'PS', 'PDF', 'SVG'"""
68-
use = T.Trait('TkAgg', mplT.BackendHandler())
68+
use = T.Trait('Agg', mplT.BackendHandler())
6969

7070
class cairo(TConfig):
7171
format = T.Trait('png', 'png', 'ps', 'pdf', 'svg')
@@ -525,5 +525,5 @@ def rcdefaults():
525525
##############################################################################
526526
if __name__ == "__main__":
527527
mplConfig = MPLConfig()
528-
tconf2File(mplConfig, '../mpl-data/matplotlib.conf', force=True)
529-
print 'Default matplotlib.conf created in ../mpl-data'
528+
tconf2File(mplConfig, '../mpl-data/matplotlib.conf.template', force=True)
529+
print 'matplotlib.conf.template created in ../mpl-data'

0 commit comments

Comments
 (0)