
t,2Jc           @   s:  d  Z  d d k l Z d Z d Z d Z d d k Z d d k Z d d k Z d d k	 Z	 d d k
 Z
 d d k Z d d k Z d d k Z e Z e e
 d  p d g e
 _ n d d k
 Z
 d d k Z d d k Z d d	 k l Z l Z l Z d d
 k l Z e
 i \ Z Z Z Z Z e d j o
 e d j Z e  Z! e p e" d   n d d k# Z# e# i i$ d  Z% e& e% d  d j o e& e% d  d j p e" d e# i   n d   Z' d   Z( d dX d     YZ) e)   Z* d   Z+ d   Z, d   Z- d   Z. d   Z/ d   Z0 d   Z1 d   Z2 e* i3 d e2 d e Z4 d    Z5 e* i3 d! e5 d e Z6 d"   Z7 d#   Z8 e* i3 d$ e8 d e Z9 d%   Z: d&   Z; d'   Z< h d( d) 6d( d* 6d+ d, 6d- d. 6d/ d0 6d1 d2 6Z= h d3 d4 6d5 d6 6d7 d8 6d9 d: 6d; d< 6Z> d= e? f d>     YZ@ e d?  ZA eA   ZB e@ g  ZC e iD   D] \ ZE \ ZF ZG eC eE eF f q;[C  ZH e0 eB d@  eB d@ <e1 eB dA  eB dA <dB   ZI dC   ZJ e ol yH d dD kK lB ZB lJ ZJ lL ZL lM ZM e* iN eB dE  e* iO eB dF  Wqd dG kK lB ZB lJ ZJ qXn dH ZP e  dI  ZQ dJ   ZR dK   ZS dL   ZT dM   ZU xj e
 i d D][ Z e iV dN  oE eW e  d j o2 y eQ e d  WqeX eY f j
 o qXqWqWWe* iZ dO e  e* iZ dP e* i[  e* iZ dQ eB dR  e* iZ dS eB dT  e* iZ dU e
 i\  e* iZ dV e
 i] i^   dW  d S(Y   sx  
This is an object-orient plotting library.

A procedural interface is provided by the companion pylab module,
which may be imported directly, e.g::

    from pylab import *

or using ipython::

    ipython -pylab

For the most part, direct use of the object-oriented library is
encouraged when programming rather than working interactively.  The
exceptions are the pylab commands :func:`~matplotlib.pyplot.figure`,
:func:`~matplotlib.pyplot.subplot`,
:func:`~matplotlib.backends.backend_qt4agg.show`, and
:func:`~pyplot.savefig`, which can greatly simplify scripting.

Modules include:

    :mod:`matplotlib.axes`
        defines the :class:`~matplotlib.axes.Axes` class.  Most pylab
        commands are wrappers for :class:`~matplotlib.axes.Axes`
        methods.  The axes module is the highest level of OO access to
        the library.

    :mod:`matplotlib.figure`
        defines the :class:`~matplotlib.figure.Figure` class.

    :mod:`matplotlib.artist`
        defines the :class:`~matplotlib.artist.Artist` base class for
        all classes that draw things.

    :mod:`matplotlib.lines`
        defines the :class:`~matplotlib.lines.Line2D` class for
        drawing lines and markers

    :mod:`matplotlib.patches`
        defines classes for drawing polygons

    :mod:`matplotlib.text`
        defines the :class:`~matplotlib.text.Text`,
        :class:`~matplotlib.text.TextWithDash`, and
        :class:`~matplotlib.text.Annotate` classes

    :mod:`matplotlib.image`
        defines the :class:`~matplotlib.image.AxesImage` and
        :class:`~matplotlib.image.FigureImage` classes

    :mod:`matplotlib.collections`
        classes for efficient drawing of groups of lines or polygons

    :mod:`matplotlib.colors`
        classes for interpreting color specifications and for making
        colormaps

    :mod:`matplotlib.cm`
        colormaps and the :class:`~matplotlib.image.ScalarMappable`
        mixin class for providing color mapping functionality to other
        classes

    :mod:`matplotlib.ticker`
        classes for calculating tick mark locations and for formatting
        tick labels

    :mod:`matplotlib.backends`
        a subpackage with modules for various gui libraries and output
        formats

The base matplotlib namespace includes:

    :data:`~matplotlib.rcParams`
        a global dictionary of default configuration settings.  It is
        initialized by code which may be overridded by a matplotlibrc
        file.

    :func:`~matplotlib.rc`
        a function for setting groups of rcParams values

    :func:`~matplotlib.use`
        a function for setting the matplotlib backend.  If used, this
        function must be called immediately after importing matplotlib
        for the first time.  In particular, it must be called
        **before** importing pylab (if pylab is imported).

matplotlib is written by John D. Hunter (jdh2358 at gmail.com) and a
host of others.
i(   t
   generatorss   0.98.5.3s   $Revision: 6890 $s5   $Date: 2009-02-08 12:29:42 -0800 (Sun, 08 Feb 2009) $Nt   argvt	   modpython(   t   defaultParamst   validate_backendt   validate_toolbar(   t   validate_cairo_formati   i   s'   matplotlib requires Python 2.4 or latert   .i    i   s+   numpy 1.1 or later is required; you have %sc         C   sB   t  |  d  o d Sy |  d Wn t t f j
 o d SXd S(   Nt   shapei    t    i   (   t   hasattrt	   TypeErrort
   ValueError(   t   obj(    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyt   is_string_like   s       c      	   C   so   y |  d Wn t  j
 o t SXy- t i d |   } | i d  | i   Wn t j
 o t SXt Sd S(   sm   
    p is a string pointing to a putative writable dir -- return True p
    is such a string, else False
    R	   t   dirt   1N(   R   t   Falset   tempfilet   TemporaryFilet   writet   closet   OSErrort   True(   t   pt   t(    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyt   _is_writable_dir   s       t   Verbosec           B   s   e  Z d  Z d Z e g  Z e e  D] \ Z Z e e e f q& [  Z	 d Z x6 e i d D]' Z e i d  p q_ n e d Z q_ Wd   Z d	   Z d
   Z d d  Z d e d  Z d   Z RS(   s   
    A class to handle reporting.  Set the fileo attribute to any file
    instance to handle the output.  Default is sys.stdout
    t   silentt   helpfult   debugs   debug-annoyingi   s
   --verbose-i
   c         C   s   |  i  d  t i |  _ d  S(   NR   (   t	   set_levelt   syst   stdoutt   fileo(   t   self(    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyt   __init__   s    c         C   sW   |  i  d j	 o |  i  } n | |  i j o t d | |  i f   n | |  _ d S(   s6   set the verbosity to one of the Verbose.levels stringss1   Illegal verbose string "%s".  Legal values are %sN(   t   _commandLineVerboset   Nonet   levelsR   t   level(   R#   R(   (    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyR      s
    c         C   s~   h t  i d 6t  i d 6} | | j o | | |  _ nC y t | d  } Wn# t j
 o t d |   n X| |  _ d  S(   Ns
   sys.stdouts
   sys.stderrt   wsf   Verbose object could not open log file "%s" for writing.
Check your matplotlibrc verbose.fileo setting(   R    R!   t   stderrR"   t   filet   IOErrorR   (   R#   t   fnamet   stdR"   (    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyt	   set_fileo   s    
c         C   s&   |  i  |  o |  i | IJt St S(   s   
        print message s to self.fileo if self.level>=level.  Return
        value indicates whether a message was issued

        (   t   geR"   R   R   (   R#   t   sR(   (    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyt   report   s    c            s7          f d    t   _  i  _  S(   s8  
        return a callable function that wraps func and reports it
        output through the verbose handler if current verbosity level
        is higher than level

        if always is True, the report will occur on every function
        call; otherwise only on the first time the function is called
        c             sV    |  |   }  p  i  o1  i  |    }  i  p |  _  qR n | S(   N(   t   _spokeR2   (   t   argst   kwargst   rett   spoke(   R(   t   alwaysR#   t   wrappert   funct   fmt(    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyR9      s    
 (   R   R3   t   __doc__(   R#   R;   R:   R(   R8   (    (   R(   R8   R#   R9   R:   R;   sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyt   wrap   s    
	c         C   s   |  i  |  i |  i  | j S(   s%   return true if self.level is >= level(   t   valdR(   (   R#   R(   (    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyR0      s    (   s   silentR   s   debugs   debug-annoyingN(   t   __name__t
   __module__R<   R'   t   dictt   _[1]t	   enumeratet   iR(   R>   R&   R%   R    R   t   argt
   startswithR$   R   R/   R2   R   R=   R0   (    (    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyR      s   9  				c       	   C   sv   yR t  i d d g d t  i d t  i }  |  i i   d } | i   d } | SWn t t t f j
 o d  SXd  S(   Nt   dvipngs   -versionR!   R*   i   i(
   t
   subprocesst   Popent   PIPER!   t	   readlinest   splitt
   IndexErrorR   R   R&   (   R1   t   linet   v(    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyt   checkdep_dvipng  s    c       	   C   s   yh t  i d j o d d g }  n d d g }  t i |  d t i d t i } | i i   d  } | SWn t t t	 f j
 o d  SXd  S(   Nt   win32t   gswin32cs	   --versiont   gsR!   R*   i(   R    t   platformRH   RI   RJ   R!   t   readRM   R   R   R&   (   t   command_argsR1   RO   (    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyt   checkdep_ghostscript  s    c       	   C   s   yi t  i d d g d t  i d t  i }  |  i i   d } d } t i | |  } | i d  } | SWn  t t	 t
 t f j
 o d  SXd  S(   Nt   texs   -versionR!   R*   i    s   3\.1\d+(   RH   RI   RJ   R!   RK   t   ret   searcht   groupRM   R   t   AttributeErrorR   R&   (   R1   RN   t   patternt   matchRO   (    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyt   checkdep_tex  s    c       	   C   s   yd t  i d d g d t  i d t  i }  x2 |  i D]' } d | j o | i   d } q4 q4 W| SWn  t t t t f j
 o d  SXd  S(   Nt   pdftopss   -vR!   R*   t   versioni(
   RH   RI   RJ   R*   RL   RM   R   t   UnboundLocalErrorR   R&   (   R1   RN   RO   (    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyt   checkdep_pdftops%  s    
 c         C   sM   |  o> t  i i |   }  t  i i |  } |  | j o t St Sn t Sd S(   s.   return True if a is greater than or equal to bN(   t	   distutilsRa   t   LooseVersionR   R   (   t   at   b(    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyt   compare_versions0  s     c         C   s  |  p t  St } d } d } t   } t | |  o nC t | |  o t i d | | f  n t  } t i d |  |  d j oi d } d } t   } t | |  o q t | |  o t | d  o q t  } t i d |  n | o |  St  Sd  S(	   Ns   7.07s_   ghostscript-%s found. ghostscript-%s or later is recommended to use the ps.usedistiller option.sn   matplotlibrc ps.usedistiller option can not be used unless ghostscript-%s or later is installed on your systemt   xpdfs   3.0s   0.9s   1.0sg   matplotlibrc ps.usedistiller can not be set to xpdf unless xpdf-%s or later is installed on your system(	   R   R   RW   Rh   t   verboseR2   t   warningst   warnRc   (   R1   t   flagt   gs_reqt   gs_suggt   gs_vt   pdftops_reqt   pdftops_req_altt	   pdftops_v(    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyt   checkdep_ps_distiller9  s:    	 				c   	      C   s   |  p t  Sd } d } d } d } t } t   } t | |  o n t  } t i d |  t   } t | |  o n t  } t i d  t   } t | |  o nC t | |  o t i	 d | | f  n t  } t i d |  | S(   Ns   3.1415s   7.07s   1.5sb   matplotlibrc text.usetex option can not be used unless TeX-%s or later is installed on your systemsq   matplotlibrc text.usetex can not be used with *Agg backend unless dvipng-1.5 or later is installed on your systemsa   ghostscript-%s found. ghostscript-%s or later is recommended for use with the text.usetex option.sc   matplotlibrc text.usetex can not be used unless ghostscript-%s or later is installed on your system(
   R   R   R_   Rh   Rk   Rl   RP   RW   Rj   R2   (	   R1   t   tex_reqRn   Ro   t
   dvipng_reqRm   t   tex_vt   dvipng_vRp   (    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyt   checkdep_usetex]  s8    	 		 	 		c       	   C   s   d }  y t  i i d  }  Wn n Xt  i i |   pH xE d D]9 } y) t  i | }  t  i i |   o Pn Wq@ q@ Xq@ Wn |  o |  St d   d S(	   s   Find user's home directory if possible.
    Otherwise raise error.

    :see:  http://mail.python.org/pipermail/python-list/2005-February/263921.html
    R	   t   ~t   HOMEt   USERPROFILEt   TMPs(   please define environment variable $HOMEN(   s   HOMEs   USERPROFILER}   (   t   ost   patht
   expandusert   isdirt   environt   RuntimeError(   R   t   evar(    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyt	   _get_home  s"     	 s   $HOME=%sR8   c          C   s   t  i i d  }  |  d j	 o& t |   p t d |    n |  St   } t  i i t   d  } t  i i	 |  o+ t |  p t d | | f   q n/ t |  p t d |   n t  i
 |  | S(   s   
    Return the string representing the configuration dir.

    default is HOME/.matplotlib.  you can override this with the
    MPLCONFIGDIR environment variable
    t   MPLCONFIGDIRs$   Could not write to MPLCONFIGDIR="%s"s   .matplotlibs   '%s' is not a writable dir; you must set %s/.matplotlib to be a writable dir.  You can also set environment variable MPLCONFIGDIR to any writable directory where you want matplotlib data stored sx   Failed to create %s/.matplotlib; consider setting MPLCONFIGDIR to a writable directory for matplotlib configuration dataN(   R~   R   t   getR&   R   R   t   get_homeR   t   joint   existst   mkdir(   t	   configdirt   hR   (    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyt   _get_configdir  s    	s   CONFIGDIR=%sc          C   s  d t  i j o5 t  i d }  t  i i |   p t d   n |  St  i i t  i i t  d g  }  t  i i |   o |  Sd d k	 } t  i i t  i i | i
 i  d g  }  t  i i |   o |  St t d d  o t  i i t  i i t i d  d d  }  t  i i |   o |  St  i i t  i i t  i i t i d  d  d d  }  t  i i |   o |  St  i i t i d d  }  t  i i |   o |  Sn t d   d S(	   s   get the path to matplotlib datat   MATPLOTLIBDATAs2   Path in environment MATPLOTLIBDATA not a directorys   mpl-dataiNt   frozeni    s(   Could not find the matplotlib data files(   R~   R   R   R   R   t   sepR   t   dirnamet   __file__t   matplotlib.afmt   afmt   getattrR    R&   RL   (   R   t
   matplotlib(    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyt   _get_data_path  s0    $ * , 3	  	c           C   s6   t  d d d  j o t   t  d d <n t  d d S(   Nt   datapathi    (   R   R&   R   (    (    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyt   _get_data_path_cached  s    s   matplotlib data path %sc         C   sg   t  i i t   d  } t  i i | |   } t  i i |  p t d |  | f   n t | d  S(   s   
    return a filehandle to one of the example files in mpl-data/example

    *fname*
        the name of one of the files in mpl-data/example
    t   examplesB   could not find matplotlib example file "%s" in data directory "%s"t   rb(   R~   R   R   t   get_data_pathR   R,   R+   (   R-   t   datadirt   fullpath(    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyt   get_example_data  s    c    	      C   s   t    }  t i i |   \ } } h  } x t i |   D] \ } } } d | j o | i d  n g  } | D] } | t i i | |  qo ~ } | i | d  } | | i d  } | | | <q7 W| i	   S(   Ns   Matplotlib.nibs   mpl-data(
   R   R~   R   RL   t   walkt   removeR   t   replacet   indext   items(	   R   t   headt   tailt   dt   roott   dirst   filesRB   t   filename(    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyt   get_py2exe_datafiles  s    	 0c          C   s  t  i i t  i   d  }  t  i i |   o! t i d IJt i d d  n t	   } t  i i | d  }  t  i i |   oI t
   } t  i i | d  } t i d |  | f IJt i |  |  n t  i i t  i   d  } t  i i |  o | Sd t  i j oU t  i d } t  i i |  o1 t  i i | d  } t  i i |  o | Sqan t  i i t
   d  } t  i i |  o | St   } t  i i | d  } t  i i |  p t i d  n | S(   s   
    Return the path to the rc file

    Search order:

     * current working dir
     * environ var MATPLOTLIBRC
     * HOME/.matplotlib/matplotlibrc
     * MATPLOTLIBDATA/matplotlibrc


    s   .matplotlibrcs   WARNING: Old rc filename ".matplotlibrc" found in working dir
  and and renamed to new default rc file name "matplotlibrc"
  (no leading"dot"). t   matplotlibrcsS   WARNING: Old rc filename "%s" found and renamed to
  new default rc file name "%s".t   MATPLOTLIBRCs+   Could not find matplotlibrc; using defaults(   R~   R   R   t   getcwdR   R    R*   t   shutilt   moveR   t   get_configdirR   R   Rk   Rl   (   t   oldnamet   homeR   t   newnameR-   R   (    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyt   matplotlib_fname	  s<    		  	s
   font.styles   text.fontstyles   text.fontangles   font.variants   text.fontvariants   font.weights   text.fontweights	   font.sizes   text.fontsizes   tick.major.sizes	   tick.sizes   legend.borderpads
   legend.pads   legend.labelspacings   legend.labelseps   legend.handlelengths   legend.handlelens   legend.handletextpads   legend.handletextseps   legend.borderaxespads   legend.axespadt   RcParamsc           B   sV   e  Z d  Z e g  Z e i   D] \ Z \ Z Z	 e e e	 f q  [  Z
 d   Z RS(   s   
    A dictionary object including validation

    validating functions are defined and associated with rc parameters in
    :mod:`matplotlib.rcsetup`
    c         C   s   y | t  i   j o+ t  | } t i d | | f  | } n4 | t j o& t | } t i d | | f  d  S|  i | |  } t i |  | |  Wn# t j
 o t d |   n Xd  S(   Ns1   %s is deprecated in matplotlibrc. Use %s instead.s!   %s is deprecated. Use %s instead.sR   %s is not a valid rc parameter.See rcParams.keys() for a list of valid parameters.(	   t   _deprecated_mapt   keysRk   Rl   t   _deprecated_ignore_mapt   validateRA   t   __setitem__t   KeyError(   R#   t   keyt   valt   altt   cval(    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyR   ^  s    


(   R?   R@   R<   RA   RB   R   t	   iteritemsR   t   defaultt	   converterR   R   (    (    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyR   R  s   
5c         C   s  t    } t i i |  pW d } t g  } t i   D] \ } \ } } | | | f q6 ~  } t i |  | Sd } h  }	 x t	 |  D] }
 | d 7} |
 i
 d d  d i   } | p q n | i
 d d  } t |  d j o! t i d | |
 | f  q n | \ } } | i   } | i   } | |	 j o t i d | | f  n | |
 | f |	 | <q Wt g  } t i   D] \ } \ } } | | | f q~  } x d D] } | |	 j ow |	 i |  \ } }
 } |  o | | | <q?y | | | <Wq?t j
 o) } t i d | | |
 | | f  q?XqqWt i | d	  t i | d
  x |	 i   D] \ } \ } }
 } | t j o_ |  o | | | <q9y | | | <Wq9t j
 o) } t i d | | |
 | | f  q9Xqr| t j o t i d | t | f  qrt i d | | | f IJqrW| d d j o t   | d <n | d d g j p% t i d d i | d  d  n t i d |  | S(   s@   Return the default params updated from the values in the rc files*   could not find rc file; returning defaultsi    i   t   #t   :i   s"   Illegal line #%d
	%s
	in file "%s"s$   Duplicate key in file "%s", line #%ds   verbose.levels   verbose.fileos0   Bad val "%s" on line #%d
	"%s"
	in file "%s"
	%ss=   %s is deprecated. Update your matplotlibrc to use %s instead.s   
Bad key "%s" on line %d in
%s.
You probably need to get an updated matplotlibrc file from
http://matplotlib.sf.net/_static/matplotlibrc or from the matplotlib source
distributionR   s   text.latex.preambleR	   s
  
*****************************************************************
You have the following UNSUPPORTED LaTeX preamble customizations:
%s
Please do not ask for support with these customizations active.
*****************************************************************
s   
R   s   loaded rc file %s(   s   verbose.levels   verbose.fileoN(   R   R~   R   R   R   R   R   Rk   Rl   R+   RL   t   stript   lent   popt	   ExceptionRj   R   R/   R   R    R*   R&   R   R2   R   (   t   fail_on_errorR-   t   messageRB   R   R   R   R6   t   cntt   rc_tempRN   t   strippedlinet   tupR   t   _[2]t   msg(    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyt	   rc_paramsp  s|    	
5 
 	
5  '  #s   ps.usedistillers   text.usetexc         K   s   h d d 6d d 6d d 6d d 6d	 d
 6d d 6d d 6} t  |   o |  f }  n x |  D]} } xt | i   D]f \ } } | i |  p | } d | | f } | t j o t d | | | f   n | t | <qk WqX Wd S(   s  
    Set the current rc params.  Group is the grouping for the rc, eg.
    for ``lines.linewidth`` the group is ``lines``, for
    ``axes.facecolor``, the group is ``axes``, and so on.  Group may
    also be a list or tuple of group names, eg. (*xtick*, *ytick*).
    *kwargs* is a dictionary attribute name/value pairs, eg::

      rc('lines', linewidth=2, color='r')

    sets the current rc params and is equivalent to::

      rcParams['lines.linewidth'] = 2
      rcParams['lines.color'] = 'r'

    The following aliases are available to save typing for interactive
    users:

    =====   =================
    Alias   Property
    =====   =================
    'lw'    'linewidth'
    'ls'    'linestyle'
    'c'     'color'
    'fc'    'facecolor'
    'ec'    'edgecolor'
    'mew'   'markeredgewidth'
    'aa'    'antialiased'
    =====   =================

    Thus you could abbreviate the above rc command as::

          rc('lines', lw=2, c='r')


    Note you can use python's kwargs dictionary facility to store
    dictionaries of default parameters.  Eg, you can customize the
    font rc as follows::

      font = {'family' : 'monospace',
              'weight' : 'bold',
              'size'   : 'larger'}

      rc('font', **font)  # pass in the font dict as kwargs

    This enables you to easily switch between several configurations.
    Use :func:`~matplotlib.pyplot.rcdefaults` to restore the default
    rc params after changes.
    t	   linewidtht   lwt	   linestylet   lst   colort   ct	   facecolort   fct	   edgecolort   ect   markeredgewidtht   mewt   antialiasedt   aas   %s.%ss2   Unrecognized key "%s" for group "%s" and name "%s"N(   R   R   R   t   rcParamsR   (   R[   R5   t   aliasest   gt   kRO   t   nameR   (    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyt   rc  s(    2
  c           C   s   t  i t  d S(   sa   
    Restore the default rc params - the ones that were created at
    matplotlib load time.
    N(   R   t   updatet   rcParamsDefault(    (    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyt
   rcdefaults  s    (   R   R   t	   mplConfigt   save_configs   verbose.levels   verbose.fileo(   R   R   s    This call to matplotlib.use() has no effect
because the the backend has already been chosen;
matplotlib.use() must be called *before* pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.
c         C   s   d t  i j o | o t i t  n d S|  i   }  |  i d  o
 |  } nh |  i d  } t | d  } t	 |  d j o5 | d j o t
 | d  t d <q t d	   n | t d
 <d S(   s<  
    Set the matplotlib backend to one of the known backends.

    The argument is case-insensitive.  For the Cairo backend,
    the argument can have an extension to indicate the type of
    output.  Example:

        use('cairo.pdf')

    will specify a default of pdf output generated by Cairo.

    Note: this function must be called *before* importing pylab for
    the first time; or, if you are not using pylab, it must be called
    before importing matplotlib.backends.  If warn is True, a warning
    is issued if you try and callthis after pylab or pyplot have been
    loaded.  In certain black magic use cases, eg
    pyplot.switch_backends, we are doing the reloading necessary to
    make the backend switch work (in some cases, eg pure image
    backends) so one can set warn=False to supporess the warnings
    s   matplotlib.backendsNs	   module://R   i    i   t   cairos   cairo.formats&   Only cairo backend has a format optiont   backend(   R    t   modulesRk   Rl   t   _use_error_msgt   lowerRF   RL   R   R   R   R   R   (   RE   Rl   R   t   be_parts(    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyt   use+  s     
c           C   s   t  d S(   s   Returns the current backendR   (   R   (    (    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyt   get_backendP  s    c         C   s   |  t  d <d S(   sx   
    Set interactive mode to boolean b.

    If b is True, then draw after every plotting command, eg, after xlabel
    t   interactiveN(   R   (   Rg   (    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyR   T  s    c          C   s   t  d }  |  S(   s'   Return true if plot mode is interactiveR   (   R   (   Rg   (    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyt   is_interactive\  s    
c           C   s   t  d d j o t St  d S(   s   Return true if focus maintenance under TkAgg on win32 is on.
     This currently works only for python.exe and IPython.exe.
     Both IDLE and Pythonwin.exe fail badly when tk_window_focus is on.R   t   TkAggs   tk.window_focus(   R   R   (    (    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyt   tk_window_focusa  s    s   -ds   matplotlib version %ss   verbose.level %ss   interactive is %sR   s   units is %st   unitss   platform is %ss   loaded modules: %sR   (    (_   R<   t
   __future__R    t   __version__t   __revision__t   __date__R~   RY   R   RH   R    Rk   t   distutils.sysconfigRd   t   distutils.versionR   t	   NEWCONFIGR
   R   R   t   rcsetupR   R   R   R   t   version_infot   majort   minor1t   minor2R1   t   tmpt	   _python24R   t	   _havedatet   ImportErrort   numpyRL   t   nnt   intR   R   R   Rj   RP   RW   R_   Rc   Rh   Rt   Ry   R   R=   R   R   R   R   R   R   R   R   R   R   R   RA   R   R   R   RB   R   R   R   R   R   R   R   t   configR   R   R   R/   R   R   R   R   R   R   RF   R   R   R   R2   R(   RT   R   R   (    (    (    sC   C:\graphics\Tools\Python26\Lib\site-packages\matplotlib\__init__.pyt   <module>Y   s   H
$.		Q		
						$	)			"					7

U	
5	H	"%				 #