Revision: 4242
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4242&view=rev
Author:   dsdale
Date:     2007-11-13 05:50:29 -0800 (Tue, 13 Nov 2007)

Log Message:
-----------
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

Modified Paths:
--------------
    trunk/matplotlib/CHANGELOG
    trunk/matplotlib/lib/matplotlib/config/mplconfig.py
    trunk/matplotlib/setup.py

Added Paths:
-----------
    trunk/matplotlib/lib/matplotlib/mpl-data/matplotlib.conf.template

Removed Paths:
-------------
    trunk/matplotlib/lib/matplotlib/mpl-data/matplotlib.conf
    trunk/matplotlib/lib/matplotlib/mpl-data/matplotlib.conf.backup

Modified: trunk/matplotlib/CHANGELOG
===================================================================
--- trunk/matplotlib/CHANGELOG  2007-11-12 23:38:12 UTC (rev 4241)
+++ trunk/matplotlib/CHANGELOG  2007-11-13 13:50:29 UTC (rev 4242)
@@ -1,3 +1,12 @@
+2007-11-13 Improved the default backend selection at build time:
+           SVG -> Agg -> TkAgg -> WXAgg -> GTK -> GTKAgg. The last usable 
+           backend in this progression will be chosen in the default 
+           config file. If a backend is defined in setup.cfg, that will
+           be the default backend - DSD
+
+2007-11-13 Improved creation of default config files at build time for
+           traited config package - DSD
+
 2007-11-12 Exposed all the build options in setup.cfg. These options are
            read into a dict called "options" by setupext.py. Also, added
            "-mpl" tags to the version strings for packages provided by

Modified: trunk/matplotlib/lib/matplotlib/config/mplconfig.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/config/mplconfig.py 2007-11-12 23:38:12 UTC 
(rev 4241)
+++ trunk/matplotlib/lib/matplotlib/config/mplconfig.py 2007-11-13 13:50:29 UTC 
(rev 4242)
@@ -65,7 +65,7 @@
     class backend(TConfig):
         """Valid backends are: 'GTKAgg', 'GTKCairo', 'QtAgg', 'Qt4Agg',
         'TkAgg', 'Agg', 'Cairo', 'PS', 'PDF', 'SVG'"""
-        use = T.Trait('TkAgg', mplT.BackendHandler())
+        use = T.Trait('Agg', mplT.BackendHandler())
 
         class cairo(TConfig):
             format = T.Trait('png', 'png', 'ps', 'pdf', 'svg')
@@ -525,5 +525,5 @@
 ##############################################################################
 if __name__ == "__main__":
     mplConfig = MPLConfig()
-    tconf2File(mplConfig, '../mpl-data/matplotlib.conf', force=True)
-    print 'Default matplotlib.conf created in ../mpl-data'
+    tconf2File(mplConfig, '../mpl-data/matplotlib.conf.template', force=True)
+    print 'matplotlib.conf.template created in ../mpl-data'

Deleted: trunk/matplotlib/lib/matplotlib/mpl-data/matplotlib.conf
===================================================================
--- trunk/matplotlib/lib/matplotlib/mpl-data/matplotlib.conf    2007-11-12 
23:38:12 UTC (rev 4241)
+++ trunk/matplotlib/lib/matplotlib/mpl-data/matplotlib.conf    2007-11-13 
13:50:29 UTC (rev 4242)
@@ -1,410 +0,0 @@
-# MPLConfig - plaintext (in .conf format)
-
-# This is a sample matplotlib configuration file.  It should be placed
-# in HOME/.matplotlib/matplotlibrc (unix/linux like systems) and
-# C:\Documents and Settings\yourname\.matplotlib (win32 systems)
-# 
-# By default, the installer will overwrite the existing file in the install
-# path, so if you want to preserve yours, please move it to your HOME dir and
-# set the environment variable if necessary.
-# 
-# This file is best viewed in a editor which supports ini or conf mode syntax
-# highlighting.
-# 
-# Blank lines, or lines starting with a comment symbol, are ignored,
-# as are trailing comments.  Other lines must have the format
-# 
-#   key = val   optional comment
-# 
-# val should be valid python syntax, just as you would use when setting
-# properties using rcParams. This should become more obvious by inspecting
-# the default values listed herein.
-# 
-# Colors: for the color values below, you can either use
-#  - a matplotlib color string, such as r, k, or b
-#  - an rgb tuple, such as (1.0, 0.5, 0.0)
-#  - a hex string, such as #ff00ff or ff00ff
-#  - a scalar grayscale intensity such as 0.75
-#  - a legal html color name, eg red, blue, darkslategray
-# 
-# Interactivity: see http://matplotlib.sourceforge.net/interactive.html.
-# 
-# ### CONFIGURATION BEGINS HERE ###
-
-# a value of type 'str'
-datapath = '/usr/lib64/python2.5/site-packages/matplotlib/mpl-data'
-# one of 0, on, false, 1, no, n, y, off, yes, true
-interactive = False
-# a value of type 'bool'
-maskedarray = False
-# 'numpy' or 'numeric' or 'numarray'
-numerix = 'numpy'
-# 'Africa/Abidjan' or 'Africa/Accra' or 'Africa/Addis_Ababa' or 
'Africa/Algiers'
-#  or 'Africa/Asmara' or 'Africa/Asmera' or 'Africa/Bamako' or 'Africa/Bangui' 
o
-# r 'Africa/Banjul' or 'Africa/Bissau' or 'Africa/Blantyre' or 
'Africa/Brazzavil
-#  <...snipped 10590 chars...> 
-# or 'Turkey' or 'UCT' or 'US/Alaska' or 'US/Aleutian' or 'US/Arizona' or 
'US/Ce
-# ntral' or 'US/East-Indiana' or 'US/Eastern' or 'US/Hawaii' or 
'US/Indiana-Star
-# ke' or 'US/Michigan' or 'US/Mountain' or 'US/Pacific' or 'US/Pacific-New' or 
'
-# US/Samoa' or 'UTC' or 'Universal' or 'W-SU' or 'WET' or 'Zulu' or 
'posixrules'
-timezone = 'UTC'
-# 'toolbar2' or None
-toolbar = 'toolbar2'
-# a value of type 'bool'
-units = False
-
-[axes]
-    # a value of type 'bool'
-    axisbelow = False
-    # any valid matplotlib color, eg an abbreviation like 'r' for red, a full
-    # name like 'orange', a hex color like '#efefef', a grayscale intensity
-    # like '0.5', or an RGBA tuple (1,0,0,1)
-    edgecolor = 'black'
-    # any valid matplotlib color, eg an abbreviation like 'r' for red, a full
-    # name like 'orange', a hex color like '#efefef', a grayscale intensity
-    # like '0.5', or an RGBA tuple (1,0,0,1)
-    facecolor = 'white'
-    # one of 0, on, false, 1, no, n, y, off, yes, true
-    grid = False
-    # one of 0, on, false, 1, no, n, y, off, yes, true
-    hold = True
-    # any valid matplotlib color, eg an abbreviation like 'r' for red, a full
-    # name like 'orange', a hex color like '#efefef', a grayscale intensity
-    # like '0.5', or an RGBA tuple (1,0,0,1)
-    labelcolor = 'black'
-    # a value of type 'float' or 'xx-small' or 'x-small' or 'small' or 
'medium' 
-    # or 'large' or 'x-large' or 'xx-large'
-    labelsize = 'medium'
-    # a value of type 'float'
-    linewidth = 1.0
-    # one of 0, on, false, 1, no, n, y, off, yes, true
-    polargrid = True
-    # a value of type 'float' or 'xx-small' or 'x-small' or 'small' or 
'medium' 
-    # or 'large' or 'x-large' or 'xx-large'
-    titlesize = 'large'
-
-    [[formatter]]
-        # a list of from 2 to 2 items each of which is a value of type 'float'
-        limits = [-7.0, 7.0]
-
-[backend]
-    # Valid backends are: 'GTKAgg', 'GTKCairo', 'QtAgg', 'Qt4Agg',
-    # 'TkAgg', 'Agg', 'Cairo', 'PS', 'PDF', 'SVG'
-    # one of ps, qt4agg, tkagg, gtkagg, agg, cairo, gtkcairo, wxagg, qtagg, 
temp
-    # late, svg, pdf
-    use = 'TkAgg'
-
-    [[cairo]]
-        # 'png' or 'ps' or 'pdf' or 'svg'
-        format = 'png'
-
-    [[pdf]]
-        # 0 <= an integer <= 9
-        compression = 6
-        # 3 or 42
-        fonttype = 3
-        # a value of type 'bool'
-        inheritcolor = False
-        # a value of type 'bool'
-        use14corefonts = False
-
-    [[ps]]
-        # 3 or 42
-        fonttype = 3
-        # 'auto' or 'letter' or 'legal' or 'ledger' or 'A0' or 'A1' or 'A2' or 
'
-        # A3' or 'A4' or 'A5' or 'A6' or 'A7' or 'A8' or 'A9' or 'A10' or 'B0' 
o
-        # r 'B1' or 'B2' or 'B3' or 'B4' or 'B5' or 'B6' or 'B7' or 'B8' or 
'B9'
-        #  or 'B10'
-        papersize = 'letter'
-        # a value of type 'bool'
-        useafm = False
-
-        [[[distiller]]]
-            # a value of type 'float'
-            resolution = 6000.0
-            # a bool or None or 'ghostscript' or 'xpdf'
-            use = None
-
-    [[svg]]
-        # a value of type 'bool'
-        embed_chars = True
-        # a value of type 'bool'
-        image_inline = True
-        # a value of type 'bool'
-        image_noscale = False
-
-    [[tk]]
-        # window_focus : Maintain shell focus for TkAgg
-        # pythoninspect: tk sets PYTHONINSPECT
-
-        # a value of type 'bool'
-        pythoninspect = False
-        # a value of type 'bool'
-        window_focus = False
-
-[contour]
-    # 'dashed' or 'solid'
-    negative_linestyle = 'dashed'
-
-[figure]
-    # a value of type 'float'
-    dpi = 80.0
-    # any valid matplotlib color, eg an abbreviation like 'r' for red, a full
-    # name like 'orange', a hex color like '#efefef', a grayscale intensity
-    # like '0.5', or an RGBA tuple (1,0,0,1)
-    edgecolor = 'white'
-    # any valid matplotlib color, eg an abbreviation like 'r' for red, a full
-    # name like 'orange', a hex color like '#efefef', a grayscale intensity
-    # like '0.5', or an RGBA tuple (1,0,0,1)
-    facecolor = '0.75'
-    # a list of from 2 to 2 items each of which is a value of type 'float'
-    figsize = [8.0, 6.0]
-
-    [[subplot]]
-        # The figure subplot parameters.  All dimensions are fraction
-        # of the figure width or height
-        # a value of type 'float'
-        bottom = 0.10000000000000001
-        # a value of type 'float'
-        hspace = 0.20000000000000001
-        # a value of type 'float'
-        left = 0.125
-        # a value of type 'float'
-        right = 0.90000000000000002
-        # a value of type 'float'
-        top = 0.90000000000000002
-        # a value of type 'float'
-        wspace = 0.20000000000000001
-
-[font]
-    # a list of items each of which is a value of type 'str'
-    cursive = ['Apple Chancery', 'Textile', 'Zapf Chancery', 'Sand', 'cursive']
-    # 'sans-serif' or 'serif' or 'cursive' or 'fantasy' or 'monospace'
-    family = 'sans-serif'
-    # a list of items each of which is a value of type 'str'
-    fantasy = ['Comic Sans MS', 'Chicago', 'Charcoal', 'Impact', 'Western', 
'fantasy']
-    # a list of items each of which is a value of type 'str'
-    monospace = ['Bitstream Vera Sans Mono', 'Andale Mono', 'Nimbus Mono L', 
'Courier New', 'Courier', 'Fixed', 'Terminal', 'monospace']
-    # a list of items each of which is a value of type 'str'
-    sans_serif = ['Bitstream Vera Sans', 'Lucida Grande', 'Verdana', 'Geneva', 
'Lucid', 'Arial', 'Helvetica', 'Avant Garde', 'sans-serif']
-    # a list of items each of which is a value of type 'str'
-    serif = ['Bitstream Vera Serif', 'New Century Schoolbook', 'Century 
Schoolbook L', 'Utopia', 'ITC Bookman', 'Bookman', 'Nimbus Roman No9 L', 'Times 
New Roman', 'Times', 'Palatino', 'Charter', 'serif']
-    # a value of type 'float'
-    size = 12.0
-    # 'ultra-condensed' or 'extra-condensed' or 'condensed' or 
'semi-condensed' 
-    # or 'normal' or 'semi-expanded' or 'expanded' or 'extra-expanded' or 
'ultra
-    # -expanded' or 'wider' or 'narrower'
-    stretch = 'normal'
-    # 'normal' or 'italic' or 'oblique'
-    style = 'normal'
-    # 'normal' or 'small-caps'
-    variant = 'normal'
-    # 'normal' or 'bold' or 'bolder' or 'lighter' or 100 or 200 or 300 or 400 
or
-    #  500 or 600 or 700 or 800 or 900
-    weight = 'normal'
-
-[grid]
-    # any valid matplotlib color, eg an abbreviation like 'r' for red, a full
-    # name like 'orange', a hex color like '#efefef', a grayscale intensity
-    # like '0.5', or an RGBA tuple (1,0,0,1)
-    color = 'black'
-    # '-' or '--' or '-.' or ':' or 'steps' or '' or ' '
-    linestyle = ':'
-    # a value of type 'float'
-    linewidth = 0.5
-
-[image]
-    # a value of type 'float' or 'equal' or 'auto'
-    aspect = 'equal'
-    # 'Accent' or 'Accent_r' or 'Blues' or 'Blues_r' or 'BrBG' or 'BrBG_r' or 
'B
-    # uGn' or 'BuGn_r' or 'BuPu' or 'BuPu_r' or 'Dark2' or 'Dark2_r' or 'GnBu' 
o
-    # r 'GnBu_r' or 'Greens' or 'Greens_r' or 'Greys' or 'Greys_r' or 'OrRd' 
or 
-    #  <...snipped 1010 chars...> 
-    # ist_stern' or 'gist_stern_r' or 'gist_yarg' or 'gist_yarg_r' or 'gray' 
or 
-    # 'gray_r' or 'hot' or 'hot_r' or 'hsv' or 'hsv_r' or 'jet' or 'jet_r' or 
'p
-    # ink' or 'pink_r' or 'prism' or 'prism_r' or 'spectral' or 'spectral_r' 
or 
-    # 'spring' or 'spring_r' or 'summer' or 'summer_r' or 'winter' or 
'winter_r'
-    cmap = 'jet'
-    # 'bilinear' or 'nearest' or 'bicubic' or 'spline16' or 'spline36' or 
'hanni
-    # ng' or 'hamming' or 'hermite' or 'kaiser' or 'quadric' or 'catrom' or 
'gau
-    # ssian' or 'bessel' or 'mitchell' or 'sinc' or 'lanczos' or 'blackman'
-    interpolation = 'bilinear'
-    # a value of type 'int'
-    lut = 256
-    # 'upper' or 'lower'
-    origin = 'upper'
-
-[legend]
-    # a value of type 'float'
-    axespad = 0.02
-    # a value of type 'float' or 'xx-small' or 'x-small' or 'small' or 
'medium' 
-    # or 'large' or 'x-large' or 'xx-large'
-    fontsize = 'medium'
-    # a value of type 'float'
-    handlelen = 0.050000000000000003
-    # a value of type 'float'
-    handletextsep = 0.02
-    # a value of type 'bool'
-    isaxes = True
-    # a value of type 'float'
-    labelsep = 0.01
-    # 'best' or 'upper right' or 'upper left' or 'lower left' or 'lower right' 
o
-    # r 'right' or 'center left' or 'center right' or 'lower center' or 'upper 
c
-    # enter' or 'center'
-    loc = 'upper right'
-    # a value of type 'float'
-    markerscale = 1.0
-    # a value of type 'int'
-    numpoints = 3
-    # a value of type 'float'
-    pad = 0.20000000000000001
-    # a value of type 'bool'
-    shadow = False
-
-[lines]
-    # a value of type 'bool'
-    antialiased = True
-    # any valid matplotlib color, eg an abbreviation like 'r' for red, a full
-    # name like 'orange', a hex color like '#efefef', a grayscale intensity
-    # like '0.5', or an RGBA tuple (1,0,0,1)
-    color = 'blue'
-    # 'butt' or 'round' or 'projecting'
-    dash_capstyle = 'butt'
-    # 'miter' or 'round' or 'bevel'
-    dash_joinstyle = 'miter'
-    # '-' or '--' or '-.' or ':' or 'steps' or '' or ' ' or None
-    linestyle = '-'
-    # a value of type 'float'
-    linewidth = 1.0
-    # 'None' or 'o' or '.' or ',' or '^' or 'v' or '<' or '>' or 's' or '+' or 
'
-    # x' or 'D' or 'd' or '1' or '2' or '3' or '4' or 'h' or 'H' or 'p' or '|' 
o
-    # r '_'
-    marker = 'None'
-    # a value of type 'float'
-    markeredgewidth = 0.5
-    # a value of type 'float'
-    markersize = 6.0
-    # 'butt' or 'round' or 'projecting'
-    solid_capstyle = 'butt'
-    # 'miter' or 'round' or 'bevel'
-    solid_joinstyle = 'miter'
-
-[mathtext]
-    # A fontconfig pattern.  See the fontconfig user manual for more 
information
-    # .
-    bf = 'serif:bold'
-    # A fontconfig pattern.  See the fontconfig user manual for more 
information
-    # .
-    cal = 'cursive'
-    # a value of type 'bool'
-    fallback_to_cm = True
-    # 'cm' or 'stix' or 'stixsans' or 'custom'
-    fontset = 'cm'
-    # A fontconfig pattern.  See the fontconfig user manual for more 
information
-    # .
-    it = 'serif:oblique'
-    # A fontconfig pattern.  See the fontconfig user manual for more 
information
-    # .
-    rm = 'serif'
-    # A fontconfig pattern.  See the fontconfig user manual for more 
information
-    # .
-    sf = 'sans'
-    # A fontconfig pattern.  See the fontconfig user manual for more 
information
-    # .
-    tt = 'monospace'
-
-[patch]
-    # a value of type 'bool'
-    antialiased = True
-    # any valid matplotlib color, eg an abbreviation like 'r' for red, a full
-    # name like 'orange', a hex color like '#efefef', a grayscale intensity
-    # like '0.5', or an RGBA tuple (1,0,0,1)
-    edgecolor = 'black'
-    # any valid matplotlib color, eg an abbreviation like 'r' for red, a full
-    # name like 'orange', a hex color like '#efefef', a grayscale intensity
-    # like '0.5', or an RGBA tuple (1,0,0,1)
-    facecolor = 'blue'
-    # a value of type 'float'
-    linewidth = 1.0
-
-[savefig]
-    # a value of type 'float'
-    dpi = 100.0
-    # any valid matplotlib color, eg an abbreviation like 'r' for red, a full
-    # name like 'orange', a hex color like '#efefef', a grayscale intensity
-    # like '0.5', or an RGBA tuple (1,0,0,1)
-    edgecolor = 'white'
-    # any valid matplotlib color, eg an abbreviation like 'r' for red, a full
-    # name like 'orange', a hex color like '#efefef', a grayscale intensity
-    # like '0.5', or an RGBA tuple (1,0,0,1)
-    facecolor = 'white'
-    # 'portrait' or 'landscape'
-    orientation = 'portrait'
-
-[text]
-    # any valid matplotlib color, eg an abbreviation like 'r' for red, a full
-    # name like 'orange', a hex color like '#efefef', a grayscale intensity
-    # like '0.5', or an RGBA tuple (1,0,0,1)
-    color = 'black'
-    # a value of type 'bool'
-    usetex = False
-
-    [[latex]]
-        # a value of type 'bool'
-        dvipnghack = False
-        # a list of items each of which is a value of type 'str'
-        preamble = []
-        # a value of type 'bool'
-        unicode = False
-
-[verbose]
-    # a value of type 'str' or a value of type 'unicode' or 'sys.stdout'
-    fileo = 'sys.stdout'
-    # 'silent' or 'helpful' or 'debug' or 'debug-annoying'
-    level = 'silent'
-
-[xticks]
-    # any valid matplotlib color, eg an abbreviation like 'r' for red, a full
-    # name like 'orange', a hex color like '#efefef', a grayscale intensity
-    # like '0.5', or an RGBA tuple (1,0,0,1)
-    color = 'black'
-    # 'in' or 'out'
-    direction = 'in'
-    # a value of type 'float' or 'xx-small' or 'x-small' or 'small' or 
'medium' 
-    # or 'large' or 'x-large' or 'xx-large'
-    labelsize = 'small'
-
-    [[major]]
-        # a value of type 'float'
-        pad = 4.0
-        # a value of type 'float'
-        size = 4.0
-
-    [[minor]]
-        # a value of type 'float'
-        pad = 4.0
-        # a value of type 'float'
-        size = 2.0
-
-[yticks]
-    # any valid matplotlib color, eg an abbreviation like 'r' for red, a full
-    # name like 'orange', a hex color like '#efefef', a grayscale intensity
-    # like '0.5', or an RGBA tuple (1,0,0,1)
-    color = 'black'
-    # 'in' or 'out'
-    direction = 'in'
-    # a value of type 'float' or 'xx-small' or 'x-small' or 'small' or 
'medium' 
-    # or 'large' or 'x-large' or 'xx-large'
-    labelsize = 'small'
-
-    [[major]]
-        # a value of type 'float'
-        pad = 4.0
-        # a value of type 'float'
-        size = 4.0
-
-    [[minor]]
-        # a value of type 'float'
-        pad = 4.0
-        # a value of type 'float'
-        size = 2.0
\ No newline at end of file

Deleted: trunk/matplotlib/lib/matplotlib/mpl-data/matplotlib.conf.backup
===================================================================
--- trunk/matplotlib/lib/matplotlib/mpl-data/matplotlib.conf.backup     
2007-11-12 23:38:12 UTC (rev 4241)
+++ trunk/matplotlib/lib/matplotlib/mpl-data/matplotlib.conf.backup     
2007-11-13 13:50:29 UTC (rev 4242)
@@ -1,456 +0,0 @@
-### MATPLOTLIBRC FORMAT
-
-# This is a sample matplotlib configuration file.  It should be placed
-# in HOME/.matplotlib/matplotlibrc (unix/linux like systems) and
-# C:\Documents and Settings\yourname\.matplotlib (win32 systems)
-#
-# By default, the installer will overwrite the existing file in the
-# install path, so if you want to preserve your's, please move it to
-# your HOME dir and set the environment variable if necessary.
-#
-# This file is best viewed in a editor which supports ini or conf mode
-# syntax highlighting
-#
-# Blank lines, or lines starting with a comment symbol, are ignored,
-# as are trailing comments.  Other lines must have the format
-#
-#   key = val   # optional comment
-#
-# val should be valid python syntax, just as you would use when setting
-# properties using rcParams. This should become more obvious by inspecting 
-# the default values listed herein.
-#
-# Colors: for the color values below, you can either use
-#  - a matplotlib color string, such as r, k, or b
-#  - an rgb tuple, such as (1.0, 0.5, 0.0)
-#  - a hex string, such as #ff00ff or ff00ff
-#  - a scalar grayscale intensity such as 0.75
-#  - a legal html color name, eg red, blue, darkslategray
-
-#### CONFIGURATION BEGINS HERE
-
-# numpy, Numeric or numarray
-numerix = 'numpy'
-
-# True to use external maskedarray module instead of numpy.ma; this is a 
-# temporary setting for testing maskedarray.
-maskedarray = False
-
-# see http://matplotlib.sourceforge.net/interactive.html
-interactive = False
-
-# None | classic | toolbar2
-toolbar = 'toolbar2'
-
-# a pytz timezone string, eg US/Central or Europe/Paris
-timezone = 'UTC'
-
-units = False
-
-# Where your matplotlib data lives if you installed to a non-default 
-#location.  This is where the matplotlib fonts, bitmaps, etc reside
-#datapath = '/home/fperez/.matplotlib'
-
-#bogus = 1
-#[bogus_section]
-#  foo = 1
-
-[backend]
-    
-    #[[bogus_subsection]]
-    #  bar  =1
-    
-    # 'GTKAgg', 'GTKCairo', 'QtAgg', 'Qt4Agg', 'TkAgg', 'Agg', 
-    # 'Cairo', 'PS', 'PDF', 'SVG'
-    use = 'TkAgg'
-    
-    [[cairo]]
-        # png, ps, pdf, svg
-        format = 'png'
-    
-    [[tk]]
-        # Maintain shell focus for TkAgg
-        window_focus = False
-        
-        # tk sets PYTHONINSEPCT
-        pythoninspect = False
-    
-    [[ps]]
-        # auto, letter, legal, ledger, A0-A10, B0-B10
-        papersize = 'letter'
-        
-        # use of afm fonts, results in smaller files
-        useafm = False
-        
-        # 3 (Type3) or 42 (TrueType)
-        fonttype = 3
-        
-        [[[distiller]]]
-            # can be: None, ghostscript or xpdf
-            # xpdf intended for production of publication quality 
-            # files, but requires ghostscript, xpdf and ps2eps
-            use = None
-            
-            # distiller resolution, dpi
-            resolution = 6000.0
-    
-    [[pdf]]
-        # integer from 0 to 9
-        # 0 disables compression (good for debugging)
-        compression = 6
-        
-        # 3 (Type3) or 42 (TrueType)
-        fonttype = 3
-    
-    [[svg]]
-        # write raster image data directly into the svg file
-        image_inline = True
-        
-        # suppress scaling of raster data embedded in SVG
-        image_noscale = False
-        
-        # embed character outlines in the SVG file
-        embed_chars = False
-
-[lines]
-    # See http://matplotlib.sourceforge.net/matplotlib.lines.html for more
-    # information on line properties.
-    
-    # line width in points
-    linewidth = 1.0
-    
-    # '-','--','-.', ':', 'steps', '', ' ', or None
-    linestyle = '-'
-    
-    color = 'blue'
-    
-    # The default marker: 'None', 'o', '.', ',', '^', 'v', '<', '>', 's', '+',
-    # 'x', 'D', 'd', '1', '2', '3', '4', 'h', 'H', 'p', '|', '_'
-    marker = 'None'
-    
-    # the line width around the marker symbol
-    markeredgewidth = 0.5
-    
-    # markersize, in points
-    markersize = 6.0
-    
-    # miter|round|bevel
-    dash_joinstyle = 'miter'
-    solid_joinstyle = 'miter'
-    
-    # butt|round|projecting
-    dash_capstyle = 'butt'
-    solid_capstyle = 'projecting'
-    
-    # render antialised lines (no jaggies)
-    antialiased = True
-
-[patch]
-    # Patches are graphical objects that fill 2D space, like polygons or
-    # circles.  See
-    # http://matplotlib.sourceforge.net/matplotlib.patches.html for more
-    # information on patch properties
-    
-    # edge width in points
-    linewidth = 1.0
-    
-    facecolor = 'blue'
-    edgecolor = 'black'
-    
-    # render antialised lines (no jaggies)
-    antialiased = True
-
-[font]
-    # font properties used by text.Text.  See
-    # http://matplotlib.sourceforge.net/matplotlib.font_manager.html for more
-    # information on font properties.  The 6 font properties used for font
-    # matching are given below with their default values.
-    #
-    # The font.family property has five values: 'serif' (e.g. Times),
-    # 'sans-serif' (e.g. Helvetica), 'cursive' (e.g. Zapf-Chancery),
-    # 'fantasy' (e.g. Western), and 'monospace' (e.g. Courier).  Each of
-    # these font families has a default list of font names in decreasing
-    # order of priority associated with them.
-    family = 'sans-serif'
-    
-    # The font.style property has three values: normal (or roman), italic
-    # or oblique.  The oblique style will be used for italic, if it is not
-    # present.
-    style = 'normal'
-    
-    # The font.variant property has two values: normal or small-caps.  For
-    # TrueType fonts, which are scalable fonts, small-caps is equivalent
-    # to using a font size of 'smaller', or about 83% of the current font
-    # size.
-    variant = 'normal'
-    
-    # The font.weight property has effectively 13 values= normal, bold,
-    # bolder, lighter, 100, 200, 300, ..., 900.  Normal is the same as
-    # 400, and bold is 700.  bolder and lighter are relative values with
-    # respect to the current weight.
-    weight = 'normal'
-    
-    # The font.stretch property has 11 values: ultra-condensed,
-    # extra-condensed, condensed, semi-condensed, normal, semi-expanded,
-    # expanded, extra-expanded, ultra-expanded, wider, and narrower.  This
-    # property is not currently implemented.
-    stretch = 'normal'
-    
-    # The font.size property is the default font size for text, given in pts.
-    # 12pt is the standard value.
-    #
-    # Note that font.size controls default text sizes.  To configure
-    # special text sizes tick labels, axes, labels, title, etc, see the rc
-    # settings for axes and ticks. Special text sizes can be defined
-    # relative to font.size, using the following values: xx-small, x-small,
-    # small, medium, large, x-large, xx-large, larger, or smaller
-    size = 12.0
-    
-    # A search list for each of the font families
-    serif = ['Bitstream Vera Serif', 'New Century Schoolbook', 'Century 
Schoolbook L', 'Utopia', 'ITC Bookman', 'Bookman', 'Nimbus Roman No9 L', 'Times 
New Roman', 'Times', 'Palatino', 'Charter', 'serif']
-    sans_serif = ['Bitstream Vera Sans', 'Lucida Grande', 'Verdana', 'Geneva', 
'Lucid', 'Arial', 'Helvetica', 'Avant Garde', 'sans-serif']
-    cursive = ['Apple Chancery', 'Textile', 'Zapf Chancery', 'Sand', 'cursive']
-    fantasy = ['Comic Sans MS', 'Chicago', 'Charcoal', 'Impact', 'Western', 
'fantasy']
-    monospace = ['Bitstream Vera Sans Mono', 'Andale Mono', 'Nimbus Mono L', 
'Courier New', 'Courier', 'Fixed', 'Terminal', 'monospace']
-
-[text]
-    # text properties used by text.Text.  See
-    # http://matplotlib.sourceforge.net/matplotlib.text.html for more
-    # information on text properties
-    color = 'black'
-    
-    ### LaTeX customizations
-    # See http://www.scipy.org/Wiki/Cookbook/Matplotlib/UsingTex
-    
-    # use latex for all text handling. The following fonts
-    # are supported through the usual rc parameter settings:
-    # new century schoolbook, bookman, times, palatino,
-    # zapf chancery, charter, serif, sans-serif, helvetica,
-    # avant garde, courier, monospace, computer modern roman,
-    # computer modern sans serif, computer modern typewriter
-    # If another font is desired which can loaded using the
-    # LaTeX \usepackage command, please inquire at the
-    # matplotlib mailing list
-    usetex = False
-    
-    [[latex]]
-        # use "ucs" and "inputenc" LaTeX packages for 
-        # handling unicode strings.
-        unicode = False
-        
-        # IMPROPER USE OF THE PREAMBLE WILL LEAD TO LATEX 
-        # FAILURES AND IS THEREFORE UNSUPPORTED. PLEASE DO NOT 
-        # ASK FOR HELP IF THIS FEATURE DOES NOT DO WHAT YOU 
-        # EXPECT IT TO.
-        # preamble is a comma separated list of LaTeX
-        # statements that are included in the LaTeX document 
-        # preamble.
-        # An example:
-        # text.latex.preamble = ["\usepackage{bm}", "\usepackage{euler}"]
-        # The following packages are always loaded with usetex,
-        # so beware of package collisions: color, geometry, 
-        # graphicx, type1cm, textcomp. Adobe Postscript 
-        # (PSSNFS) font packages may also be loaded, depending
-        # on your font settings
-        preamble = []
-        
-        # some versions of dvipng don't handle alpha channel properly.
-        # Use True to correct and flush ~/.matplotlib/tex.cache before 
-        # testing
-        dvipnghack = False
-
-[axes]
-    # default face and edge color, default tick sizes,
-    # default fontsizes for ticklabels, and so on.  See
-    # http://matplotlib.sourceforge.net/matplotlib.axes.html#Axes
-    
-    # whether to clear the axes by default
-    hold = True
-    
-    # axes background color
-    facecolor = 'white'
-    
-    # axes edge color
-    edgecolor = 'black'
-    
-    # edge linewidth
-    linewidth = 1.0
-    
-    # display grid on regular or polar axes
-    grid = False
-    polargrid = True
-    
-    # fontsize of the axes title and labels
-    titlesize = 'large'
-    labelsize = 'medium'
-    
-    labelcolor = 'black'
-    
-    # whether axis gridlines and ticks are below the axes elements 
-    # (lines, text, etc)
-    axisbelow = False
-    
-    [[formatter]]
-        # use scientific notation if log10 of the axis range is smaller 
-        # than the first or larger than the second
-        limits = [-7.0, 7.0]
-
-[xticks]
-    # see http://matplotlib.sourceforge.net/matplotlib.axis.html#Ticks
-    color = 'k'
-    labelsize = 'small'
-    
-    # direction: in or out
-    direction = 'in'
-    
-    [[major]]
-        # in points
-        size = 4.0
-        pad = 4.0
-    
-    [[minor]]
-        # in points
-        size = 2.0
-        pad = 4.0
-
-[yticks]
-    color = 'k'
-    labelsize = 'small'
-    
-    # direction: in or out
-    direction = 'in'
-    
-    [[major]]
-        # in points
-        size = 4.0
-        pad = 4.0
-    
-    [[minor]]
-        # in points
-        size = 2.0
-        pad = 4.0
-
-[grid]
-    color = 'black'
-    
-    # '-','--','-.', ':', 'steps', '', ' ', or None
-    linestyle = ':'
-    
-    linewidth = 0.5
-
-[legend]
-    loc = 'upper right'
-    
-    isaxes = True
-    
-    # the number of points in the legend line
-    numpoints = 2
-    
-    fontsize = 'medium'
-    
-    # the fractional whitespace inside the legend border
-    pad = 0.20000000000000001
-    
-    # the relative size of legend markers vs. original
-    # the following dimensions are in axes coords
-    markerscale = 1.0
-    
-    # the vertical space between the legend entries
-    labelsep = 0.01
-    
-    # the length of the legend lines
-    handlelen = 0.050000000000000003
-    
-    # the space between the legend line and legend text
-    handletextsep = 0.02
-    
-    # the border between the axes and legend edge
-    axespad = 0.02
-    
-    # Show a shadow behind the legend
-    shadow = False
-
-[figure]
-    # See http://matplotlib.sourceforge.net/matplotlib.figure.html#Figure
-    
-    # figure size in inches
-    figsize = [8.0, 6.0]
-    
-    # figure dots per inch
-    dpi = 80.0
-    
-    # figure face and edge colors; '0.75' is scalar gray
-    facecolor = '0.75'
-    edgecolor = 'white'
-    
-    [[subplot]]
-        # The figure subplot parameters.  All dimensions are fraction of the
-        # figure width or height
-        left = 0.125
-        right = 0.90000000000000002
-        bottom = 0.10000000000000001
-        top = 0.90000000000000002
-        
-        # the amount of width or height reserved for blank space between 
-        #subplots
-        wspace = 0.20000000000000001
-        hspace = 0.20000000000000001
-
-
-[image]
-    # equal | auto | a number
-    aspect = 'equal'
-    
-    # see help(imshow) for options
-    interpolation = 'bilinear'
-    cmap = 'jet'
-    
-    # the size of the colormap lookup table
-    lut = 256
-    
-    # 'lower' or 'upper'
-    origin = 'upper'
-
-
-[contour]
-    # 'dashed' or 'solid'
-    negative_linestyle = 'dashed'
-
-[savefig]
-    # Saving figures
-    # the default savefig params can be different for the GUI backends.
-    # Eg, you may want a higher resolution, or to make the figure
-    # background white
-    
-    # figure dots per inch
-    dpi = 100.0
-    
-    # figure face and edge colors
-    facecolor = 'white'
-    edgecolor = 'white'
-    orientation = 'portrait'
-
-[verbose]
-    # Set the verbose flags.  This controls how much information
-    # matplotlib gives you at runtime and where it goes.  The verbosity
-    # levels are: silent, helpful, debug, debug-annoying.  Any level is
-    # inclusive of all the levels below it.  If you setting is debug,
-    # you'll get all the debug and helpful messages.  When submitting
-    # problems to the mailing-list, please set verbose to helpful or debug
-    # and paste the output into your report.
-    #
-    # The fileo gives the destination for any calls to verbose.report.
-    # These objects can a filename, or a filehandle like sys.stdout.
-    #
-    # You can override the rc default verbosity from the command line by
-    # giving the flags --verbose-LEVEL where LEVEL is one of the legal
-    # levels, eg --verbose-helpful.
-    #
-    # You can access the verbose instance in your code
-    #   from matplotlib import verbose.
-    
-    # 'silent', 'helpful', 'debug', or 'debug-annoying'
-    level = 'silent'
-    
-    # a log filename, 'sys.stdout' or 'sys.stderr'
-    fileo = 'sys.stdout'

Added: trunk/matplotlib/lib/matplotlib/mpl-data/matplotlib.conf.template
===================================================================
--- trunk/matplotlib/lib/matplotlib/mpl-data/matplotlib.conf.template           
                (rev 0)
+++ trunk/matplotlib/lib/matplotlib/mpl-data/matplotlib.conf.template   
2007-11-13 13:50:29 UTC (rev 4242)
@@ -0,0 +1,410 @@
+# MPLConfig - plaintext (in .conf format)
+
+# This is a sample matplotlib configuration file.  It should be placed
+# in HOME/.matplotlib/matplotlibrc (unix/linux like systems) and
+# C:\Documents and Settings\yourname\.matplotlib (win32 systems)
+# 
+# By default, the installer will overwrite the existing file in the install
+# path, so if you want to preserve yours, please move it to your HOME dir and
+# set the environment variable if necessary.
+# 
+# This file is best viewed in a editor which supports ini or conf mode syntax
+# highlighting.
+# 
+# Blank lines, or lines starting with a comment symbol, are ignored,
+# as are trailing comments.  Other lines must have the format
+# 
+#   key = val   optional comment
+# 
+# val should be valid python syntax, just as you would use when setting
+# properties using rcParams. This should become more obvious by inspecting
+# the default values listed herein.
+# 
+# Colors: for the color values below, you can either use
+#  - a matplotlib color string, such as r, k, or b
+#  - an rgb tuple, such as (1.0, 0.5, 0.0)
+#  - a hex string, such as #ff00ff or ff00ff
+#  - a scalar grayscale intensity such as 0.75
+#  - a legal html color name, eg red, blue, darkslategray
+# 
+# Interactivity: see http://matplotlib.sourceforge.net/interactive.html.
+# 
+# ### CONFIGURATION BEGINS HERE ###
+
+# a value of type 'str'
+datapath = '/usr/lib64/python2.5/site-packages/matplotlib/mpl-data'
+# one of 0, on, false, 1, no, n, y, off, yes, true
+interactive = False
+# a value of type 'bool'
+maskedarray = False
+# 'numpy' or 'numeric' or 'numarray'
+numerix = 'numpy'
+# 'Africa/Abidjan' or 'Africa/Accra' or 'Africa/Addis_Ababa' or 
'Africa/Algiers'
+#  or 'Africa/Asmara' or 'Africa/Asmera' or 'Africa/Bamako' or 'Africa/Bangui' 
o
+# r 'Africa/Banjul' or 'Africa/Bissau' or 'Africa/Blantyre' or 
'Africa/Brazzavil
+#  <...snipped 10590 chars...> 
+# or 'Turkey' or 'UCT' or 'US/Alaska' or 'US/Aleutian' or 'US/Arizona' or 
'US/Ce
+# ntral' or 'US/East-Indiana' or 'US/Eastern' or 'US/Hawaii' or 
'US/Indiana-Star
+# ke' or 'US/Michigan' or 'US/Mountain' or 'US/Pacific' or 'US/Pacific-New' or 
'
+# US/Samoa' or 'UTC' or 'Universal' or 'W-SU' or 'WET' or 'Zulu' or 
'posixrules'
+timezone = 'UTC'
+# 'toolbar2' or None
+toolbar = 'toolbar2'
+# a value of type 'bool'
+units = False
+
+[axes]
+    # a value of type 'bool'
+    axisbelow = False
+    # any valid matplotlib color, eg an abbreviation like 'r' for red, a full
+    # name like 'orange', a hex color like '#efefef', a grayscale intensity
+    # like '0.5', or an RGBA tuple (1,0,0,1)
+    edgecolor = 'black'
+    # any valid matplotlib color, eg an abbreviation like 'r' for red, a full
+    # name like 'orange', a hex color like '#efefef', a grayscale intensity
+    # like '0.5', or an RGBA tuple (1,0,0,1)
+    facecolor = 'white'
+    # one of 0, on, false, 1, no, n, y, off, yes, true
+    grid = False
+    # one of 0, on, false, 1, no, n, y, off, yes, true
+    hold = True
+    # any valid matplotlib color, eg an abbreviation like 'r' for red, a full
+    # name like 'orange', a hex color like '#efefef', a grayscale intensity
+    # like '0.5', or an RGBA tuple (1,0,0,1)
+    labelcolor = 'black'
+    # a value of type 'float' or 'xx-small' or 'x-small' or 'small' or 
'medium' 
+    # or 'large' or 'x-large' or 'xx-large'
+    labelsize = 'medium'
+    # a value of type 'float'
+    linewidth = 1.0
+    # one of 0, on, false, 1, no, n, y, off, yes, true
+    polargrid = True
+    # a value of type 'float' or 'xx-small' or 'x-small' or 'small' or 
'medium' 
+    # or 'large' or 'x-large' or 'xx-large'
+    titlesize = 'large'
+
+    [[formatter]]
+        # a list of from 2 to 2 items each of which is a value of type 'float'
+        limits = [-7.0, 7.0]
+
+[backend]
+    # Valid backends are: 'GTKAgg', 'GTKCairo', 'QtAgg', 'Qt4Agg',
+    # 'TkAgg', 'Agg', 'Cairo', 'PS', 'PDF', 'SVG'
+    # one of ps, qt4agg, tkagg, gtkagg, agg, cairo, gtkcairo, wxagg, qtagg, 
temp
+    # late, svg, pdf
+    use = 'Agg'
+
+    [[cairo]]
+        # 'png' or 'ps' or 'pdf' or 'svg'
+        format = 'png'
+
+    [[pdf]]
+        # 0 <= an integer <= 9
+        compression = 6
+        # 3 or 42
+        fonttype = 3
+        # a value of type 'bool'
+        inheritcolor = False
+        # a value of type 'bool'
+        use14corefonts = False
+
+    [[ps]]
+        # 3 or 42
+        fonttype = 3
+        # 'auto' or 'letter' or 'legal' or 'ledger' or 'A0' or 'A1' or 'A2' or 
'
+        # A3' or 'A4' or 'A5' or 'A6' or 'A7' or 'A8' or 'A9' or 'A10' or 'B0' 
o
+        # r 'B1' or 'B2' or 'B3' or 'B4' or 'B5' or 'B6' or 'B7' or 'B8' or 
'B9'
+        #  or 'B10'
+        papersize = 'letter'
+        # a value of type 'bool'
+        useafm = False
+
+        [[[distiller]]]
+            # a value of type 'float'
+            resolution = 6000.0
+            # a bool or None or 'ghostscript' or 'xpdf'
+            use = None
+
+    [[svg]]
+        # a value of type 'bool'
+        embed_chars = True
+        # a value of type 'bool'
+        image_inline = True
+        # a value of type 'bool'
+        image_noscale = False
+
+    [[tk]]
+        # window_focus : Maintain shell focus for TkAgg
+        # pythoninspect: tk sets PYTHONINSPECT
+
+        # a value of type 'bool'
+        pythoninspect = False
+        # a value of type 'bool'
+        window_focus = False
+
+[contour]
+    # 'dashed' or 'solid'
+    negative_linestyle = 'dashed'
+
+[figure]
+    # a value of type 'float'
+    dpi = 80.0
+    # any valid matplotlib color, eg an abbreviation like 'r' for red, a full
+    # name like 'orange', a hex color like '#efefef', a grayscale intensity
+    # like '0.5', or an RGBA tuple (1,0,0,1)
+    edgecolor = 'white'
+    # any valid matplotlib color, eg an abbreviation like 'r' for red, a full
+    # name like 'orange', a hex color like '#efefef', a grayscale intensity
+    # like '0.5', or an RGBA tuple (1,0,0,1)
+    facecolor = '0.75'
+    # a list of from 2 to 2 items each of which is a value of type 'float'
+    figsize = [8.0, 6.0]
+
+    [[subplot]]
+        # The figure subplot parameters.  All dimensions are fraction
+        # of the figure width or height
+        # a value of type 'float'
+        bottom = 0.10000000000000001
+        # a value of type 'float'
+        hspace = 0.20000000000000001
+        # a value of type 'float'
+        left = 0.125
+        # a value of type 'float'
+        right = 0.90000000000000002
+        # a value of type 'float'
+        top = 0.90000000000000002
+        # a value of type 'float'
+        wspace = 0.20000000000000001
+
+[font]
+    # a list of items each of which is a value of type 'str'
+    cursive = ['Apple Chancery', 'Textile', 'Zapf Chancery', 'Sand', 'cursive']
+    # 'sans-serif' or 'serif' or 'cursive' or 'fantasy' or 'monospace'
+    family = 'sans-serif'
+    # a list of items each of which is a value of type 'str'
+    fantasy = ['Comic Sans MS', 'Chicago', 'Charcoal', 'Impact', 'Western', 
'fantasy']
+    # a list of items each of which is a value of type 'str'
+    monospace = ['Bitstream Vera Sans Mono', 'Andale Mono', 'Nimbus Mono L', 
'Courier New', 'Courier', 'Fixed', 'Terminal', 'monospace']
+    # a list of items each of which is a value of type 'str'
+    sans_serif = ['Bitstream Vera Sans', 'Lucida Grande', 'Verdana', 'Geneva', 
'Lucid', 'Arial', 'Helvetica', 'Avant Garde', 'sans-serif']
+    # a list of items each of which is a value of type 'str'
+    serif = ['Bitstream Vera Serif', 'New Century Schoolbook', 'Century 
Schoolbook L', 'Utopia', 'ITC Bookman', 'Bookman', 'Nimbus Roman No9 L', 'Times 
New Roman', 'Times', 'Palatino', 'Charter', 'serif']
+    # a value of type 'float'
+    size = 12.0
+    # 'ultra-condensed' or 'extra-condensed' or 'condensed' or 
'semi-condensed' 
+    # or 'normal' or 'semi-expanded' or 'expanded' or 'extra-expanded' or 
'ultra
+    # -expanded' or 'wider' or 'narrower'
+    stretch = 'normal'
+    # 'normal' or 'italic' or 'oblique'
+    style = 'normal'
+    # 'normal' or 'small-caps'
+    variant = 'normal'
+    # 'normal' or 'bold' or 'bolder' or 'lighter' or 100 or 200 or 300 or 400 
or
+    #  500 or 600 or 700 or 800 or 900
+    weight = 'normal'
+
+[grid]
+    # any valid matplotlib color, eg an abbreviation like 'r' for red, a full
+    # name like 'orange', a hex color like '#efefef', a grayscale intensity
+    # like '0.5', or an RGBA tuple (1,0,0,1)
+    color = 'black'
+    # '-' or '--' or '-.' or ':' or 'steps' or '' or ' '
+    linestyle = ':'
+    # a value of type 'float'
+    linewidth = 0.5
+
+[image]
+    # a value of type 'float' or 'equal' or 'auto'
+    aspect = 'equal'
+    # 'Accent' or 'Accent_r' or 'Blues' or 'Blues_r' or 'BrBG' or 'BrBG_r' or 
'B
+    # uGn' or 'BuGn_r' or 'BuPu' or 'BuPu_r' or 'Dark2' or 'Dark2_r' or 'GnBu' 
o
+    # r 'GnBu_r' or 'Greens' or 'Greens_r' or 'Greys' or 'Greys_r' or 'OrRd' 
or 
+    #  <...snipped 1010 chars...> 
+    # ist_stern' or 'gist_stern_r' or 'gist_yarg' or 'gist_yarg_r' or 'gray' 
or 
+    # 'gray_r' or 'hot' or 'hot_r' or 'hsv' or 'hsv_r' or 'jet' or 'jet_r' or 
'p
+    # ink' or 'pink_r' or 'prism' or 'prism_r' or 'spectral' or 'spectral_r' 
or 
+    # 'spring' or 'spring_r' or 'summer' or 'summer_r' or 'winter' or 
'winter_r'
+    cmap = 'jet'
+    # 'bilinear' or 'nearest' or 'bicubic' or 'spline16' or 'spline36' or 
'hanni
+    # ng' or 'hamming' or 'hermite' or 'kaiser' or 'quadric' or 'catrom' or 
'gau
+    # ssian' or 'bessel' or 'mitchell' or 'sinc' or 'lanczos' or 'blackman'
+    interpolation = 'bilinear'
+    # a value of type 'int'
+    lut = 256
+    # 'upper' or 'lower'
+    origin = 'upper'
+
+[legend]
+    # a value of type 'float'
+    axespad = 0.02
+    # a value of type 'float' or 'xx-small' or 'x-small' or 'small' or 
'medium' 
+    # or 'large' or 'x-large' or 'xx-large'
+    fontsize = 'medium'
+    # a value of type 'float'
+    handlelen = 0.050000000000000003
+    # a value of type 'float'
+    handletextsep = 0.02
+    # a value of type 'bool'
+    isaxes = True
+    # a value of type 'float'
+    labelsep = 0.01
+    # 'best' or 'upper right' or 'upper left' or 'lower left' or 'lower right' 
o
+    # r 'right' or 'center left' or 'center right' or 'lower center' or 'upper 
c
+    # enter' or 'center'
+    loc = 'upper right'
+    # a value of type 'float'
+    markerscale = 1.0
+    # a value of type 'int'
+    numpoints = 3
+    # a value of type 'float'
+    pad = 0.20000000000000001
+    # a value of type 'bool'
+    shadow = False
+
+[lines]
+    # a value of type 'bool'
+    antialiased = True
+    # any valid matplotlib color, eg an abbreviation like 'r' for red, a full
+    # name like 'orange', a hex color like '#efefef', a grayscale intensity
+    # like '0.5', or an RGBA tuple (1,0,0,1)
+    color = 'blue'
+    # 'butt' or 'round' or 'projecting'
+    dash_capstyle = 'butt'
+    # 'miter' or 'round' or 'bevel'
+    dash_joinstyle = 'miter'
+    # '-' or '--' or '-.' or ':' or 'steps' or '' or ' ' or None
+    linestyle = '-'
+    # a value of type 'float'
+    linewidth = 1.0
+    # 'None' or 'o' or '.' or ',' or '^' or 'v' or '<' or '>' or 's' or '+' or 
'
+    # x' or 'D' or 'd' or '1' or '2' or '3' or '4' or 'h' or 'H' or 'p' or '|' 
o
+    # r '_'
+    marker = 'None'
+    # a value of type 'float'
+    markeredgewidth = 0.5
+    # a value of type 'float'
+    markersize = 6.0
+    # 'butt' or 'round' or 'projecting'
+    solid_capstyle = 'butt'
+    # 'miter' or 'round' or 'bevel'
+    solid_joinstyle = 'miter'
+
+[mathtext]
+    # A fontconfig pattern.  See the fontconfig user manual for more 
information
+    # .
+    bf = 'serif:bold'
+    # A fontconfig pattern.  See the fontconfig user manual for more 
information
+    # .
+    cal = 'cursive'
+    # a value of type 'bool'
+    fallback_to_cm = True
+    # 'cm' or 'stix' or 'stixsans' or 'custom'
+    fontset = 'cm'
+    # A fontconfig pattern.  See the fontconfig user manual for more 
information
+    # .
+    it = 'serif:oblique'
+    # A fontconfig pattern.  See the fontconfig user manual for more 
information
+    # .
+    rm = 'serif'
+    # A fontconfig pattern.  See the fontconfig user manual for more 
information
+    # .
+    sf = 'sans'
+    # A fontconfig pattern.  See the fontconfig user manual for more 
information
+    # .
+    tt = 'monospace'
+
+[patch]
+    # a value of type 'bool'
+    antialiased = True
+    # any valid matplotlib color, eg an abbreviation like 'r' for red, a full
+    # name like 'orange', a hex color like '#efefef', a grayscale intensity
+    # like '0.5', or an RGBA tuple (1,0,0,1)
+    edgecolor = 'black'
+    # any valid matplotlib color, eg an abbreviation like 'r' for red, a full
+    # name like 'orange', a hex color like '#efefef', a grayscale intensity
+    # like '0.5', or an RGBA tuple (1,0,0,1)
+    facecolor = 'blue'
+    # a value of type 'float'
+    linewidth = 1.0
+
+[savefig]
+    # a value of type 'float'
+    dpi = 100.0
+    # any valid matplotlib color, eg an abbreviation like 'r' for red, a full
+    # name like 'orange', a hex color like '#efefef', a grayscale intensity
+    # like '0.5', or an RGBA tuple (1,0,0,1)
+    edgecolor = 'white'
+    # any valid matplotlib color, eg an abbreviation like 'r' for red, a full
+    # name like 'orange', a hex color like '#efefef', a grayscale intensity
+    # like '0.5', or an RGBA tuple (1,0,0,1)
+    facecolor = 'white'
+    # 'portrait' or 'landscape'
+    orientation = 'portrait'
+
+[text]
+    # any valid matplotlib color, eg an abbreviation like 'r' for red, a full
+    # name like 'orange', a hex color like '#efefef', a grayscale intensity
+    # like '0.5', or an RGBA tuple (1,0,0,1)
+    color = 'black'
+    # a value of type 'bool'
+    usetex = False
+
+    [[latex]]
+        # a value of type 'bool'
+        dvipnghack = False
+        # a list of items each of which is a value of type 'str'
+        preamble = []
+        # a value of type 'bool'
+        unicode = False
+
+[verbose]
+    # a value of type 'str' or a value of type 'unicode' or 'sys.stdout'
+    fileo = 'sys.stdout'
+    # 'silent' or 'helpful' or 'debug' or 'debug-annoying'
+    level = 'silent'
+
+[xticks]
+    # any valid matplotlib color, eg an abbreviation like 'r' for red, a full
+    # name like 'orange', a hex color like '#efefef', a grayscale intensity
+    # like '0.5', or an RGBA tuple (1,0,0,1)
+    color = 'black'
+    # 'in' or 'out'
+    direction = 'in'
+    # a value of type 'float' or 'xx-small' or 'x-small' or 'small' or 
'medium' 
+    # or 'large' or 'x-large' or 'xx-large'
+    labelsize = 'small'
+
+    [[major]]
+        # a value of type 'float'
+        pad = 4.0
+        # a value of type 'float'
+        size = 4.0
+
+    [[minor]]
+        # a value of type 'float'
+        pad = 4.0
+        # a value of type 'float'
+        size = 2.0
+
+[yticks]
+    # any valid matplotlib color, eg an abbreviation like 'r' for red, a full
+    # name like 'orange', a hex color like '#efefef', a grayscale intensity
+    # like '0.5', or an RGBA tuple (1,0,0,1)
+    color = 'black'
+    # 'in' or 'out'
+    direction = 'in'
+    # a value of type 'float' or 'xx-small' or 'x-small' or 'small' or 
'medium' 
+    # or 'large' or 'x-large' or 'xx-large'
+    labelsize = 'small'
+
+    [[major]]
+        # a value of type 'float'
+        pad = 4.0
+        # a value of type 'float'
+        size = 4.0
+
+    [[minor]]
+        # a value of type 'float'
+        pad = 4.0
+        # a value of type 'float'
+        size = 2.0
\ No newline at end of file

Modified: trunk/matplotlib/setup.py
===================================================================
--- trunk/matplotlib/setup.py   2007-11-12 23:38:12 UTC (rev 4241)
+++ trunk/matplotlib/setup.py   2007-11-13 13:50:29 UTC (rev 4242)
@@ -133,21 +133,21 @@
 print_raw("")
 print_raw("OPTIONAL BACKEND DEPENDENCIES")
 
+if check_for_libpng() and options['build_agg']:
+    build_agg(ext_modules, packages)
+    rc['backend'] = 'Agg'
+else:
+    rc['backend'] = 'SVG'
 
+if options['build_image']:
+    build_image(ext_modules, packages)
+
+if options['build_windowing'] and sys.platform=='win32':
+   build_windowing(ext_modules, packages)
+
 # the options can be True, False, or 'auto'. If True, try to build
 # regardless of the lack of dependencies. If auto, silently skip 
 # when dependencies are missing.
-hasgtk = check_for_gtk()
-if options['build_gtk']:
-    if hasgtk or (options['build_gtk'] is True):
-        build_gdk(ext_modules, packages)
-        rc['backend'] = 'GTK'
-if options['build_gtkagg']:
-    if hasgtk or (options['build_gtkagg'] is True):
-        options['build_agg'] = 1
-        build_gtkagg(ext_modules, packages)
-        rc['backend'] = 'GTKAgg'
-
 if options['build_tkagg']:
     if check_for_tk() or (options['build_tkagg'] is True):
         options['build_agg'] = 1
@@ -165,27 +165,22 @@
             print_message("WxAgg extension not required for wxPython >= 2.8")
         rc['backend'] = 'WXAgg'
 
+hasgtk = check_for_gtk()
+if options['build_gtk']:
+    if hasgtk or (options['build_gtk'] is True):
+        build_gdk(ext_modules, packages)
+        rc['backend'] = 'GTK'
+if options['build_gtkagg']:
+    if hasgtk or (options['build_gtkagg'] is True):
+        options['build_agg'] = 1
+        build_gtkagg(ext_modules, packages)
+        rc['backend'] = 'GTKAgg'
+
 # These are informational only.  We don't build any extensions for them.
 check_for_qt()
 check_for_qt4()
 check_for_cairo()
-    
-if check_for_libpng() and options['build_agg']:
-    build_agg(ext_modules, packages)
-    rc['backend'] = 'Agg'
-else:
-    rc['backend'] = 'SVG'
 
-if options['build_windowing'] and sys.platform=='win32':
-   build_windowing(ext_modules, packages)
-
-if options['build_image']:
-    build_image(ext_modules, packages)
-
-for mod in ext_modules:
-    if options['verbose']:
-        mod.extra_compile_args.append('-DVERBOSE')
-
 print_raw("")
 print_raw("OPTIONAL DATE/TIMEZONE DEPENDENCIES")
 
@@ -253,9 +248,20 @@
 template = file('matplotlibrc.template').read()
 file('lib/matplotlib/mpl-data/matplotlibrc', 'w').write(template%rc)
 
+# Write the default matplotlib.conf file
+template = file('lib/matplotlib/mpl-data/matplotlib.conf.template').read()
+template = template.replace("datapath = ", "#datapath = ")
+template = template.replace("numerix = 'numpy'", "numerix = 
'%s'"%rc['numerix'])
+template = template.replace("    use = 'Agg'", "    use = '%s'"%rc['backend'])
+file('lib/matplotlib/mpl-data/matplotlib.conf', 'w').write(template)
+
 try: additional_params # has setupegg.py provided
 except NameError: additional_params = {}
 
+for mod in ext_modules:
+    if options['verbose']:
+        mod.extra_compile_args.append('-DVERBOSE')
+
 distrib = setup(name="matplotlib",
       version= __version__,
       description = "Matlab(TM) style python plotting package",


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to