ó
±éRc           @  s¯  d  d l  m Z d  d l Z d  d l m Z d  d l m Z d  d l m Z m	 Z	 m
 Z
 d  d l m Z m Z m Z m Z d  d l m Z m Z d  d l m Z d	 e f d
 „  ƒ  YZ d e f d „  ƒ  YZ d „  Z d „  Z d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ  d e f d  „  ƒ  YZ! d! e f d" „  ƒ  YZ" d# e f d$ „  ƒ  YZ# d% e f d& „  ƒ  YZ$ d' e f d( „  ƒ  YZ% i e d) 6e" d* 6e% d+ 6Z& d, „  Z' d- „  Z( e e( j) ƒ i d. j* e' ƒ  ƒ d/ 6e( _) d0 „  Z+ d1 „  Z, e j- j. d2 d. j* g  e' ƒ  D] Z/ e0 e/ ƒ ^ q€ƒ d3 e, ƒ  j1 ƒ  ƒ d S(4   iÿÿÿÿ(   t   print_functionN(   t   ma(   t   dedent(   t   NullFormattert   ScalarFormattert   LogFormatterMathtext(   t   NullLocatort
   LogLocatort   AutoLocatort   SymmetricalLogLocator(   t	   Transformt   IdentityTransform(   t	   docstringt	   ScaleBasec           B  s)   e  Z d  Z d „  Z d „  Z d „  Z RS(   s@  
    The base class for all scales.

    Scales are separable transformations, working on a single dimension.

    Any subclasses will want to override:

      - :attr:`name`
      - :meth:`get_transform`

    And optionally:
      - :meth:`set_default_locators_and_formatters`
      - :meth:`limit_range_for_scale`
    c         C  s   t  ƒ  ‚ d S(   sq   
        Return the :class:`~matplotlib.transforms.Transform` object
        associated with this scale.
        N(   t   NotImplementedError(   t   self(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyt   get_transform   s    c         C  s   t  ƒ  ‚ d S(   s¦   
        Set the :class:`~matplotlib.ticker.Locator` and
        :class:`~matplotlib.ticker.Formatter` objects on the given
        axis to match this scale.
        N(   R   (   R   t   axis(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyt#   set_default_locators_and_formatters%   s    c         C  s
   | | f S(   sù   
        Returns the range *vmin*, *vmax*, possibly limited to the
        domain supported by this scale.

        *minpos* should be the minimum positive value in the data.
         This is used by log scales to determine a minimum value.
        (    (   R   t   vmint   vmaxt   minpos(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyt   limit_range_for_scale-   s    (   t   __name__t
   __module__t   __doc__R   R   R   (    (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR      s   		t   LinearScalec           B  s/   e  Z d  Z d Z d „  Z d „  Z d „  Z RS(   s#   
    The default linear scale.
    t   linearc         K  s   d  S(   N(    (   R   R   t   kwargs(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyt   __init__?   s    c         C  sD   | j  t ƒ  ƒ | j t ƒ  ƒ | j t ƒ  ƒ | j t ƒ  ƒ d S(   sd   
        Set the locators and formatters to reasonable defaults for
        linear scaling.
        N(   t   set_major_locatorR   t   set_major_formatterR   t   set_minor_locatorR   t   set_minor_formatterR   (   R   R   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR   B   s    c         C  s   t  ƒ  S(   sy   
        The transform for linear scaling is just the
        :class:`~matplotlib.transforms.IdentityTransform`.
        (   R   (   R   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR   L   s    (   R   R   R   t   nameR   R   R   (    (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR   8   s
   		
c         C  s/   |  d k } | j  ƒ  r+ t j |  d | ƒS|  S(   s�   
    Return a Numpy masked array where all non-positive values are
    masked.  If there are no non-positive values, the original array
    is returned.
    g        t   mask(   t   anyR   t   MaskedArray(   t   aR#   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyt   _mask_non_positivesT   s    c         C  s   d |  |  d k <|  S(   NgYóøÂn¥g        (    (   R&   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyt   _clip_non_positives`   s    t   LogTransformBasec           B  s)   e  Z d  Z d  Z e Z e Z d „  Z RS(   i   c         C  s2   t  j |  ƒ | d k r% t |  _ n	 t |  _ d  S(   NR#   (   R
   R   R'   t   _handle_nonposR(   (   R   t   nonpos(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR   k   s    (   R   R   t
   input_dimst   output_dimst   Truet   is_separablet   has_inverseR   (    (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR)   e   s
   t   Log10Transformc           B  s    e  Z d  Z d „  Z d „  Z RS(   g      $@c         C  s?   |  j  | d ƒ } t | t j ƒ r2 t j | ƒ St j | ƒ S(   Ng      $@(   R*   t
   isinstanceR   R%   t   log10t   np(   R   R&   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyt   transform_non_affinev   s    c         C  s   t  ƒ  S(   N(   t   InvertedLog10Transform(   R   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyt   inverted|   s    (   R   R   t   baseR5   R7   (    (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR1   s   s   	R6   c           B  s8   e  Z d  Z d  Z e Z e Z d Z d „  Z d „  Z	 RS(   i   g      $@c         C  s   t  j d | ƒ d S(   Ng      $@(   R   t   power(   R   R&   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR5   ‡   s    c         C  s   t  ƒ  S(   N(   R1   (   R   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR7   Š   s    (
   R   R   R,   R-   R.   R/   R0   R8   R5   R7   (    (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR6   €   s   	t   Log2Transformc           B  s    e  Z d  Z d „  Z d „  Z RS(   g       @c         C  sL   |  j  | d ƒ } t | t j ƒ r? t j | ƒ t j d ƒ St j | ƒ S(   Ng       @i   (   R*   R2   R   R%   t   logR4   t   log2(   R   R&   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR5   ‘   s    c         C  s   t  ƒ  S(   N(   t   InvertedLog2Transform(   R   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR7   —   s    (   R   R   R8   R5   R7   (    (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR:   Ž   s   	R=   c           B  s8   e  Z d  Z d  Z e Z e Z d Z d „  Z d „  Z	 RS(   i   g       @c         C  s   t  j d | ƒ d S(   Ng       @(   R   R9   (   R   R&   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR5   ¢   s    c         C  s   t  ƒ  S(   N(   R:   (   R   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR7   ¥   s    (
   R   R   R,   R-   R.   R/   R0   R8   R5   R7   (    (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR=   ›   s   	t   NaturalLogTransformc           B  s#   e  Z e j Z d  „  Z d „  Z RS(   c         C  sB   |  j  | t j ƒ } t | t j ƒ r5 t j | ƒ St j | ƒ S(   N(   R*   R4   t   eR2   R   R%   R;   (   R   R&   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR5   ¬   s    c         C  s   t  ƒ  S(   N(   t   InvertedNaturalLogTransform(   R   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR7   ²   s    (   R   R   R4   R?   R8   R5   R7   (    (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR>   ©   s   		R@   c           B  s;   e  Z d  Z d  Z e Z e Z e j Z	 d „  Z
 d „  Z RS(   i   c         C  s   t  j t j | ƒ t j S(   N(   R   R9   R4   R?   (   R   R&   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR5   ½   s    c         C  s   t  ƒ  S(   N(   R>   (   R   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR7   À   s    (   R   R   R,   R-   R.   R/   R0   R4   R?   R8   R5   R7   (    (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR@   ¶   s   		t   LogTransformc           B  s;   e  Z d  Z d  Z e Z e Z d „  Z d „  Z d „  Z	 RS(   i   c         C  s;   t  j |  ƒ | |  _ | d k r. t |  _ n	 t |  _ d  S(   NR#   (   R
   R   R8   R'   R*   R(   (   R   R8   R+   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR   Ê   s
    	c         C  sb   |  j  | |  j ƒ } t | t j ƒ rE t j | ƒ t j |  j ƒ St j | ƒ t j |  j ƒ S(   N(   R*   R8   R2   R   R%   R;   R4   (   R   R&   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR5   Ò   s    c         C  s   t  |  j ƒ S(   N(   t   InvertedLogTransformR8   (   R   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR7   Ø   s    (
   R   R   R,   R-   R.   R/   R0   R   R5   R7   (    (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyRA   Ä   s   		RB   c           B  s;   e  Z d  Z d  Z e Z e Z d „  Z d „  Z d „  Z	 RS(   i   c         C  s   t  j |  ƒ | |  _ d  S(   N(   R
   R   R8   (   R   R8   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR   â   s    c         C  s   t  j |  j | ƒ |  j S(   N(   R   R9   R8   (   R   R&   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR5   æ   s    c         C  s   t  |  j ƒ S(   N(   RA   R8   (   R   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR7   é   s    (
   R   R   R,   R-   R.   R/   R0   R   R5   R7   (    (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyRB   Ü   s   		t   LogScalec           B  sn   e  Z d  Z d Z e Z e Z e Z e Z e Z e	 Z	 e
 Z
 e Z e Z d „  Z d „  Z d „  Z d „  Z RS(   sÔ  
    A standard logarithmic scale.  Care is taken so non-positive
    values are not plotted.

    For computational efficiency (to push as much as possible to Numpy
    C code in the common cases), this scale provides different
    transforms depending on the base of the logarithm:

       - base 10 (:class:`Log10Transform`)
       - base 2 (:class:`Log2Transform`)
       - base e (:class:`NaturalLogTransform`)
       - arbitrary base (:class:`LogTransform`)
    R;   c         K  s*  | j  d k rH | j d d ƒ } | j d d ƒ } | j d d ƒ } n6 | j d d ƒ } | j d d ƒ } | j d	 d ƒ } | d k r™ t d ƒ ‚ n  | d k rº |  j | ƒ |  _ nZ | d k rÛ |  j | ƒ |  _ n9 | t j k rÿ |  j	 | ƒ |  _ n |  j
 | | ƒ |  _ | |  _ | |  _ d S(   s"  
        *basex*/*basey*:
           The base of the logarithm

        *nonposx*/*nonposy*: ['mask' | 'clip' ]
          non-positive values in *x* or *y* can be masked as
          invalid, or clipped to a very small positive number

        *subsx*/*subsy*:
           Where to place the subticks between each major tick.
           Should be a sequence of integers.  For example, in a log10
           scale: ``[2, 3, 4, 5, 6, 7, 8, 9]``

           will place 8 logarithmically spaced minor ticks between
           each major tick.
        t   xt   basexg      $@t   subsxt   nonposxR#   t   baseyt   subsyt   nonposyt   clips/   nonposx, nonposy kwarg must be 'mask' or 'clip'g       @N(   s   masks   clip(   t	   axis_namet   popt   Nonet
   ValueErrorR1   t
   _transformR:   R4   R?   R>   RA   R8   t   subs(   R   R   R   R8   RQ   R+   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR     s$    	c         C  s\   | j  t |  j ƒ ƒ | j t |  j ƒ ƒ | j t |  j |  j ƒ ƒ | j t ƒ  ƒ d S(   sb   
        Set the locators and formatters to specialized versions for
        log scaling.
        N(	   R   R   R8   R   R   R    RQ   R!   R   (   R   R   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR   1  s    c         C  s   |  j  S(   s   
        Return a :class:`~matplotlib.transforms.Transform` instance
        appropriate for the given logarithm base.
        (   RP   (   R   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR   ;  s    c         C  s.   | d k r | p | | d k r' | p* | f S(   s6   
        Limit the domain to positive values.
        g        (    (   R   R   R   R   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR   B  s    (   R   R   R   R"   R)   R1   R6   R:   R=   R>   R@   RA   RB   R   R   R   R   (    (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyRC   í   s   	)	
	t   SymmetricalLogTransformc           B  s;   e  Z d  Z d  Z e Z e Z d „  Z d „  Z d „  Z	 RS(   i   c         C  sV   t  j |  ƒ | |  _ | |  _ | |  _ | d |  j d |  _ t j | ƒ |  _ d  S(   Ng      ð?iÿÿÿÿ(	   R
   R   R8   t	   linthresht   linscalet   _linscale_adjR4   R;   t	   _log_base(   R   R8   RS   RT   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR   P  s    			c         C  s�   t  j | ƒ } t j | |  j |  j d t ƒ} | |  j |  j t j t  j | ƒ |  j ƒ |  j	 } | j
 j ƒ  r• t j | j
 | |  j | ƒ S| Sd  S(   Nt   copy(   R4   t   signR   t   masked_insideRS   t   FalseRU   R;   t   absRV   R#   R$   t   where(   R   R&   RX   t   maskedR;   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR5   X  s    			
(c         C  s   t  |  j |  j |  j ƒ S(   N(   t   InvertedSymmetricalLogTransformR8   RS   RT   (   R   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR7   f  s    (
   R   R   R,   R-   R.   R/   R0   R   R5   R7   (    (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyRR   J  s   		R^   c           B  s;   e  Z d  Z d  Z e Z e Z d „  Z d „  Z d „  Z	 RS(   i   c         C  sh   t  j |  ƒ t | | | ƒ } | |  _ | |  _ | j | ƒ |  _ | |  _ | d |  j d |  _ d  S(   Ng      ð?iÿÿÿÿ(	   R
   R   RR   R8   RS   t	   transformt   invlinthreshRT   RU   (   R   R8   RS   RT   t   symlog(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR   q  s    			c         C  s—   t  j | ƒ } t j | |  j |  j d t ƒ} | |  j t j |  j | | |  j |  j	 ƒ } | j
 j ƒ  r� t j | j
 | |  j	 | ƒ S| Sd  S(   NRW   (   R4   RX   R   RY   R`   RZ   RS   R9   R8   RU   R#   R$   R\   (   R   R&   RX   R]   t   exp(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR5   z  s    
c         C  s   t  |  j |  j |  j ƒ S(   N(   RR   R8   RS   RT   (   R   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR7   †  s    	(
   R   R   R,   R-   R.   R/   R0   R   R5   R7   (    (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR^   k  s   			t   SymmetricalLogScalec           B  s;   e  Z d  Z d Z e Z e Z d „  Z d „  Z d „  Z RS(   sh  
    The symmetrical logarithmic scale is logarithmic in both the
    positive and negative directions from the origin.

    Since the values close to zero tend toward infinity, there is a
    need to have a range around zero that is linear.  The parameter
    *linthresh* allows the user to specify the size of this range
    (-*linthresh*, *linthresh*).
    Ra   c         K  s  | j  d k rZ | j d d ƒ } | j d d ƒ } | j d d ƒ } | j d d ƒ } nH | j d	 d ƒ } | j d
 d ƒ } | j d d ƒ } | j d d ƒ } | d k s´ t ‚ | d k sÆ t ‚ | d k sØ t ‚ |  j | | | ƒ |  _ | |  _ | |  _ | |  _ | |  _	 d S(   sø  
        *basex*/*basey*:
           The base of the logarithm

        *linthreshx*/*linthreshy*:
          The range (-*x*, *x*) within which the plot is linear (to
          avoid having the plot go to infinity around zero).

        *subsx*/*subsy*:
           Where to place the subticks between each major tick.
           Should be a sequence of integers.  For example, in a log10
           scale: ``[2, 3, 4, 5, 6, 7, 8, 9]``

           will place 8 logarithmically spaced minor ticks between
           each major tick.

        *linscalex*/*linscaley*:
           This allows the linear range (-*linthresh* to *linthresh*)
           to be stretched relative to the logarithmic range.  Its
           value is the number of decades to use for each half of the
           linear range.  For example, when *linscale* == 1.0 (the
           default), the space used for the positive and negative
           halves of the linear range will be equal to one decade in
           the logarithmic range.
        RD   RE   g      $@t
   linthreshxg       @RF   t	   linscalexg      ð?RH   t
   linthreshyRI   t	   linscaleyg        N(
   RL   RM   RN   t   AssertionErrorRR   RP   R8   RS   RT   RQ   (   R   R   R   R8   RS   RQ   RT   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR   š  s&    				c         C  sb   | j  t |  j ƒ  ƒ ƒ | j t |  j ƒ ƒ | j t |  j ƒ  |  j ƒ ƒ | j t	 ƒ  ƒ d S(   sn   
        Set the locators and formatters to specialized versions for
        symmetrical log scaling.
        N(
   R   R	   R   R   R   R8   R    RQ   R!   R   (   R   R   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR   Ì  s
    c         C  s   |  j  S(   sE   
        Return a :class:`SymmetricalLogTransform` instance.
        (   RP   (   R   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyR   ×  s    (	   R   R   R   R"   RR   R^   R   R   R   (    (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyRc   ‹  s   		2	R   R;   Ra   c          C  s   t  j ƒ  }  |  j ƒ  |  S(   N(   t   _scale_mappingt   keyst   sort(   t   names(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyt   get_scale_nameså  s    
c         K  sQ   |  j  ƒ  }  |  d k r! d }  n  |  t k r@ t d |  ƒ ‚ n  t |  | | � S(   sC   
    Return a scale class by name.

    ACCEPTS: [ %(names)s ]
    R   s   Unknown scale type '%s'N(   t   lowerRN   Ri   RO   (   t   scaleR   R   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyt   scale_factoryë  s    	s    | Rl   c         C  s   |  t  |  j <d S(   sd   
    Register a new kind of scale.

    *scale_class* must be a subclass of :class:`ScaleBase`.
    N(   Ri   R"   (   t   scale_class(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyt   register_scaleý  s    c          C  sª   g  }  x” t  ƒ  D]‰ } t | } |  j d | ƒ |  j d ƒ t | j j ƒ } d j g  | j d ƒ D] } d | ^ qf ƒ } |  j | ƒ |  j d ƒ q Wd j |  ƒ S(   sF   
    Helper function for generating docstrings related to scales.
    s       '%s't    s   
s           %s
(   Rm   Ri   t   appendR   R   R   t   joint   split(   t   docsR"   Rq   t
   class_docsRD   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyt   get_scale_docs  s    
	&Ro   t
   scale_docs(2   t
   __future__R    t   numpyR4   R   t   matplotlib.cbookR   t   matplotlib.tickerR   R   R   R   R   R   R	   t   matplotlib.transformsR
   R   t
   matplotlibR   t   objectR   R   R'   R(   R)   R1   R6   R:   R=   R>   R@   RA   RB   RC   RR   R^   Rc   Ri   Rm   Rp   R   Ru   Rr   Ry   t   interpdt   updateRD   t   reprt   rstrip(    (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/scale.pyt   <module>   sJ   ")		]! S
					+