³ò
˜§ZGc           @   s  d  Z  d d k Z d d k l Z d dVd „  ƒ  YZ d „  Z d „  Z d „  Z d	 „  Z d
 „  Z	 e d d d d d d d d d d d d d d d d d d d d d d  d! g d" e
 ƒZ e d# d$ d% d& g d" e
 ƒZ e d' d( d) d* g d" e
 ƒZ d+ dWd, „  ƒ  YZ d- dXd. „  ƒ  YZ d/ „  Z d0 „  Z e d1 d2 d3 g ƒ Z d4 „  Z d5 „  Z d6 „  Z e d7 d8 d9 d: d; g ƒ Z e d< d= d> d? d@ g ƒ Z e dA dB dC dD dE g d" e
 ƒZ e dF dG dH dI dJ dK dL dM dN dO dP dQ dR dS dT dU dV dW dX dY dZ d[ d\ d] d^ d_ d` g d" e
 ƒZ da „  Z e db dc dd de g d" e
 ƒZ e df dg dd dh g d" e
 ƒZ e di dj dk g d" e
 ƒZ dl „  Z e dm dn do dp dq dr ds dt du dv dw dx g d" e
 ƒZ dy dYdz „  ƒ  YZ  h  d e g d <d& e g d# <e! e g d{ <d* e g d' <d e g d| <e! e g d} <e! e g d~ <d e# g d€ <d= e g d <d‚ e# g dƒ <d„ e g d… <d† e# g d‡ <dˆ e g d‰ <d( e# g dŠ <d‹ e g dŒ <d e g dŽ <e
 e g d <dc e g d <dc e g d‘ <dg e g d’ <dh e g d“ <d„ e g d” <d• e g d– <dˆ e g d— <e
 e g d˜ <d™ e# g dš <d› e# g dœ <d› e# g d <d› e# g dž <d› e# g dŸ <d  e g d¡ <d¢ d£ d¤ d¥ d¦ d§ d¨ d© dª d« d¬ d­ d® g e g d¯ <d° d± d² d³ d´ dµ d¶ d· d¸ d™ g
 e g d¹ <dº d» d¼ d½ d¾ g e g d¿ <dÀ dÁ dÂ dÃ dÄ g e g dÅ <dÆ dÇ dÈ dÉ dÊ dË dÌ dÍ dÎ g	 e g dÏ <d• e g dÐ <e! e g dÑ <e! e g dÒ <dÓ g e g dÔ <e! e g dÕ <d› e# g dÖ <d› e# g d× <d› e# g dØ <d› e# g dÙ <dÚ e g dÛ <d¾ e g dÜ <d® e g dÝ <dÎ e g dÞ <dß e g dà <dá e g dâ <dã e g dä <d8 e g då <e
 e g dæ <dç e g dè <dé e# g dê <dë e# g dì <dí e g dî <dï e# g dð <dk e g dñ <e! e g dò <e
 e g dó <dô e g dõ <d• e g dö <d„ e g d÷ <dø e g dù <e! e g dú <dû e g dü <d• e g dý <dþ dÿ g e d ƒ g d<e
 e g d<do e g d<e
 e g d<d e g d<dø e g d<de g d<d„ e g d	<d
e g d<de g d<de g d<de g d<e! e g d<de g d<d e g d<de g d<de g d<d• e g d<dû e g d<de# g d<de g d<d e g d<de g d<de g d<d• e g d<dû e g d <de# g d!<d• e g d"<d#e# g d$<d‹ e g d%<d&d'g e d ƒ g d(<d)e g d*<d+e g d,<dô e g d-<d.e  d/d0d1e! d2e! ƒg d3<d4e  d/d0d1e! d2e! ƒg d5<d6e  d/d0d1e! d2e! ƒg d7<d4e  d/d0d1e! d2e! ƒg d8<de  d/d0d1e! d2e
 ƒg d9<de  d/d0d1e! d2e
 ƒg d:<d;e g d<<dô e g d=<dô e g d><d3 e g d?<dB e g d@<e! e g dA<e! e g dB<dH e g dC<e! e g dD<e! e g dE<dFe g dG<dHe	 g dI<d e g dJ<e! e g dK<e! e g dL<dHe	 g dM<e
 e g dN<e! e g dO<e
 e g dP<dQe# g dR<Z$ e% dSj oˆ e$ Z& dTe& d| d/<xq e& D]e Z' e& e' d0e& e' d/ƒ e& e' d/j p4 dUe' e& e' d0e& e' d/ƒ e& e' d/f GHqqWn d S(Z  sa  
This file contains the default values and the validation code for the options.

The code for parsing the matplotlibrc file and setting the values of rcParams
uses the values from this file to set default values.

Ultimately, the setup code should also use these values to write a default
matplotlibrc file that actually reflects the values given here.
iÿÿÿÿN(   t   parse_fontconfig_patternt   ValidateInStringsc           B   s   e  Z e d  „ Z d „  Z RS(   c            s[   | |  _  ˆ  |  _ ‡  f d †  } t g  } | D] } | | | ƒ | f q/ ~ ƒ |  _ d S(   s    valid is a list of legal stringsc            s   ˆ  o |  i  ƒ  Sn |  Sd  S(   N(   t   lower(   t   s(   t
   ignorecase(    s;   /Users/cmoad/workspace/matplotlib/lib/matplotlib/rcsetup.pyt   func   s    N(   t   keyR   t   dictt   valid(   t   selfR   R   R   R   t   _[1]t   k(    (   R   s;   /Users/cmoad/workspace/matplotlib/lib/matplotlib/rcsetup.pyt   __init__   s    		c         C   sb   |  i  o | i ƒ  } n | |  i j o |  i | Sn t d |  i | |  i i ƒ  f ƒ ‚ d  S(   Ns1   Unrecognized %s string "%s": valid strings are %s(   R   R   R   t
   ValueErrorR   t   values(   R	   R   (    (    s;   /Users/cmoad/workspace/matplotlib/lib/matplotlib/rcsetup.pyt   __call__   s    (   t   __name__t
   __module__t   FalseR   R   (    (    (    s;   /Users/cmoad/workspace/matplotlib/lib/matplotlib/rcsetup.pyR      s   	c         C   s/   t  i i |  ƒ o |  Sn t d |  ƒ ‚ d S(   s$   If s is a path, return s, else Falses+   "%s" should be a path but it does not existN(   t   ost   patht   existst   RuntimeError(   R   (    (    s;   /Users/cmoad/workspace/matplotlib/lib/matplotlib/rcsetup.pyt   validate_path_exists   s    c      	   C   s‘   t  |  ƒ t j o |  i ƒ  }  n |  d d d d d d d t f j o t Sn> |  d d	 d
 d d d d t f j o t Sn t d |  ƒ ‚ d S(   s   Convert b to a boolean or raiset   tt   yt   yest   ont   truet   1i   t   ft   nt   not   offt   falset   0i    s!   Could not convert "%s" to booleanN(   t   typet   strR   t   TrueR   R   (   t   b(    (    s;   /Users/cmoad/workspace/matplotlib/lib/matplotlib/rcsetup.pyt   validate_bool$   s
    --c         C   s8   y t  |  ƒ SWn# t j
 o t d |  ƒ ‚ n Xd S(   s   convert s to float or raises   Could not convert "%s" to floatN(   t   floatR   (   R   (    (    s;   /Users/cmoad/workspace/matplotlib/lib/matplotlib/rcsetup.pyt   validate_float-   s    c         C   s8   y t  |  ƒ SWn# t j
 o t d |  ƒ ‚ n Xd S(   s   convert s to int or raises   Could not convert "%s" to intN(   t   intR   (   R   (    (    s;   /Users/cmoad/workspace/matplotlib/lib/matplotlib/rcsetup.pyt   validate_int3   s    c         C   s´   h  d d <d d <} y t  |  ƒ } WnT t j
 oH |  i ƒ  | i ƒ  j o | |  i ƒ  Sn t d | i ƒ  ƒ ‚ n3 X| | i ƒ  j o t d | i ƒ  ƒ ‚ n | Sd S(   sQ   confirm that this is a Postscript of PDF font type that we know how to convert toi   t   type3i*   t   truetypes*   Supported Postscript/PDF font types are %sN(   R,   R   R   t   keysR   (   R   t	   fonttypest   fonttype(    (    s;   /Users/cmoad/workspace/matplotlib/lib/matplotlib/rcsetup.pyt   validate_fonttype9   s    t   backendt   Agg2t   Aggt   Aqtt   Cairot   CocoaAggt   EMFt   GDt   GDKt   GTKt   GTKAggt   GTKCairot   FltkAggt   Paintt   Pdft   PSt   QtAggt   Qt4Aggt   SVGt   Templatet   TkAggt   WXt   WXAggR   t   numerixt   Numerict   numarrayt   numpyt   toolbart   Nonet   classict   toolbar2t   validate_nseq_floatc           B   s   e  Z d  „  Z d „  Z RS(   c         C   s   | |  _  d  S(   N(   R   (   R	   R   (    (    s;   /Users/cmoad/workspace/matplotlib/lib/matplotlib/rcsetup.pyR   W   s    c         C   s  t  | ƒ t j o‹ | i d ƒ } t | ƒ |  i j o t d |  i ƒ ‚ n y) g  } | D] } | t | ƒ q] ~ SWqt j
 o t d ƒ ‚ qXns t  | ƒ t t f j p t	 ‚ t | ƒ |  i j o t d |  i ƒ ‚ n g  } | D] } | t | ƒ qö ~ Sd S(   s!   return a seq of n floats or raiset   ,s1   You must supply exactly %d comma separated valuess'   Could not convert all entries to floatss!   You must supply exactly %d valuesN(
   R$   R%   t   splitt   lenR   R   R)   t   listt   tuplet   AssertionError(   R	   R   t   ssR
   t   valt   _[2](    (    s;   /Users/cmoad/workspace/matplotlib/lib/matplotlib/rcsetup.pyR   Y   s    ) (   R   R   R   R   (    (    (    s;   /Users/cmoad/workspace/matplotlib/lib/matplotlib/rcsetup.pyRR   V   s   	t   validate_nseq_intc           B   s   e  Z d  „  Z d „  Z RS(   c         C   s   | |  _  d  S(   N(   R   (   R	   R   (    (    s;   /Users/cmoad/workspace/matplotlib/lib/matplotlib/rcsetup.pyR   j   s    c         C   s  t  | ƒ t j o‹ | i d ƒ } t | ƒ |  i j o t d |  i ƒ ‚ n y) g  } | D] } | t | ƒ q] ~ SWqt j
 o t d ƒ ‚ qXns t  | ƒ t t f j p t	 ‚ t | ƒ |  i j o t d |  i ƒ ‚ n g  } | D] } | t | ƒ qö ~ Sd S(   s   return a seq of n ints or raiseRS   s1   You must supply exactly %d comma separated valuess%   Could not convert all entries to intss!   You must supply exactly %d valuesN(
   R$   R%   RT   RU   R   R   R+   RV   RW   RX   (   R	   R   RY   R
   RZ   R[   (    (    s;   /Users/cmoad/workspace/matplotlib/lib/matplotlib/rcsetup.pyR   l   s    ) (   R   R   R   R   (    (    (    s;   /Users/cmoad/workspace/matplotlib/lib/matplotlib/rcsetup.pyR\   i   s   	c         C   så  |  i  ƒ  d j o d Sn t |  ƒ d j o |  i ƒ  o |  Sn |  i d ƒ d j oÚ d i g  } |  D]8 } | i ƒ  p | d j p | d j o | | qj qj ~ ƒ }  |  i d ƒ } t | ƒ d j o t d	 ƒ ‚ n y) g  } | D] } | t | ƒ qî ~ SWq3t j
 o t d
 |  ƒ ‚ q3Xn |  i	 d d ƒ i ƒ  o |  Sn t |  ƒ d j o |  i
 ƒ  o d |  Sn t |  ƒ d j o) |  i d ƒ o |  d i
 ƒ  o |  Sn |  i ƒ  o |  Sn t d |  ƒ ‚ d S(   s   return a valid color argt   noneRO   i   RS   i    t    t   .i   s   Color tuples must be length 3s,   Could not convert all entries "%s" to floatsi   t   #i   s   %s does not look like color argN(   R   RU   t   isalphat   findt   joint   isdigitRT   R   R)   t   replacet   isalnumt
   startswith(   R   R
   t   ct   valsR[   RZ   (    (    s;   /Users/cmoad/workspace/matplotlib/lib/matplotlib/rcsetup.pyt   validate_color~   s&    (U, 4c         C   sŽ   t  |  ƒ t j o2 g  } |  i d ƒ D] } | | i ƒ  q' ~ SnF t  |  ƒ t t g j p t ‚ g  } |  D] } | t | ƒ qp ~ Sd S(   s   return a listRS   N(   R$   R%   RT   t   stripRV   RW   RX   (   R   R
   t   vR[   (    (    s;   /Users/cmoad/workspace/matplotlib/lib/matplotlib/rcsetup.pyt   validate_stringlistœ   s    2 t   orientationt	   landscapet   portraitc         C   sI   |  d j o |  Sn y t  |  ƒ SWn t j
 o t d ƒ ‚ n Xd  S(   Nt   autot   equals    not a valid aspect specification(   Rq   s   equal(   R)   R   (   R   (    (    s;   /Users/cmoad/workspace/matplotlib/lib/matplotlib/rcsetup.pyt   validate_aspect¨   s    c      
   C   sl   t  |  ƒ t j o |  i ƒ  }  n |  d j o |  Sn y t |  ƒ SWn t j
 o t d
 ƒ ‚ n Xd  S(   Ns   xx-smalls   x-smallt   smallt   mediumt   larges   x-larges   xx-larget   smallert   largers   not a valid font size(	   s   xx-smalls   x-smallRt   Ru   Rv   s   x-larges   xx-largeRw   Rx   (   R$   R%   R   R)   R   (   R   (    (    s;   /Users/cmoad/workspace/matplotlib/lib/matplotlib/rcsetup.pyt   validate_fontsize°   s    
c         C   s   t  |  ƒ |  S(   N(   R    (   R   (    (    s;   /Users/cmoad/workspace/matplotlib/lib/matplotlib/rcsetup.pyt   validate_font_properties»   s    
t   fontsett   cmt   stixt   stixsanst   customt   verboset   silentt   helpfult   debugs   debug-annoyingt   cairo_formatt   pngt   pst   pdft   svgt   ps_papersizeRq   t   lettert   legalt   ledgert   a0t   a1t   a2t   a3t   a4t   a5t   a6t   a7t   a8t   a9t   a10t   b0t   b1t   b2t   b3t   b4t   b5t   b6t   b7t   b8t   b9t   b10c         C   sx   t  |  ƒ t j o |  i ƒ  }  n |  d j o d  Sn= |  d t f j o t Sn" |  d j o |  Sn t d ƒ ‚ d  S(   NR]   R"   t   ghostscriptt   xpdfsE   matplotlibrc ps.usedistiller must either be none, ghostscript or xpdf(   s   noneN(   R£   s   xpdf(   R$   R%   R   RO   R   R   (   R   (    (    s;   /Users/cmoad/workspace/matplotlib/lib/matplotlib/rcsetup.pyt   validate_ps_distillerÏ   s    t	   joinstylet   mitert   roundt   bevelt   capstylet   buttt
   projectingt   negative_linestylet   solidt   dashedc         C   sW   y t  |  ƒ } | SWn< t j
 o0 t d ƒ |  ƒ } t i d ƒ d | f Sn Xd  S(   Ni   sD   Deprecated negative_linestyle specification; use 'solid' or 'dashed'i    (   t   validate_negative_linestyleR   RR   t   warningst   warn(   R   t   rest   dashes(    (    s;   /Users/cmoad/workspace/matplotlib/lib/matplotlib/rcsetup.pyt"   validate_negative_linestyle_legacyâ   s    t
   legend_loct   bests   upper rights
   upper lefts
   lower lefts   lower rightt   rights   center lefts   center rights   lower centers   upper centert   centert   ValidateIntervalc           B   s&   e  Z d  Z e e d „ Z d „  Z RS(   s#   
    Value must be in interval
    c         C   s(   | |  _  | |  _ | |  _ | |  _ d  S(   N(   t   vmint   vmaxt   cmint   cmax(   R	   R»   R¼   t	   closedmint	   closedmax(    (    s;   /Users/cmoad/workspace/matplotlib/lib/matplotlib/rcsetup.pyR   ý   s    			c         C   s  y t  | ƒ } Wn t d | ƒ ‚ n X|  i o- | |  i j  o t d |  i | f ƒ ‚ n9 |  i o- | |  i j o t d |  i | f ƒ ‚ n |  i o- | |  i j o t d |  i | f ƒ ‚ n9 |  i o- | |  i j o t d |  i | f ƒ ‚ n | S(   Ns!   Value must be a float; found "%s"s   Value must be >= %f; found "%f"s   Value must be > %f; found "%f"s   Value must be <= %f; found "%f"s   Value must be < %f; found "%f"(   R)   R   R½   R»   R¾   R¼   (   R	   R   (    (    s;   /Users/cmoad/workspace/matplotlib/lib/matplotlib/rcsetup.pyR     s    (   R   R   t   __doc__R&   R   R   (    (    (    s;   /Users/cmoad/workspace/matplotlib/lib/matplotlib/rcsetup.pyRº   ù   s   t   maskedarrayt   datapatht   unitst   interactivet   UTCt   timezones   verbose.levels
   sys.stdouts   verbose.fileog      ð?s   lines.linewidtht   -s   lines.linestyleR'   s   lines.colors   lines.markerg      à?s   lines.markeredgewidthi   s   lines.markersizes   lines.antialiaseds   lines.dash_joinstyles   lines.solid_joinstyles   lines.dash_capstyles   lines.solid_capstyles   patch.linewidthR   s   patch.edgecolors   patch.facecolors   patch.antialiaseds
   sans-serifs   font.familyt   normals
   font.styles   font.variants   font.stretchs   font.weightg      (@s	   font.sizes   Bitstream Vera Serifs   DejaVu Serifs   New Century Schoolbooks   Century Schoolbook Lt   Utopias   ITC Bookmant   Bookmans   Nimbus Roman No9 Ls   Times New Romant   Timest   Palatinot   Chartert   serifs
   font.serifs   Bitstream Vera Sanss   DejaVu Sanss   Lucida Grandet   Verdanat   Genevat   Lucidt   Arialt	   Helveticas   Avant Gardes   font.sans-serifs   Apple Chanceryt   Textiles   Zapf Chanceryt   Sandt   cursives   font.cursives   Comic Sans MSt   Chicagot   Charcoalt   ImpactWesternt   fantasys   font.fantasys   Bitstream Vera Sans Monos   DejaVu Sans Monos   Andale Monos   Nimbus Mono Ls   Courier Newt   Couriert   Fixedt   Terminalt	   monospaces   font.monospaces
   text.colors   text.usetexs   text.latex.unicodeR^   s   text.latex.preambles   text.dvipnghacks   text.fontstyles   text.fontangles   text.fontvariants   text.fontweightRu   s   text.fontsizes   mathtext.cals   mathtext.rms   mathtext.tts   serif:italics   mathtext.its
   serif:bolds   mathtext.bfs   sans\-serifs   mathtext.sfs   mathtext.fontsets   mathtext.fallback_to_cmRr   s   image.aspectt   bilinears   image.interpolationt   jets
   image.cmapi   s	   image.lutt   uppers   image.origins   contour.negative_linestyles   axes.axisbelows	   axes.holdt   ws   axes.facecolors   axes.edgecolors   axes.linewidthi   s   axes.titlesizes	   axes.gridi   s   axes.labelsizes   axes.labelcoloriùÿÿÿi   i   s   axes.formatter.limitss   polaraxes.grids
   legend.locs   legend.isaxess   legend.numpointss   legend.fontsizegš™™™™™É?s
   legend.pads   legend.markerscaleg{®Gáz„?s   legend.labelsepgš™™™™™©?s   legend.handleleng{®Gáz”?s   legend.handletextseps   legend.axespads   legend.shadowi   s   xtick.major.sizes   xtick.minor.sizes   xtick.major.pads   xtick.minor.pads   xtick.colors   xtick.labelsizet   ins   xtick.directions   ytick.major.sizes   ytick.minor.sizes   ytick.major.pads   ytick.minor.pads   ytick.colors   ytick.labelsizes   ytick.directions
   grid.colort   :s   grid.linestyles   grid.linewidthg       @g      @s   figure.figsizeiP   s
   figure.dpis   0.75s   figure.facecolors   figure.edgecolorg      À?i    i   R¿   RÀ   s   figure.subplot.leftgÍÌÌÌÌÌì?s   figure.subplot.rightgš™™™™™¹?s   figure.subplot.bottoms   figure.subplot.tops   figure.subplot.wspaces   figure.subplot.hspaceid   s   savefig.dpis   savefig.facecolors   savefig.edgecolors   savefig.orientations   cairo.formats   tk.window_focuss   tk.pythoninspects   ps.papersizes	   ps.useafms   ps.usedistillerip  s   ps.distiller.resi   s   ps.fonttypes   pdf.compressions   pdf.inheritcolors   pdf.use14corefontss   pdf.fonttypes   svg.image_inlines   svg.image_noscales   svg.embed_char_pathss   .matplotlib_pluginss   plugins.directoryt   __main__t   /s   %s: %s != %s(    (    (    (    ((   RÁ   R   t   matplotlib.fontconfig_patternR    R   R   R(   R*   R,   R2   R&   t   validate_backendt   validate_numerixt   validate_toolbarRR   R\   Rj   Rm   t   validate_orientationRs   Ry   Rz   t   validate_fontsett   validate_verboset   validate_cairo_formatt   validate_ps_papersizeR¥   t   validate_joinstylet   validate_capstyleR°   Rµ   t   validate_legend_locRº   R   RO   R%   t   defaultParamsR   t   rcR   (    (    (    s;   /Users/cmoad/workspace/matplotlib/lib/matplotlib/rcsetup.pys   <module>	   s   															!'									$$$$$$ +