ó
ÄCõRc           @  s   d  d l  m Z m Z d  d l Z d  d l Z d  d l m Z d  d l Z d  d l Z	 d  d l m
 Z
 d  d l Z e j Z d  d l j Z d  d l m Z d  d l j Z d  d l j Z d  d l j Z d  d l j Z d  d l j Z d  d l j  Z! d  d l m" Z" d  d l# j$ Z$ d  d l% j& Z' d  d l( j) Z* d  d l+ j, Z- d  d l. j/ Z0 d  d l1 j2 Z2 d  d l3 j4 Z5 d  d l6 j7 Z8 d  d l9 j: Z; d  d l< j= Z> d  d l? j@ ZA d  d lB jC ZD d  d lE jF ZG d  d lH jI ZJ d  d lK jL ZM d  d lN jO ZP d  d lQ jR ZS d  d lT jU ZV d  d lW mX ZX mY ZY mZ ZZ e j[ Z[ e j\ Z\ e j] Z] d „  Z^ d	 „  Z_ d
 e` f d „  ƒ  YZa d e jb f d „  ƒ  YZc d  d ld me Ze mf Zf d f  d „  ƒ  YZg i  Zh ei d „ Zj ej ƒ  Zk d e` f d „  ƒ  YZl e" jm jn d e jo ec ƒ ƒ e" jm jn d e jo ec ƒ ƒ d S(   iÿÿÿÿ(   t   divisiont   print_functionN(   t
   itemgetter(   t   ma(   t   allow_rasterization(   t	   docstring(   t   BarContainert   ErrorbarContainert   StemContainerc         C  s@   t  |  ƒ s |  S|  d k r  t S|  d k r0 t St d ƒ ‚ d  S(   Nt   ont   offs,   string argument must be either 'on' or 'off'(   t   is_string_liket   Truet   Falset
   ValueError(   t   s(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   _string_to_bool/   s    c         C  s]  d } d } d } yi t j j |  ƒ } y t t |  ƒ ƒ } Wn t k
 rZ | | | f SX|  | k rt | | | f Sd } Wn t k
 rŽ n X|  j d ƒ d k r¿ d } |  j d d ƒ }  n  |  j d ƒ d k rï d } |  j d d ƒ }  n  |  j d ƒ d k rd } |  j d d ƒ }  n  g  |  D] } | ^ q&} xÆ | D]¾ } | t	 j
 k r|| d k	 rst d |  ƒ ‚ n  | } q?| t	 j k r³| d k	 rªt d |  ƒ ‚ n  | } q?| t j j k rí| d k	 rät d	 |  ƒ ‚ n  | } q?t d
 | ƒ ‚ q?W| d k r&| d k r&t d } n  | d k r;d } n  | d k rPd } n  | | | f S(   sÊ  
    Process a MATLAB style color/line style format string.  Return a
    (*linestyle*, *color*) tuple as a result of the processing.  Default
    values are ('-', 'b').  Example format strings include:

    * 'ko': black circles
    * '.b': blue dots
    * 'r--': red dashed lines

    .. seealso::

        :func:`~matplotlib.Line2D.lineStyles` and
        :func:`~matplotlib.pyplot.colors`
            for all possible styles and color format string.
    s   --i    t    s   -.t    t   Nones1   Illegal format string "%s"; two linestyle symbolss.   Illegal format string "%s"; two marker symbolss-   Illegal format string "%s"; two color symbolss*   Unrecognized character %c in format strings   lines.linestyleN(   R   t   mcolorst   colorConvertert   to_rgbt   strt   intR   t   findt   replacet   mlinest
   lineStylest   lineMarkerst   colorst   rcParams(   t   fmtt	   linestylet   markert   colort   fmtintt   ct   chars(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   _process_plot_format9   sb    
					t   _process_plot_var_argsc           B  s€   e  Z d  Z d d „ Z d „  Z d „  Z d d „ Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z d „  Z RS(   s3  
    Process variable length arguments to the plot command, so that
    plot commands like the following are supported::

      plot(t, s)
      plot(t1, s1, t2, s2)
      plot(t1, s1, 'ko', t2, s2)
      plot(t1, s1, 'ko', t2, s2, 'r--', t3, e3)

    an arbitrary number of *x*, *y*, *fmt* are allowed
    t   plotc         C  s    | |  _  | |  _ |  j ƒ  d  S(   N(   t   axest   commandt   set_color_cycle(   t   selfR*   R+   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   __init__™   s    		c         C  s   i |  j  d 6|  j d 6S(   NR*   R+   (   R*   R+   (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   __getstate__ž   s    c         C  s   | j  ƒ  |  _ |  j ƒ  d  S(   N(   t   copyt   __dict__R,   (   R-   t   state(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   __setstate__¢   s    c         C  s/   | d  k r t d } n  t j | ƒ |  _ d  S(   Ns   axes.color_cycle(   R   R   t	   itertoolst   cyclet   color_cycle(   R-   t   clist(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR,   ¦   s    c         O  s  |  j  j d  k	 r|  j  j d  k	 r| j d |  j  j j ƒ } |  j  j d k rf | j d | ƒ } n  | j d |  j  j j ƒ } |  j  j d k r¨ | j d | ƒ } n  | |  j  j j k rÓ |  j  j j | ƒ n  | |  j  j j k r|  j  j j | ƒ qn  |  j | | Ž  } | S(   Nt   xunitst   polart
   thetaunitst   yunitst   runits(	   R*   t   xaxisR   t   yaxist   popt   unitst   namet	   set_unitst   _grab_next_args(   R-   t   argst   kwargsR8   R;   t   ret(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   __call__«   s    $c         K  s�   |  j  d k s t d ƒ ‚ x_ | j ƒ  D]Q \ } } d | } t | | ƒ s` t d | ƒ ‚ n  t | | ƒ } | | ƒ q( Wd  S(   NR)   s$   set_lineprops only works with "plot"s   set_%ss   There is no line property "%s"(   R+   t   AssertionErrort   itemst   hasattrt	   TypeErrort   getattr(   R-   t   lineRE   t   keyt   valt   funcNamet   func(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   set_linepropsÁ   s    
c         K  s�   |  j  d k s t d ƒ ‚ x_ | j ƒ  D]Q \ } } d | } t | | ƒ s` t d | ƒ ‚ n  t | | ƒ } | | ƒ q( Wd  S(   Nt   fills%   set_patchprops only works with "fill"s   set_%ss   There is no patch property "%s"(   R+   RH   RI   RJ   RK   RL   (   R-   t	   fill_polyRE   RN   RO   RP   RQ   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   set_patchpropsÊ   s    
c         C  sm  |  j  j d  k	 r™ |  j  j d  k	 r™ |  j  j j | ƒ } |  j  j j | ƒ } |  j d k r™ | rx |  j  j | ƒ } n  | r– |  j  j | ƒ } q– q™ n  t j	 | ƒ } t j	 | ƒ } | j
 d | j
 d k rà t d ƒ ‚ n  | j d k sþ | j d k rt d ƒ ‚ n  | j d k r8| d  d  … t j f } n  | j d k rc| d  d  … t j f } n  | | f S(   NR)   i    s&   x and y must have same first dimensioni   s"   x and y can be no greater than 2-Di   (   R*   R=   R   R>   t   update_unitsR+   t   convert_xunitst   convert_yunitst   npt
   atleast_1dt   shapeR   t   ndimt   newaxis(   R-   t   xt   yt   bxt   by(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   _xy_from_xyÓ   s&    $c         C  sr   | j  ƒ  } d | k r@ d | j ƒ  k r@ |  j j ƒ  | d <n  t j | | d |  j | �} |  j | | � | S(   NR#   R*   (   R0   t   keysR6   t   nextR   t   Line2DR*   RR   (   R-   R^   R_   t   kwRE   t   seg(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt	   _makeline÷   s    	c      	   C  sŸ   y | d } Wn  t  k
 r0 |  j j ƒ  } n Xt j t j | d  d  … t j f | d  d  … t j f f ƒ d | d t d | d ƒ} |  j	 | | � | S(   NR#   t	   facecolorRS   t   closed(
   t   KeyErrorR6   Rd   t   mpatchest   PolygonRY   t   hstackR]   R   RU   (   R-   R^   R_   Rf   RE   Ri   Rg   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt	   _makefill  s    "c         C  sø  g  } t  | ƒ d k rN t | d ƒ rN t | d ƒ \ } } } | d  } n0 t  | ƒ d k ro t d ƒ ‚ n d \ } } } i  } x? t d | | | f ƒ D]% \ } }	 |	 d  k	 r� |	 | | <q� q� Wt j | d ƒ }
 t  | ƒ d k rt j | d	 ƒ } n t j |
 j	 d	 d
 t
 ƒ} |  j | |
 ƒ \ } }
 |  j d k rP|  j } n | j d t ƒ | d <|  j } | j	 d |
 j	 d } } xg t t | | ƒ ƒ D]P } | | d  d  … | | f |
 d  d  … | | f | | ƒ } | j | ƒ q W| S(   Ni   iÿÿÿÿi   s!   third arg must be a format stringR!   R"   R#   i   i    t   dtypeR)   Rj   (   NNN(   s	   linestyles   markers   color(   t   lenR   R'   R   R   t   zipRY   RZ   t   arangeR[   t   floatRb   R+   Rh   t   getR   Ro   t   xranget   maxt   append(   R-   t   tupRE   RF   R!   R"   R#   Rf   t   kt   vR_   R^   RQ   t   ncxt   ncyt   jRg   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt
   _plot_args  s4    "		=c         o  s­   | } x  t  | ƒ d k r d  St  | ƒ d k rW x |  j | | ƒ D] } | VqD Wd  St | d ƒ rp d } n d } x# |  j | |  | ƒ D] } | Vq� W| | } q	 d  S(   Ni    i   i   (   Rq   R   R   (   R-   RD   RE   t	   remainingRg   t   isplit(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRC   5  s    			N(   t   __name__t
   __module__t   __doc__R.   R/   R3   R   R,   RG   RR   RU   Rb   Rh   Ro   R   RC   (    (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR(   �   s   								$			$t   Axesc           B  s]  e  Z d  Z d Z e j ƒ  Z e j ƒ  Z d „  Z e	 e
 e	 e	 d e	 e	 d „ Z d „  Z d „  Z d „  Z d „  Z d	 „  Z d
 d „ Z d „  Z d „  Z d
 d „ Z d „  Z d „  Z d „  Z e d „ Z d d „ Z d „  Z d „  Z d „  Z d „  Z d „  Z e	 d d d „ Z  d „  Z! d „  Z" d „  Z# d  „  Z$ e	 d! „ Z% d" „  Z& e	 e	 d# „ Z' d$ „  Z( d% „  Z) d& „  Z* d' „  Z+ d( „  Z, d) „  Z- e	 d* „ Z. d+ „  Z/ d, „  Z0 d- „  Z1 d. „  Z2 d/ „  Z3 d0 „  Z4 d1 „  Z5 d2 „  Z6 d3 „  Z7 d4 „  Z8 d5 „  Z9 d6 „  Z: d7 „  Z; d8 „  Z< e
 d9 „ Z= d: „  Z> d; „  Z? d< „  Z@ d= „  ZA d> „  ZB d? „  ZC d@ „  ZD e
 e
 dA „ ZE dB „  ZF dC „  ZG e	 e	 e	 dD „ ZH dE „  ZI dF „  ZJ dG „  ZK dH „  ZL dI „  ZM dJ „  ZN dK „  ZO dL „  ZP dM „  ZQ dN „  ZR dO „  ZS dP „  ZT e
 d e	 dQ „ ZU e	 e
 e
 dR „ ZV eW e	 e dS „ ƒ ZX dT „  ZY dU „  ZZ dV „  Z[ dW „  Z\ dX „  Z] dY „  Z^ dZ „  Z_ e` ja e	 d[ d d\ „ ƒ Zb d] „  Zc d e	 d^ „ Zd d d_ „ Ze d` „  Zf da „  Zg db „  Zh dc „  Zi dd „  Zj de „  Zk df „  Zl e	 e	 dg „ Zm dh „  Zn e	 e	 e
 e di „ Zo dj „  Zp dk dl jq er js ƒ  ƒ ep _ e` ja dm „  ƒ Zt e dn „ Zu e do „ Zv dp „  Zw dq „  Zx e dr „ Zy e` ja e	 e ds „ ƒ Zz dt „  Z{ du „  Z| dv „  Z} e	 e	 dw „ Z~ dx „  Z e	 e	 e
 e dy „ Z€ dz „  Z� d{ dl jq er js ƒ  ƒ e� _ e` ja d| „  ƒ Z‚ e d} „ Zƒ e d~ „ Z„ d „  Z… d€ „  Z† e d� „ Z‡ e` ja e	 e d‚ „ ƒ Zˆ e	 dƒ „ Z‰ e	 d„ „ ZŠ d… „  Z‹ d† „  ZŒ d‡ „  Z� dˆ „  ZŽ d‰ „  Z� dŠ „  Z� d‹ „  Z‘ dŒ „  Z’ d� „  Z“ dŽ „  Z” d� „  Z• d� „  Z– d‘ „  Z— d’ „  Z˜ d“ „  Z™ d” „  Zš d• „  Z› d– „  Zœ d— d˜ „ Z� e` ja e	 d— d™ „ ƒ Zž dš „  ZŸ e` ja e	 e	 d› „ ƒ Z  dœ „  Z¡ e` ja e	 e	 d� „ ƒ Z¢ e` ja e	 e dž „ ƒ Z£ e` ja dŸ „  ƒ Z¤ e` ja d  d  d¡ d¢ „ ƒ Z¥ e` ja d  d  d¡ d£ „ ƒ Z¦ e` ja d  d¡ d¤ „ ƒ Z§ e` ja d  d¡ d¥ „ ƒ Z¨ e` j© d¦ d§ d d¨ „ ƒ Zª e` ja d¦ d§ d d© „ ƒ Z« e` ja dª d¡ d¡ e	 e	 d§ d« „ ƒ Z¬ e` ja d¬ „  ƒ Z­ e` ja d­ e	 e
 e d® „ ƒ Z® e` ja d¯ „  ƒ Z¯ e` ja d° „  ƒ Z° e` ja d± „  ƒ Z± e` ja d² „  ƒ Z² e` ja e
 e³ j´ e
 d³ d´ „ ƒ Zµ e	 dµ „ Z¶ e	 d¶ „ Z· d· „  Z¸ d¸ „  Z¹ e` ja d¹ e	 dº „ ƒ Zº e` ja d¹ e	 d» „ ƒ Z» e` ja d¼ „  ƒ Z¼ d½ „  Z½ e	 e	 e	 e	 d¾ e d¿ e	 e	 dÀ „	 Z¾ e` ja e	 e	 dÁ e	 e	 dÂ e e e e e d¡ e	 dÃ „ ƒ Z¿ e dÄ e
 dÅ e	 e	 e e	 e	 e	 dÆ „
 ZÀ e` ja dÇ dÈ dÉ e	 e	 e	 e	 e	 e	 e	 dÊ „
 ƒ ZÁ e` ja e	 dË e	 dÌ dÌ e	 e	 e	 e	 e	 e	 e	 dÍ eÂ jÃ e	 e dÎ „ ƒ ZÄ e` ja dÏ „  ƒ ZÅ dÐ „  ZÆ eÇ jÈ jÉ eÆ _ dÑ „  ZÊ eÇ jË jÌ eÊ _ dÒ „  ZÍ eÎ jÍ j eÍ _ d¡ e	 e	 e	 e	 d¡ dÓ dÔ e	 dÕ „	 ZÏ eÐ jÏ j eÏ _ e` ja dÖ „  ƒ ZÑ e` ja d× „  ƒ ZÒ e` ja d  e	 e dØ „ ƒ ZÓ e` ja d  e	 dÙ „ ƒ ZÔ e` ja e	 e	 e	 e	 e	 e	 e	 e	 e	 e	 d¡ dÚ e	 e	 e	 dÛ „ ƒ ZÕ eÖ dÜ „  ƒ Z× e` ja dÝ „  ƒ ZØ e` ja dÞ „  ƒ ZÙ e` ja dß „  ƒ ZÚ dà „  ZÛ eÜ jÝ jÞ eÛ _ dá „  Zß eÜ jÝ jÞ eß _ dâ „  Zà eÜ já jà j eà _ e` ja dã „  ƒ Zâ dä „  Zã då „  Zä dæ „  Zå dç „  Zæ dè „  Zç e` ja d³ e	 e e	 e e	 dé dê dë e	 e e	 e	 e dì „ ƒ Zè e` ja d³ e	 e e	 e	 e	 dí „ ƒ Zé e` ja dî dï d  e³ j´ e³ jê d  e	 dð e	 dñ „	 ƒ Zë e` ja dî dï d  e³ j´ e³ jê d  e	 dð e	 dò „	 ƒ Zì e` ja dî dï d  e³ j´ e³ jê d  e	 dð e	 dó „	 ƒ Zí e` ja dî dï d  e³ j´ e³ jê dô e	 e	 e	 dð e	 dõ „ ƒ Zî d  e	 e	 dö d÷ „ Zï dø „  Zð dù „  Zñ e
 dú „ Zò dû „  Zó dü „  Zô dý „  Zõ eö j÷ jø eõ _ dþ „  Zù eö j÷ jø eù _ dÿ „  Zú eö jú j eú _ d „  Zû eö jû j eû _ RS(  sa  
    The :class:`Axes` contains most of the figure elements:
    :class:`~matplotlib.axis.Axis`, :class:`~matplotlib.axis.Tick`,
    :class:`~matplotlib.lines.Line2D`, :class:`~matplotlib.text.Text`,
    :class:`~matplotlib.patches.Polygon`, etc., and sets the
    coordinate system.

    The :class:`Axes` instance supports callbacks through a callbacks
    attribute which is a :class:`~matplotlib.cbook.CallbackRegistry`
    instance.  The events you can connect to are 'xlim_changed' and
    'ylim_changed' and the callback will be called with func(*ax*)
    where *ax* is the :class:`Axes` instance.
    t   rectilinearc         C  s   d t  |  j j ƒ S(   Ns   Axes(%g,%g;%gx%g)(   t   tuplet	   _positiont   bounds(   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   __str__^  s    R   c
         K  sø  d i d j  g  t j ƒ  D] } t | ƒ ^ q ƒ d 6t j j |  ƒ t | t j	 ƒ re | |  _
 n t j	 j | Œ  |  _
 |  j
 j ƒ  |  _ |  j |  ƒ |  j d ƒ d |  _ |  j d ƒ | |  _ | |  _ | d  k	 r|  j j  |  | ƒ | j d k rd | _ n  d |  _ n  | d  k	 rZ|  j j  |  | ƒ | j d k rNd | _ n  d |  _ n  |  j | ƒ |  j | ƒ |  j |
 j d d  ƒ ƒ |  j ƒ  |  _ |  j ƒ  | d  k r¿t d	 } n  | |  _ | |  _  t d
 |  _! d  |  _" t d |  _# i  |  _$ |  j% ƒ  d  |  _& d  |  _' |  j( d ƒ d  |  _) |  j* t+ ƒ |  j, d  ƒ | r_|  j- | ƒ n  |	 ru|  j. |	 ƒ n  t/ |
 ƒ r”t j0 |  |
 � n  |  j1 d  k	 rÄ|  j1 j2 j3 d |  j4 ƒ |  _5 n  |  j6 d  k	 rô|  j6 j2 j3 d |  j4 ƒ |  _7 n  d  S(   Ns5
  
        Build an :class:`Axes` instance in
        :class:`~matplotlib.figure.Figure` *fig* with
        *rect=[left, bottom, width, height]* in
        :class:`~matplotlib.figure.Figure` coordinates

        Optional keyword arguments:

          ================   =========================================
          Keyword            Description
          ================   =========================================
          *adjustable*       [ 'box' | 'datalim' | 'box-forced']
          *alpha*            float: the alpha transparency (can be None)
          *anchor*           [ 'C', 'SW', 'S', 'SE', 'E', 'NE', 'N',
                               'NW', 'W' ]
          *aspect*           [ 'auto' | 'equal' | aspect_ratio ]
          *autoscale_on*     [ *True* | *False* ] whether or not to
                             autoscale the *viewlim*
          *axis_bgcolor*     any matplotlib color, see
                             :func:`~matplotlib.pyplot.colors`
          *axisbelow*        draw the grids and ticks below the other
                             artists
          *cursor_props*     a (*float*, *color*) tuple
          *figure*           a :class:`~matplotlib.figure.Figure`
                             instance
          *frame_on*         a boolean - draw the axes frame
          *label*            the axes label
          *navigate*         [ *True* | *False* ]
          *navigate_mode*    [ 'PAN' | 'ZOOM' | None ] the navigation
                             toolbar button status
          *position*         [left, bottom, width, height] in
                             class:`~matplotlib.figure.Figure` coords
          *sharex*           an class:`~matplotlib.axes.Axes` instance
                             to share the x-axis with
          *sharey*           an class:`~matplotlib.axes.Axes` instance
                             to share the y-axis with
          *title*            the title string
          *visible*          [ *True* | *False* ] whether the axes is
                             visible
          *xlabel*           the xlabel
          *xlim*             (*xmin*, *xmax*) view limits
          *xscale*           [%(scale)s]
          *xticklabels*      sequence of strings
          *xticks*           sequence of floats
          *ylabel*           the ylabel strings
          *ylim*             (*ymin*, *ymax*) view limits
          *yscale*           [%(scale)s]
          *yticklabels*      sequence of strings
          *yticks*           sequence of floats
          ================   =========================================
        s    | t   scalet   autot   boxt   Ct   datalimt   axes_locators   axes.facecolors   axes.axisbelows	   axes.holdi   Rz   s   units finalize(   i   Rz   (8   t   joint   mscalet   get_scale_namest   reprt   martistt   ArtistR.   t
   isinstancet   mtransformst   BboxRˆ   t   from_boundst   frozent   _originalPositiont   set_axest
   set_aspectt   _adjustablet
   set_anchort   _sharext   _shareyR   t   _shared_x_axest   _shared_y_axest	   set_labelt
   set_figuret   set_axes_locatorRu   t   _gen_axes_spinest   spinest
   _init_axisR   t   _axisbgt   _frameont
   _axisbelowt   _rasterization_zordert   _holdt
   _connectedt   clat	   fmt_xdatat	   fmt_ydatat   set_cursor_propst   _cachedRenderert   set_navigateR   t   set_navigate_modet
   set_xscalet
   set_yscaleRq   t   setpR=   t	   callbackst   connectt   relimt   _xcidR>   t   _ycid(   R-   t   figt   rectt   axisbgt   frameont   sharext   shareyt   labelt   xscalet   yscaleRE   R^   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR.   a  sn    <+			
				
			c         C  s\   | |  _  xL d d d d d d g D]2 } t |  | ƒ } x | D] } | j | _ q> Wq" Wd  S(   Nt   linest   collectionst   tablest   patchest   textst   images(   R1   RL   t   removet   _remove_method(   R-   R2   t   container_namet	   containert   artist(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR3   è  s    	c         O  s   |  j  S(   sc   
        get the axes bounding box in display space; *args* and
        *kwargs* are empty
        (   t   bbox(   R-   RD   RE   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_window_extentñ  s    c         C  sŽ   t  j |  ƒ |  _ |  j d j |  j ƒ |  j d j |  j ƒ t  j |  ƒ |  _ |  j d j |  j ƒ |  j d j |  j ƒ |  j ƒ  d S(   sA   move this out of __init__ because non-separable axes don't use itt   bottomt   topt   leftt   rightN(   t   maxist   XAxisR=   R©   t   register_axist   YAxisR>   t   _update_transScale(   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRª   ø  s    c         C  sx   t  j j |  | ƒ t j |  j | j ƒ |  _ t j j	 ƒ  |  _
 t j j ƒ  |  _ t j t j ƒ  ƒ |  _ |  j ƒ  d S(   s|   
        Set the class:`~matplotlib.axes.Axes` figure

        accepts a class:`~matplotlib.figure.Figure` instance
        N(   R•   R–   R¦   R˜   t   TransformedBboxRˆ   t   transFigureRÔ   R™   t   nullt   dataLimt   unitt   viewLimt   TransformWrappert   IdentityTransformt
   transScalet   _set_lim_and_transforms(   R-   RÀ   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR¦     s    c         C  s¥   t  j |  j ƒ |  _ t  j t  j ƒ  ƒ |  _ t  j t  j |  j	 |  j ƒ ƒ |  _
 |  j |  j
 |  j |  _ t  j |  j |  j ƒ |  _ t  j |  j |  j ƒ |  _ d S(   sB  
        set the *dataLim* and *viewLim*
        :class:`~matplotlib.transforms.Bbox` attributes and the
        *transScale*, *transData*, *transLimits* and *transAxes*
        transformations.

        .. note::

            This method is primarily used by rectilinear projections
            of the :class:`~matplotlib.axes.Axes` class, and is meant
            to be overridden by new kinds of projection axes that need
            different transformations and limits. (See
            :class:`~matplotlib.projections.polar.PolarAxes` for an
            example.

        N(   R˜   t   BboxTransformToRÔ   t	   transAxesRå   Ræ   Rç   t   BboxTransformFromRß   Rä   t   transLimitst	   transDatat   blended_transform_factoryt   _xaxis_transformt   _yaxis_transform(   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRè     s    t   gridc         C  s]   | d k r |  j  S| d k r0 |  j d j ƒ  S| d k rM |  j d j ƒ  St d ƒ ‚ d S(   sÐ  
        Get the transformation used for drawing x-axis labels, ticks
        and gridlines.  The x-direction is in data coordinates and the
        y-direction is in axis coordinates.

        .. note::

            This transformation is primarily used by the
            :class:`~matplotlib.axis.Axis` class, and is meant to be
            overridden by new kinds of projections that may need to
            place axis elements in different locations.

        Rñ   t   tick1RÖ   t   tick2R×   s   unknown value for whichN(   Rï   R©   t   get_spine_transformR   (   R-   t   which(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_xaxis_transform<  s    c         C  s:   |  j  d d ƒ t j d d | d |  j j ƒ d d f S(   s¾  
        Get the transformation used for drawing x-axis labels, which
        will add the given amount of padding (in points) between the
        axes and the label.  The x-direction is in data coordinates
        and the y-direction is in axis coordinates.  Returns a
        3-tuple of the form::

          (transform, valign, halign)

        where *valign* and *halign* are requested alignments for the
        text.

        .. note::

            This transformation is primarily used by the
            :class:`~matplotlib.axis.Axis` class, and is meant to be
            overridden by new kinds of projections that may need to
            place axis elements in different locations.

        Rõ   Rò   i    iÿÿÿÿg      R@R×   t   center(   Rö   R˜   t   ScaledTranslationt   figuret   dpi_scale_trans(   R-   t
   pad_points(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_xaxis_text1_transformU  s    c         C  s6   |  j  d d ƒ t j d | d |  j j ƒ d d f S(   sË  
        Get the transformation used for drawing the secondary x-axis
        labels, which will add the given amount of padding (in points)
        between the axes and the label.  The x-direction is in data
        coordinates and the y-direction is in axis coordinates.
        Returns a 3-tuple of the form::

          (transform, valign, halign)

        where *valign* and *halign* are requested alignments for the
        text.

        .. note::

            This transformation is primarily used by the
            :class:`~matplotlib.axis.Axis` class, and is meant to be
            overridden by new kinds of projections that may need to
            place axis elements in different locations.

        Rõ   Ró   i    g      R@RÖ   R÷   (   Rö   R˜   Rø   Rù   Rú   (   R-   Rû   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_xaxis_text2_transformo  s    c         C  s]   | d k r |  j  S| d k r0 |  j d j ƒ  S| d k rM |  j d j ƒ  St d ƒ ‚ d S(   sÐ  
        Get the transformation used for drawing y-axis labels, ticks
        and gridlines.  The x-direction is in axis coordinates and the
        y-direction is in data coordinates.

        .. note::

            This transformation is primarily used by the
            :class:`~matplotlib.axis.Axis` class, and is meant to be
            overridden by new kinds of projections that may need to
            place axis elements in different locations.

        Rñ   Rò   RØ   Ró   RÙ   s   unknown value for whichN(   Rð   R©   Rô   R   (   R-   Rõ   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_yaxis_transform‰  s    c         C  s:   |  j  d d ƒ t j d | d d |  j j ƒ d d f S(   s¾  
        Get the transformation used for drawing y-axis labels, which
        will add the given amount of padding (in points) between the
        axes and the label.  The x-direction is in axis coordinates
        and the y-direction is in data coordinates.  Returns a 3-tuple
        of the form::

          (transform, valign, halign)

        where *valign* and *halign* are requested alignments for the
        text.

        .. note::

            This transformation is primarily used by the
            :class:`~matplotlib.axis.Axis` class, and is meant to be
            overridden by new kinds of projections that may need to
            place axis elements in different locations.

        Rõ   Rò   iÿÿÿÿg      R@i    R÷   RÙ   (   Rþ   R˜   Rø   Rù   Rú   (   R-   Rû   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_yaxis_text1_transform¢  s    c         C  s6   |  j  d d ƒ t j | d d |  j j ƒ d d f S(   sË  
        Get the transformation used for drawing the secondary y-axis
        labels, which will add the given amount of padding (in points)
        between the axes and the label.  The x-direction is in axis
        coordinates and the y-direction is in data coordinates.
        Returns a 3-tuple of the form::

          (transform, valign, halign)

        where *valign* and *halign* are requested alignments for the
        text.

        .. note::

            This transformation is primarily used by the
            :class:`~matplotlib.axis.Axis` class, and is meant to be
            overridden by new kinds of projections that may need to
            place axis elements in different locations.

        Rõ   Ró   g      R@i    R÷   RØ   (   Rþ   R˜   Rø   Rù   Rú   (   R-   Rû   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_yaxis_text2_transform¼  s    c         C  s}   |  j  j t j |  j j ƒ  |  j j ƒ  ƒ ƒ t |  d ƒ ry x9 |  j D]+ } y | j	 j
 ƒ  WqG t k
 rq qG XqG Wn  d  S(   NRÉ   (   Rç   t   setR˜   Rî   R=   t   get_transformR>   RJ   RÉ   t   _transformed_patht
   invalidatet   AttributeError(   R-   RM   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRÞ   Ö  s    	c         C  s$   | r |  j  j ƒ  S|  j j ƒ  Sd S(   s1   Return the a copy of the axes rectangle as a BboxN(   Rœ   R›   Rˆ   (   R-   t   original(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_positioná  s    t   bothc         C  si   t  | t j ƒ s' t j j | Œ  } n  | d k rF |  j j | ƒ n  | d k re |  j j | ƒ n  d S(   sø  
        Set the axes position with::

          pos = [left, bottom, width, height]

        in relative 0,1 coords, or *pos* can be a
        :class:`~matplotlib.transforms.Bbox`

        There are two position variables: one which is ultimately
        used, but which may be modified by :meth:`apply_aspect`, and a
        second which is the starting point for :meth:`apply_aspect`.


        Optional keyword arguments:
          *which*

            ==========   ====================
            value        description
            ==========   ====================
            'active'     to change the first
            'original'   to change the second
            'both'       to change both
            ==========   ====================

        R  t   activeR  N(   R  R	  (   R  s   original(   R—   R˜   t   BboxBaseR™   Rš   Rˆ   R  Rœ   (   R-   t   posRõ   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   set_positionè  s    c         C  s)   |  j  d t ƒ } |  j | d d ƒd S(   s.   Make the original position the active positionR  Rõ   R	  N(   R  R   R  (   R-   R  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   reset_position	  s    c         C  s   | |  _  d S(   s”   
        set axes_locator

        ACCEPT: a callable object which takes an axes instance and renderer and
                 returns a bbox.
        N(   t   _axes_locator(   R-   t   locator(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR§     s    c         C  s   |  j  S(   s%   
        return axes_locator
        (   R  (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_axes_locator  s    c         C  s@   | j  |  j ƒ | j ƒ  s/ | j |  j ƒ n  | j |  ƒ d S(   s3   set the boilerplate props for artists added to axesN(   R¦   Rù   t   is_transform_sett   set_transformRí   R�   (   R-   t   a(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   _set_artist_props  s    c         C  s   t  j d d d ƒ S(   s]  
        Returns the patch used to draw the background of the axes.  It
        is also used as the clipping path for any data elements on the
        axes.

        In the standard axes, this is a rectangle, but in other
        projections it may not be.

        .. note::

            Intended to be overridden by new projection types.

        g        g      ð?(   g        g        (   Rl   t	   Rectangle(   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   _gen_axes_patch%  s    g        t   inchesc         C  s\   i t  j j |  d ƒ d 6t  j j |  d ƒ d 6t  j j |  d ƒ d 6t  j j |  d ƒ d 6S(   si  
        Returns a dict whose keys are spine names and values are
        Line2D or Patch instances. Each element is used to draw a
        spine of the axes.

        In the standard axes, this is a single line segment, but in
        other projections it may not be.

        .. note::

            Intended to be overridden by new projection types.

        RØ   RÙ   RÖ   R×   (   t   mspinest   Spinet   linear_spine(   R-   t	   locationst   offsetR@   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR¨   5  s
    c         C  sR  |  j  j ƒ  |  j j ƒ  x' |  j j ƒ  D] \ } } | j ƒ  q* Wt |  _ t j ƒ  |  _	 |  j
 d k	 rm|  j
 j  j |  j  _ |  j
 j  j |  j  _ |  j
 j ƒ  \ } } |  j | | d t d d ƒ|  j
 j  j ƒ  } |  j
 j  j ƒ  } |  j
 j  j ƒ  } |  j
 j  j ƒ  } |  j  j |  j
 j  j ƒ  ƒ |  j  j | ƒ |  j  j | ƒ |  j  j | ƒ |  j  j | ƒ n |  j  j d ƒ |  j d k	 rŽ|  j j j |  j _ |  j j j |  j _ |  j j ƒ  \ }	 }
 |  j |	 |
 d t d d ƒ|  j j j ƒ  } |  j j j ƒ  } |  j j j ƒ  } |  j j j ƒ  } |  j j |  j j j ƒ  ƒ |  j j | ƒ |  j j | ƒ |  j j | ƒ |  j j | ƒ n |  j j d ƒ t |  _ t |  _ t  d |  _! t  d |  _" t |  _# |  j$ ƒ  t% |  ƒ |  _& t% |  d ƒ |  _' t  d |  _( g  |  _) g  |  _* g  |  _+ g  |  _, g  |  _- g  |  _. d |  _/ d |  _0 g  |  _1 g  |  _2 |  j3 |  j( ƒ t4 j5 d t  d	 ƒ } t6 j7 d
 d |  j8 j9 ƒ |  _: t; j< d d d d d d d | d d d d ƒ |  _= t; j< d d
 d d d d d | d d d d ƒ |  _> t; j< d d d d d d d | d d d d ƒ |  _? xQ |  j= |  j> |  j? f D]7 } | j@ |  jA |  j: ƒ | jB d ƒ |  jC | ƒ q[W|  jD ƒ  |  _E |  _F |  jE jG |  j8 ƒ |  jE jH |  jI ƒ |  jE jJ d ƒ |  jE jK d ƒ |  jE j@ |  jA ƒ t |  _L |  j  jM |  jE ƒ |  j jM |  jE ƒ |  jN jO ƒ  |  jP jO ƒ  d S(   s   Clear the current axes.t   emitRŒ   t   linears   axes.xmargins   axes.ymarginRS   s	   axes.gridt   sizes   axes.titlesizeg        g      @g      R@R^   g      à?R_   g      ð?t   textR   t   fontpropertiest   verticalalignmentt   baselinet   horizontalalignmentR÷   RØ   RÙ   R   i    NgrÇqÇ±?(Q   R=   R±   R>   R©   t	   iteritemsR   t   ignore_existing_data_limitst   cbookt   CallbackRegistryR»   R¡   R   t   majort   minort   get_xlimt   set_xlimR   t   get_major_formattert   get_minor_formattert   get_major_locatort   get_minor_locatort
   _set_scalet	   get_scalet   set_major_formattert   set_minor_formattert   set_major_locatort   set_minor_locatorR¢   t   get_ylimt   set_ylimt   _autoscaleXont   _autoscaleYonR   t   _xmargint   _ymargint   _tightRÞ   R(   t
   _get_linest   _get_patches_for_fillt   _gridOnRÉ   RÌ   RÍ   RË   t   artistsRÎ   t   _current_imaget   legend_RÊ   t
   containersRñ   t   font_managert   FontPropertiesR˜   Rø   Rù   Rú   t   titleOffsetTranst   mtextt   Textt   titlet   _left_titlet   _right_titleR  Rê   t   set_clip_boxR  R  t   patcht	   axesPatchR¦   t   set_facecolorR«   t   set_edgecolort   set_linewidtht   axisont   set_clip_pathR£   t   cleanR¤   (   R-   RA   t   spinet   x0t   x1t   majft   minft   majlt   minlt   y0t   y1t   propst   _title(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR±   I  s²    				
														c         C  s   |  j  ƒ  d S(   s   clear the axesN(   R±   (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   clearÉ  s    c         C  s$   |  j  j | ƒ |  j j | ƒ d S(   s„   
        Set the color cycle for any future plot commands on this Axes.

        *clist* is a list of mpl color specifiers.
        N(   R>  R,   R?  (   R-   R7   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR,   Í  s    c         C  s   |  j  S(   s"   return the HOLD status of the axes(   R¯   (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   isholdÖ  s    c         C  s)   | d k r |  j |  _ n	 | |  _ d S(   s.  
        Call signature::

          hold(b=None)

        Set the hold state.  If *hold* is *None* (default), toggle the
        *hold* state.  Else set the *hold* state to boolean value *b*.

        Examples::

          # toggle hold
          hold()

          # turn hold on
          hold(True)

          # turn hold off
          hold(False)

        When hold is *True*, subsequent plot commands will be added to
        the current axes.  When hold is *False*, the current axes and
        figure will be cleared on the next plot command

        N(   R   R¯   (   R-   t   b(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   holdÚ  s    c         C  s   |  j  S(   N(   t   _aspect(   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt
   get_aspectø  s    c         C  sš   | d k r7 t  j d d d d d d d ƒd |  _ n' | d
 k rO | |  _ n t | ƒ |  _ | d	 k	 rz |  j | ƒ n  | d	 k	 r– |  j | ƒ n  d	 S(   s\  
        *aspect*

          ========   ================================================
          value      description
          ========   ================================================
          'auto'     automatic; fill position rectangle with data
          'normal'   same as 'auto'; deprecated
          'equal'    same scaling from data to plot units for x and y
           num       a circle will be stretched such that the height
                     is num times the width. aspect=1 is the same as
                     aspect='equal'.
          ========   ================================================

        *adjustable*

          ============   =====================================
          value          description
          ============   =====================================
          'box'          change physical size of axes
          'datalim'      change xlim or ylim
          'box-forced'   same as 'box', but axes can be shared
          ============   =====================================

        'box' does not allow axes sharing, as this can cause
        unintended side effect. For cases when sharing axes is
        fine, use 'box-forced'.

        *anchor*

          =====   =====================
          value   description
          =====   =====================
          'C'     centered
          'SW'    lower left corner
          'S'     middle of bottom edge
          'SE'    lower right corner
          etc.
          =====   =====================

        .. deprecated:: 1.2
            the option 'normal' for aspect is deprecated. Use 'auto' instead.
        t   normals   1.2RA   t   alternativeRŒ   t   obj_typet   aspectt   equalN(   s   equals   auto(   R'  t   warn_deprecatedRe  Rt   R   t   set_adjustableR    (   R-   Rj  t
   adjustablet   anchor(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRž   û  s    ,c         C  s   |  j  S(   N(   RŸ   (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_adjustable6  s    c         C  sd   | d k rT |  |  j  k s* |  |  j k rH | d k rH t d ƒ ‚ qH n  | |  _ n t d ƒ ‚ d S(   s>   
        ACCEPTS: [ 'box' | 'datalim' | 'box-forced']
        R�   R�   s
   box-forceds,   adjustable must be "datalim" for shared axess$   argument must be "box", or "datalim"N(   s   boxs   datalims
   box-forced(   R£   R¤   R   RŸ   (   R-   Rn  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRm  9  s    c         C  s   |  j  S(   N(   t   _anchor(   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt
   get_anchorF  s    c         C  s_   | t  j j j ƒ  k s* t | ƒ d k r6 | |  _ n% t d d j t  j j j ƒ  ƒ ƒ ‚ d S(   su  
        *anchor*

          =====  ============
          value  description
          =====  ============
          'C'    Center
          'SW'   bottom left
          'S'    bottom
          'SE'   bottom right
          'E'    right
          'NE'   top right
          'N'    top
          'NW'   top left
          'W'    left
          =====  ============

        i   s   argument must be among %ss   , N(   R˜   R™   t   coefsRc   Rq   Rq  R   R‘   (   R-   Ro  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR    I  s    *c         C  sd   |  j  ƒ  \ } } |  j ƒ  \ } } t t j | | ƒ d ƒ } t t j | | ƒ d ƒ } | | S(   sŽ   
        Returns the aspect ratio of the raw data.

        This method is intended to be overridden by new projection
        types.
        g ÂëþKH´9(   t
   get_xboundt
   get_yboundRw   t   matht   fabs(   R-   t   xmint   xmaxt   ymint   ymaxt   xsizet   ysize(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_data_ratiob  s
    c         C  sˆ   |  j  ƒ  \ } } |  j ƒ  \ } } t t j t j | ƒ t j | ƒ ƒ d ƒ } t t j t j | ƒ t j | ƒ ƒ d ƒ } | | S(   s   
        Returns the aspect ratio of the raw data in log scale.
        Will be used when both axis scales are in log.
        g ÂëþKH´9(   Rt  Ru  Rw   Rv  Rw  t   log10(   R-   Rx  Ry  Rz  R{  R|  R}  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_data_ratio_logq  s
    ..c   0      C  s¿  | d	 k r! |  j d t ƒ } n  |  j ƒ  } |  j d k rù |  j ƒ  |  j ƒ  } } | d k rv | d k rv d } qÿ | d k r— | d k r— d } qÿ | d k r¯ | d k sÇ | d k rÿ | d k rÿ | d k	 rö t j d | | f ƒ d } qö qÿ n d } | d k r"|  j	 | d d ƒd	 S| d
 k r7d } n | } |  |  j
 k s[|  |  j k r†|  j d k r†d |  _ t j d ƒ q†n  |  j ƒ  j ƒ  \ } } | | }	 |  j d k r-| d k rÖ| |  j ƒ  }
 n | |  j ƒ  }
 | j ƒ  } | j |
 | |	 ƒ } |  j	 | j |  j ƒ  | ƒ d ƒ d	 S|  j	 | d d ƒ|  j ƒ  \ } } |  j ƒ  \ } } | d k r±t j | ƒ t j | ƒ } } t j | ƒ t j | ƒ } } n  t t j | | ƒ d ƒ } t t j | | ƒ d ƒ } | j \ } } } } |	 | | }
 |
 | } | | | d } t | ƒ d k  r>d	 S| d k r®|  j } t j | j ƒ t j | j ƒ } t j | j  ƒ t j | j! ƒ } d | } d | } n# |  j } d | j" } d | j# } | | } | | } | | }  | | }! |! | }" |  | }# d }$ d }% |  |  j k o4|  |  j
 k }& |  |  j
 k oR|  |  j k }' |& rr|' rrt j d ƒ d	 S|& r�t$ }( nc | |$ k rÌ| |% k rÌ|# d k r±| d k  pÆ|" d k  oÆ| d k }) n | d k }) |' pá|) }( |( rTd | | }* |* |  d }+ |* |  d }, | d k r>|  j% d |+ d |, f ƒ q»|  j% |+ |, f ƒ ng d | | }- |- |! d }. |- |! d }/ | d k r¨|  j& d |. d |/ f ƒ n |  j& |. |/ f ƒ d	 S(   sp   
        Use :meth:`_aspect` and :meth:`_adjustable` to modify the
        axes box or the view limits.
        R  R9   R  t   logRŒ   s:   aspect is not supported for Axes with xscale=%s, yscale=%sRõ   R	  NRk  i   R�   R�   s7   shared axes: "adjustable" is being changed to "datalim"s
   box-forcedg ÂëþKH´9g      ð?g{®Gázt?gÍÌÌÌÌÌð?i    s9   adjustable='datalim' cannot work with shared x and y axesg      à?g       @g      $@(   s   boxs
   box-forced('   R   R  R   Rf  RA   t
   get_xscalet
   get_yscalet   warningst   warnR  R£   R¤   RŸ   t
   get_figuret   get_size_inchesR€  R~  R›   t   shrunk_to_aspectt   anchoredRr  Rt  Ru  Rv  R  Rw   Rw  R‰   t   absRâ   RX  RW  R^  R]  t   widtht   heightR   t
   set_yboundt
   set_xbound(0   R-   t   positionRj  RÇ   RÈ   t   aspect_scale_modet   At   figWt   figHt
   fig_aspectt
   box_aspectt   pbt   pb1Rx  Ry  Rz  R{  R|  R}  t   lRc  t   wt   ht
   data_ratiot
   y_expandert   dLt   dL_widtht	   dL_heightt   xrt   yrt   xmargt   ymargt   Ysizet   Xsizet   Xmargt   Ymargt   xmt   ymt   changext   changeyt   adjust_yt   adjyt   ycR]  R^  t   xcRW  RX  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   apply_aspect~  sÂ    				
""
	""
	





	c   
      O  s›  t  | ƒ d k rX t  | ƒ d k rX |  j ƒ  \ } } |  j ƒ  \ } } | | | | f St  | ƒ d k rt | d ƒ r| d j ƒ  } | d k r£ |  j ƒ  n*| d k r¼ |  j ƒ  n| d k r½|  j t ƒ |  j	 d	 ƒ |  j
 d t ƒ | d k r|  j	 d d d ƒqÍ| d k rI|  j	 d d d d d ƒ|  j t ƒ qÍ| d k ru|  j
 d t ƒ |  j t ƒ qÍ| d
 k rÍ|  j
 d t ƒ |  j t ƒ |  j	 d d d d d ƒqÍn t d | ƒ ‚ |  j ƒ  \ } } |  j ƒ  \ } } | | | | f S| j d t ƒ } y | d Wnü t k
 r| j d d ƒ } | j d d ƒ } t }	 | d k rz| d k rzd }	 n  |  j | | d | d	 |	 ƒ\ } } | j d d ƒ } | j d d ƒ } t }	 | d k ré| d k réd }	 n  |  j | | d | d	 |	 ƒ\ } } | | | | f SX| d } t  | ƒ d k rIt d ƒ ‚ n  |  j | d | d g d | d	 t ƒ|  j | d | d g d | d	 t ƒ| S(   s  
        Convenience method for manipulating the x and y view limits
        and the aspect ratio of the plot. For details, see
        :func:`~matplotlib.pyplot.axis`.

        *kwargs* are passed on to :meth:`set_xlim` and
        :meth:`set_ylim`
        i    i   R	   R
   Rk  t   tightt   scaledRg  RŒ   t   imageRn  R�   R�   Ro  RŽ   s-   Unrecognized string %s to axis; try on or offR  Rx  Ry  Rz  R{  i   s$   v must contain [xmin xmax ymin ymax]i   i   (   s   equals   tightR²  s   normals   autos   imageN(   Rq   R+  R7  R   t   lowert   set_axis_ont   set_axis_offt   set_autoscale_onR   Rž   t   autoscale_viewR   R   Ru   t
   IndexErrorR   R,  R8  (
   R-   R{   RE   Rx  Ry  Rz  R{  R   R  RŒ   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   axis  sl    	$"
	$	$
''c         C  s   |  j  S(   sT   
        Return the legend.Legend instance, or None if no legend is defined
        (   RC  (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt
   get_legendX  s    c         C  s   t  j d |  j ƒ S(   s2   return a list of Axes images contained by the Axest	   AxesImage(   R'  t   silent_listRÎ   (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt
   get_images^  s    c         C  s   t  j d |  j ƒ S(   s,   Return a list of lines contained by the AxesRe   (   R'  R½  RÉ   (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt	   get_linesb  s    c         C  s   |  j  S(   s   Return the XAxis instance(   R=   (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt	   get_xaxisf  s    c         C  s   t  j d |  j j ƒ  ƒ S(   s2   Get the x grid lines as a list of Line2D instancess   Line2D xgridline(   R'  R½  R=   t   get_gridlines(   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_xgridlinesj  s    	c         C  s   t  j d |  j j ƒ  ƒ S(   s1   Get the xtick lines as a list of Line2D instancess   Text xtickline(   R'  R½  R=   t   get_ticklines(   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_xticklineso  s    	c         C  s   |  j  S(   s   Return the YAxis instance(   R>   (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt	   get_yaxist  s    c         C  s   t  j d |  j j ƒ  ƒ S(   s2   Get the y grid lines as a list of Line2D instancess   Line2D ygridline(   R'  R½  R>   RÁ  (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_ygridlinesx  s    	c         C  s   t  j d |  j j ƒ  ƒ S(   s1   Get the ytick lines as a list of Line2D instancess   Line2D ytickline(   R'  R½  R>   RÃ  (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_yticklines}  s    	c         C  sw   t  | t j j ƒ r= | j d |  j k rj t d ƒ ‚ qj n- | |  j k rj | |  j k rj t d ƒ ‚ n  | |  _ d S(   sZ   
        helper for :func:`~matplotlib.pyplot.sci`;
        do not use elsewhere.
        i    s"   ContourSet must be in current AxessA   Argument must be an image, collection, or ContourSet in this AxesN(   R—   t
   matplotlibt   contourt
   ContourSetRÊ   R   RÎ   RB  (   R-   t   im(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   _sci„  s    c         C  s   |  j  S(   sZ   
        Helper for :func:`~matplotlib.pyplot.gci`;
        do not use elsewhere.
        (   RB  (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   _gci“  s    c         C  s:   t  |  j ƒ t  |  j ƒ t  |  j ƒ t  |  j ƒ d k S(   sÜ   
        Return *True* if any artists have been added to axes.

        This should not be used to determine whether the *dataLim*
        need to be updated, and may not actually be useful for
        anything.
        i    (   Rq   RÊ   RÎ   RÉ   RÌ   (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   has_dataš  s    &c           sP   | j  ˆ  ƒ ˆ  j j | ƒ ˆ  j | ƒ | j ˆ  j ƒ ‡  f d †  | _ | S(   sf   
        Add any :class:`~matplotlib.artist.Artist` to the axes.

        Returns the artist.
        c           s   ˆ  j  j |  ƒ S(   N(   RA  RÏ   (   Rš  (   R-   (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   <lambda>²  s    (   R�   RA  Rx   R  RT  RN  RÐ   (   R-   R  (    (   R-   sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt
   add_artist¨  s    c           sÖ   | j  ƒ  } | s/ | j d t ˆ  j ƒ ƒ n  ˆ  j j | ƒ ˆ  j | ƒ | j ƒ  d k rq | j ˆ  j	 ƒ n  | rÀ | j
 d k	 rÀ t | j
 ƒ rÀ t | j ƒ rÀ ˆ  j | j ˆ  j ƒ ƒ n  ‡  f d †  | _ | S(   s‚   
        Add a :class:`~matplotlib.collections.Collection` instance
        to the axes.

        Returns the collection.
        s   _collection%dc           s   ˆ  j  j |  ƒ S(   N(   RÊ   RÏ   (   Rš  (   R-   (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRÏ  Ë  s    N(   t	   get_labelR¥   Rq   RÊ   Rx   R  t   get_clip_pathR   RT  RN  t   _pathst   _offsetst   update_datalimt   get_datalimRí   RÐ   (   R-   t
   collectiont   autolimRÆ   (    (   R-   sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   add_collectionµ  s    c           sŽ   ˆ  j  | ƒ | j ƒ  d k r2 | j ˆ  j ƒ n  ˆ  j | ƒ | j ƒ  sh | j d t ˆ  j	 ƒ ƒ n  ˆ  j	 j
 | ƒ ‡  f d †  | _ | S(   sv   
        Add a :class:`~matplotlib.lines.Line2D` to the list of plot
        lines

        Returns the line.
        s   _line%dc           s   ˆ  j  j |  ƒ S(   N(   RÉ   RÏ   (   Rš  (   R-   (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRÏ  Ý  s    N(   R  RÒ  R   RT  RN  t   _update_line_limitsRÑ  R¥   Rq   RÉ   Rx   RÐ   (   R-   RM   (    (   R-   sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   add_lineÎ  s    c         C  s  | j  ƒ  } | j j d k r" d S| j ƒ  } | |  j k rF | } ny t | j |  j ƒ ƒ r¹ | |  j } |  j j r§ | j ƒ  } | j	 ƒ  \ } } | j
 | ƒ } q¿ | j | ƒ } n | } | j j d k r| j |  j ƒ \ }	 }
 |  j j | |  j d |	 d |
 ƒt |  _ n  d S(   sV   
        Figures out the data limit of the given line, updating self.dataLim.
        i    Nt   updatext   updatey(   t   get_patht   verticesR  R  Rí   t   anyt   contains_branch_seperatelyt	   is_affinet   _get_transformed_patht   get_transformed_path_and_affinet   transform_path_affinet   transform_pathRâ   t   update_from_pathR&  R   (   R-   RM   t   patht
   line_transt	   data_patht   trans_to_datat   line_trans_patht   na_patht   _RÜ  RÝ  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRÚ  à  s,    		c           se   ˆ  j  | ƒ | j ƒ  d k r2 | j ˆ  j ƒ n  ˆ  j | ƒ ˆ  j j | ƒ ‡  f d †  | _ | S(   s  
        Add a :class:`~matplotlib.patches.Patch` *p* to the list of
        axes patches; the clipbox will be set to the Axes clipping
        box.  If the transform is not set, it will be set to
        :attr:`transData`.

        Returns the patch.
        c           s   ˆ  j  j |  ƒ S(   N(   RÌ   RÏ   (   Rš  (   R-   (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRÏ    s    N(	   R  RÒ  R   RT  RN  t   _update_patch_limitsRÌ   Rx   RÐ   (   R-   t   p(    (   R-   sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt	   add_patch  s    
c         C  sÛ   t  | t j ƒ r0 | j ƒ  s, | j ƒ  r0 d S| j ƒ  j } | j d k r× | j ƒ  j	 | ƒ } | j
 ƒ  |  j k r� | j
 ƒ  |  j } | j	 | ƒ } n  | j ƒ  j |  j ƒ \ } } |  j | d | d | ƒn  d S(   s$   update the data limits for patch *p*Ni    RÜ  RÝ  (   R—   Rl   R  t	   get_widtht
   get_heightRÞ  Rß  R  t   get_patch_transformt	   transformt   get_data_transformRí   R  Rá  RÕ  (   R-   RN  Rß  t   xyst   patch_to_dataRÜ  RÝ  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRï    s    	
c           sC   ˆ  j  | ƒ ˆ  j j | ƒ | j ˆ  j ƒ ‡  f d †  | _ | S(   s�   
        Add a :class:`~matplotlib.tables.Table` instance to the
        list of axes tables

        Returns the table.
        c           s   ˆ  j  j |  ƒ S(   N(   RË   RÏ   (   Rš  (   R-   (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRÏ  A  s    (   R  RË   Rx   RT  RN  RÐ   (   R-   t   tab(    (   R-   sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt	   add_table7  s
    c           sY   | j  ƒ  } | s/ | j d t ˆ  j ƒ ƒ n  ˆ  j j | ƒ | j ‡  f d †  ƒ | S(   s   
        Add a :class:`~matplotlib.container.Container` instance
        to the axes.

        Returns the collection.
        s   _container%dc           s   ˆ  j  j |  ƒ S(   N(   RD  RÏ   (   Rš  (   R-   (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRÏ  O  s    (   RÑ  R¥   Rq   RD  Rx   t   set_remove_method(   R-   RÒ   RÆ   (    (   R-   sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   add_containerD  s    c         C  s~   |  j  j t ƒ |  j  j t j j ƒ  j ƒ  ƒ t |  _ x |  j	 D] } |  j
 | ƒ qB Wx |  j D] } |  j | ƒ qc Wd S(   s«   
        Recompute the data limits based on current artists.

        At present, :class:`~matplotlib.collections.Collection`
        instances are not supported.
        N(   Râ   t   ignoreR   t
   set_pointsR˜   R™   Rá   t
   get_pointsR&  RÉ   RÚ  RÌ   Rï  (   R-   RM   Rð  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR½   R  s    		c         C  sm   t  | ƒ r t | ƒ r d St j | ƒ s> t j | ƒ } n  |  j j | |  j d | d | ƒt	 |  _ d S(   sR   
        Update the data lim bbox with seq of xy tups or equiv. 2-D array
        NRÜ  RÝ  (
   t   iterableRq   R   t   isMaskedArrayRY   t   asarrayRâ   t   update_from_data_xyR&  R   (   R-   R÷  RÜ  RÝ  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRÕ  f  s    	c         C  sC   t  | ƒ r t | ƒ r d S|  j j | | |  j ƒ t |  _ d S(   s>   
        Update the data lim bbox with seq of xy tups
        N(   R   Rq   Râ   t   update_from_dataR&  R   (   R-   R^   R_   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   update_datalim_numerixw  s    c         C  s)   |  j  j t j j |  j  | g ƒ ƒ d S(   so   
        Update the datalim to include the given
        :class:`~matplotlib.transforms.Bbox` *bounds*
        N(   Râ   R  R˜   R™   t   union(   R-   R‰   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   update_datalim_bounds„  s    c         C  s—  |  j  d k s |  j d k r" d S| d k	 rS |  j  j ƒ  sS |  j  j | ƒ qS n  | d k	 r„ |  j j ƒ  s„ |  j j | ƒ q„ n  | d k	 r“| j d |  j  j ƒ } |  j d k rÌ | j d | ƒ } n  | |  j  j k r|  j  j | ƒ | d k	 r|  j  j | ƒ qn  | j d |  j j ƒ } |  j d k rL| j d | ƒ } n  | |  j j k r“|  j j | ƒ | d k	 r�|  j j | ƒ q�q“n  d S(   sA   Look for unit *kwargs* and update the axis instances as necessaryNR8   R9   R:   R;   R<   (	   R=   R   R>   t
   have_unitsRV   R?   R@   RA   RB   (   R-   t   xdatat   ydataRE   R8   R;   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   _process_unit_info‹  s.    c         C  s   |  j  j | ƒ d S(   sd   
        Return *True* if the given *mouseevent* (in display coords)
        is in the Axes
        i    (   RN  t   contains(   R-   t
   mouseevent(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   in_axes¶  s    c         C  s   |  j  o |  j S(   sS   
        Get whether autoscaling is applied for both axes on plot commands
        (   R9  R:  (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_autoscale_on½  s    c         C  s   |  j  S(   sT   
        Get whether autoscaling for the x-axis is applied on plot commands
        (   R9  (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_autoscalex_onÃ  s    c         C  s   |  j  S(   sT   
        Get whether autoscaling for the y-axis is applied on plot commands
        (   R:  (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_autoscaley_onÉ  s    c         C  s   | |  _  | |  _ d S(   sl   
        Set whether autoscaling is applied on plot commands

        accepts: [ *True* | *False* ]
        N(   R9  R:  (   R-   Rc  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR·  Ï  s    	c         C  s   | |  _  d S(   s{   
        Set whether autoscaling for the x-axis is applied on plot commands

        accepts: [ *True* | *False* ]
        N(   R9  (   R-   Rc  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   set_autoscalex_onØ  s    c         C  s   | |  _  d S(   s{   
        Set whether autoscaling for the y-axis is applied on plot commands

        accepts: [ *True* | *False* ]
        N(   R:  (   R-   Rc  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   set_autoscaley_onà  s    c         C  s4   | d k  s | d k r' t  d ƒ ‚ n  | |  _ d S(   sæ   
        Set padding of X data limits prior to autoscaling.

        *m* times the data interval will be added to each
        end of that interval before it is used in autoscaling.

        accepts: float in range 0 to 1
        i    i   s   margin must be in range 0 to 1N(   R   R;  (   R-   t   m(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   set_xmarginè  s    	c         C  s4   | d k  s | d k r' t  d ƒ ‚ n  | |  _ d S(   sæ   
        Set padding of Y data limits prior to autoscaling.

        *m* times the data interval will be added to each
        end of that interval before it is used in autoscaling.

        accepts: float in range 0 to 1
        i    i   s   margin must be in range 0 to 1N(   R   R<  (   R-   R  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   set_ymarginõ  s    	c         O  s  | r | r |  j  |  j f S| j d t ƒ } | j d d
 ƒ } | j d d
 ƒ } t | ƒ d k rw | d } } n- t | ƒ d k r˜ | \ } } n t d ƒ ‚ | d
 k	 rÀ |  j | ƒ n  | d
 k	 rÜ |  j | ƒ n  | d
 k	 } | d
 k	 } |  j	 d | d | d	 | ƒ d
 S(   s*  
        Set or retrieve autoscaling margins.

        signatures::

            margins()

        returns xmargin, ymargin

        ::

            margins(margin)

            margins(xmargin, ymargin)

            margins(x=xmargin, y=ymargin)

            margins(..., tight=False)

        All three forms above set the xmargin and ymargin parameters.
        All keyword parameters are optional.  A single argument
        specifies both xmargin and ymargin.  The *tight* parameter
        is passed to :meth:`autoscale_view`, which is executed after
        a margin is changed; the default here is *True*, on the
        assumption that when margins are specified, no additional
        padding to match tick marks is usually desired.  Setting
        *tight* to *None* will preserve the previous setting.

        Specifying any margin changes only the autoscaling; for example,
        if *xmargin* is not None, then *xmargin* times the X data
        interval will be added to each end of that interval before
        it is used in autoscaling.

        R±  R^   R_   i   i    i   s%   more than two arguments were suppliedt   scalext   scaleyN(
   R;  R<  R?   R   R   Rq   R   R  R  R¸  (   R-   RD   Rf   R±  t   mxt   myR  R  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   margins  s"    #c         C  s   | |  _  d S(   s¦   
        Set zorder value below which artists will be rasterized.  Set
        to `None` to disable rasterizing of artists below a particular
        zorder.
        N(   R®   (   R-   t   z(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   set_rasterization_zorder;  s    c         C  s   |  j  S(   sI   
        Get zorder value below which artists will be rasterized
        (   R®   (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_rasterization_zorderC  s    c         C  s•   | d k r t } t } nZ t } t } | d k rN t | ƒ |  _ |  j } n  | d	 k ru t | ƒ |  _ |  j } n  |  j d | d | d | ƒ d S(
   sÈ  
        Autoscale the axis view to the data (toggle).

        Convenience method for simple axis view autoscaling.
        It turns autoscaling on or off, and then,
        if autoscaling for either axis is on, it performs
        the autoscaling on the specified axis or axes.

        *enable*: [True | False | None]
            True (default) turns autoscaling on, False turns it off.
            None leaves the autoscaling state unchanged.

        *axis*: ['x' | 'y' | 'both']
            which axis to operate on; default is 'both'

        *tight*: [True | False | None]
            If True, set view limits to data limits;
            if False, let the locator and margins expand the view limits;
            if None, use tight scaling if the only artist is an image,
            otherwise treat *tight* as False.
            The *tight* setting is retained for future autoscaling
            until it is explicitly changed.


        Returns None.
        R^   R  R_   R±  R  R  N(   R^   s   both(   R_   s   both(   R   R   R   t   boolR9  R:  R¸  (   R-   t   enableRº  R±  R  R  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt	   autoscaleI  s    	c         C  sÆ  | d k rW |  j pQ t |  j ƒ d k oQ t |  j ƒ d k oQ t |  j ƒ d k } n t | ƒ } |  _ | r–|  j r–|  j j	 |  ƒ } g  | D] } | j
 ^ q’ } t j j | ƒ } | j \ }	 }
 |  j j ƒ  } y | j |	 |
 ƒ \ }	 }
 Wn5 t k
 r*t j |	 |
 d t d d ƒ\ }	 }
 n X|  j d k rb|
 |	 |  j } |	 | 8}	 |
 | 7}
 n  | sƒ| j |	 |
 ƒ \ }	 }
 n  |  j |	 |
 ƒ n  | rÂ|  j rÂ|  j j	 |  ƒ } g  | D] } | j
 ^ q¾} t j j | ƒ } | j \ } } |  j j ƒ  } y | j | | ƒ \ } } Wn5 t k
 rVt j | | d t d d ƒ\ } } n X|  j d k rŽ| | |  j } | | 8} | | 7} n  | s¯| j | | ƒ \ } } n  |  j | | ƒ n  d S(   s  
        Autoscale the view limits using the data limits. You can
        selectively autoscale only a single axis, eg, the xaxis by
        setting *scaley* to *False*.  The autoscaling preserves any
        axis direction reversal that has already been done.

        The data limits are not updated automatically when artist data are
        changed after the artist has been added to an Axes instance.  In that
        case, use :meth:`matplotlib.axes.Axes.relim` prior to calling
        autoscale_view.
        i    t
   increasingt   expandergš™™™™™©?N(   R   R=  Rq   RÎ   RÉ   RÌ   R  R9  R£   t   get_siblingsRâ   R˜   R
  R  t	   intervalxR=   R/  t   nonsingularR  R   R;  t   view_limitsRŽ  R:  R¤   t	   intervalyR>   R<  R�  (   R-   R±  R  R  R=  t   xsharedt   axt   dlt   bbRW  RX  t   xlocatort   deltat   ysharedR]  R^  t   ylocator(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR¸  r  sR    

c         C  s˜  | d k r |  j } n  | d k r3 t d ƒ ‚ n  |  j ƒ  sC d S| j d ƒ |  j ƒ  } | r� | |  | ƒ } |  j | ƒ n
 |  j ƒ  g  } | j |  j ƒ | j |  j	 ƒ | j |  j
 ƒ | j |  j ƒ | j |  j ƒ |  j rY| rY|  j r|  j j d ƒ |  j j d ƒ n  |  j j d ƒ |  j j d ƒ | j |  j |  j g ƒ n  | s’| j |  j ƒ | j |  j ƒ | j |  j ƒ n  | j |  j ƒ |  j d k	 rÄ| j |  j ƒ n  |  j rï|  j rï| j |  j j ƒ  ƒ n  |  j j j ƒ  r&g  | D] } | j | f ^ q} n. g  | D]! } | j ƒ  s-| j | f ^ q-} t  |  j! ƒ d k su| j" ƒ  rª| j g  |  j! D] } | j | f ^ q…ƒ t# }	 n t$ }	 | j% d t& d ƒ ƒ |  j' }
 |
 d k	 r`t  | ƒ d k r`| d d |
 k  r`| j( ƒ  g  | D] } | d |
 k  r| ^ q} g  | D] } | d |
 k r;| ^ q;} n g  } |  j r‹|  j r‹|  j) j* | ƒ n  |	 r#g  |  j! D]! } | j ƒ  r›| j | f ^ q›} | j% d d	 „  ƒ | j+ ƒ  } g  | D]- \ } } | j, | ƒ d d | j- ƒ  f ^ qè} |  j. j/ \ } } } } | t0 | ƒ d t0 | ƒ d } | t0 | ƒ d t0 | ƒ d } t1 j2 | | | ƒ } t# | _3 |  j. j4 \ } } } } | j5 ƒ  } | j6 |  j. ƒ | j7 t8 j9 |  j) j: ƒ  |  j) j; ƒ  ƒ ƒ | j< | t0 | ƒ t0 | ƒ | ƒ | j= ƒ  n  | rZx! | D] \ } } | j* | ƒ q0W| j> ƒ  n  x! | D] \ } } | j* | ƒ qaW| j? d ƒ | |  _ d S(
   s*   Draw everything (plot lines, axes, labels)s   No renderer definedNR*   g      à?g      @i   RN   i    c         S  s   |  d S(   Ni    (    (   R^   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRÏ    s    (@   R   Rµ   t   RuntimeErrort   get_visiblet
   open_groupR  R°  t   extendRÊ   RÌ   RÉ   RÍ   RA  RS  R­   R=   t
   set_zorderR>   Rx   RJ  RK  RL  RË   RC  R¬   R©   t
   itervaluesRù   t   canvast	   is_savingt   zordert   get_animatedRq   RÎ   t   option_image_nocompositeR   R   t   sortR   R®   t   start_rasterizingRN  t   drawt   get_image_magnificationt
   make_imaget	   get_alphaRÔ   t   extentst   roundt   mimaget   from_imagest   is_grayscaleR‰   t   new_gct   set_clip_rectangleRT  R˜   t   TransformedPathRÞ  R  t
   draw_imaget   restoret   stop_rasterizingt   close_group(   R-   t   renderert   inframeR  R  RA  R  t   dsuRË  t   _do_compositet   rasterization_zorderR˜  t   dsu_rasterizedt   zorder_imagest   magR  t   imsRc  t   rt   tR‹  RŒ  R™  Rš  t   gcR9  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR>  °  s¢    
	%!!,		&
),!:""			"c         C  s)   |  j  d k	 s t ‚ | j |  j  ƒ d S(   sÅ   
        This method can only be used after an initial draw which
        caches the renderer.  It is used to efficiently update Axes
        data (axis ticks, labels, etc are not updated)
        N(   Rµ   R   RH   R>  (   R-   R  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   draw_artist+  s    c         C  s/   |  j  d k	 s t ‚ |  j |  j  d t ƒd S(   sÅ   
        This method can only be used after an initial draw which
        caches the renderer.  It is used to efficiently update Axes
        data (axis ticks, labels, etc are not updated)
        RO  N(   Rµ   R   RH   R>  R   (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   redraw_in_frame4  s    c         C  s   |  j  S(   N(   Rµ   (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_renderer_cache=  s    c         C  s   |  j  S(   s?   
        Get whether the axes rectangle patch is drawn
        (   R¬   (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_frame_onB  s    c         C  s   | |  _  d S(   sf   
        Set whether the axes rectangle patch is drawn

        ACCEPTS: [ *True* | *False* ]
        N(   R¬   (   R-   Rc  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   set_frame_onH  s    c         C  s   |  j  S(   s7   
        Get whether axis below is true or not
        (   R­   (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_axisbelowP  s    c         C  s   | |  _  d S(   s‰   
        Set whether the axis ticks and gridlines are above or below most
        artists

        ACCEPTS: [ *True* | *False* ]
        N(   R­   (   R-   Rc  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   set_axisbelowV  s    R)  c         K  s�   t  | ƒ r t } n  t | ƒ } | d k s9 | d k rU |  j j | d | | �n  | d k sm | d k r‰ |  j j | d | | �n  d S(   s–  
        Turn the axes grids on or off.

        Call signature::

           grid(self, b=None, which='major', axis='both', **kwargs)

        Set the axes grids on or off; *b* is a boolean.  (For MATLAB
        compatibility, *b* may also be a string, 'on' or 'off'.)

        If *b* is *None* and ``len(kwargs)==0``, toggle the grid state.  If
        *kwargs* are supplied, it is assumed that you want a grid and *b*
        is thus set to *True*.

        *which* can be 'major' (default), 'minor', or 'both' to control
        whether major tick grids, minor tick grids, or both are affected.

        *axis* can be 'both' (default), 'x', or 'y' to control which
        set of gridlines are drawn.

        *kwargs* are used to set the grid line properties, eg::

           ax.grid(color='r', linestyle='-', linewidth=2)

        Valid :class:`~matplotlib.lines.Line2D` kwargs are

        %(Line2D)s

        R^   R  Rõ   R_   N(   Rq   R   R   R=   Rñ   R>   (   R-   Rc  Rõ   Rº  RE   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRñ   _  s    	c         K  s  | j  d d ƒ j ƒ  } | j  d d ƒ } | j  d d ƒ } | j  d d ƒ } | j  d d ƒ j ƒ  } | d k	 r· y | \ } } | | d Wq· t t f k
 r³ t d	 ƒ ‚ q· Xn  | d
  d k rÐ t }	 n] | d k rt }	 | d k r÷ t }
 q-t }
 t d ƒ ‚ n! | d k r!d }	 n t d ƒ ‚ yÈ|	 d k	 r¡| d k sT| d k rm|  j j	 j
 j |	 ƒ n  | d k s…| d k r¡|  j j	 j
 j |	 ƒ q¡n  | d k	 r| d k sÅ| d k rÞ|  j j	 j
 j | ƒ n  | d k sö| d k r|  j j	 j
 j | ƒ qn  | d k	 rƒ| d k s6| d k rO|  j j	 j
 j | ƒ n  | d k sg| d k rƒ|  j j	 j
 j | ƒ qƒn  | d k	 rô| d k s§| d k rÀ|  j j	 j
 j | ƒ n  | d k sØ| d k rô|  j j	 j
 j | ƒ qôn  Wn t k
 rt d ƒ ‚ n Xd S(   s  
        Change the `~matplotlib.ticker.ScalarFormatter` used by
        default for linear axes.

        Optional keyword arguments:

          ============   =========================================
          Keyword        Description
          ============   =========================================
          *style*        [ 'sci' (or 'scientific') | 'plain' ]
                         plain turns off scientific notation
          *scilimits*    (m, n), pair of integers; if *style*
                         is 'sci', scientific notation will
                         be used for numbers outside the range
                         10`m`:sup: to 10`n`:sup:.
                         Use (0,0) to include all numbers.
          *useOffset*    [True | False | offset]; if True,
                         the offset will be calculated as needed;
                         if False, no offset will be used; if a
                         numeric offset is specified, it will be
                         used.
          *axis*         [ 'x' | 'y' | 'both' ]
          *useLocale*    If True, format the number according to
                         the current locale.  This affects things
                         such as the character used for the
                         decimal separator.  If False, use
                         C-style (English) formatting.  The
                         default setting is controlled by the
                         axes.formatter.use_locale rcparam.
          ============   =========================================

        Only the major ticks are affected.
        If the method is called when the
        :class:`~matplotlib.ticker.ScalarFormatter` is not the
        :class:`~matplotlib.ticker.Formatter` being used, an
        :exc:`AttributeError` will be raised.

        t   styleR   t	   scilimitst	   useOffsett	   useLocaleRº  R  i   s*   scilimits must be a sequence of 2 integersi   t   scit   plaint   commas   comma style remains to be addeds   %s is not a valid style valueR^   R_   s0   This method only works with the ScalarFormatter.N(   Rf  s   comma(   R?   R´  R   R   RK   R   R   t   NotImplementedErrorR=   R)  t	   formattert   set_scientificR>   t   set_powerlimitst   set_useOffsett   set_useLocaleR  (   R-   RE   Ra  Rb  Rc  Rd  Rº  R  t   nt   sbt   cb(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   ticklabel_format‡  s\    '			 c         K  sv   | d k } | d	 k } | r7 |  j  j ƒ  j | �  n  | rV |  j j ƒ  j | �  n  |  j d | d | d | ƒ d S(
   sÐ  
        Control behavior of tick locators.

        Keyword arguments:

        *axis*
            ['x' | 'y' | 'both']  Axis on which to operate;
            default is 'both'.

        *tight*
            [True | False | None] Parameter passed to :meth:`autoscale_view`.
            Default is None, for no change.

        Remaining keyword arguments are passed to directly to the
        :meth:`~matplotlib.ticker.MaxNLocator.set_params` method.

        Typically one might want to reduce the maximum number
        of ticks and use tight bounds when plotting small
        subplots, for example::

            ax.locator_params(tight=True, nbins=4)

        Because the locator is involved in autoscaling,
        :meth:`autoscale_view` is called automatically after
        the parameters are changed.

        This presently works only for the
        :class:`~matplotlib.ticker.MaxNLocator` used
        by default on linear axes, but it may be generalized.
        R^   R  R_   R±  R  R  N(   R^   s   both(   R_   s   both(   R=   R/  t
   set_paramsR>   R¸  (   R-   Rº  R±  RE   t   _xt   _y(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   locator_paramsß  s    c         K  sÚ   | d k rk t  | ƒ } | j d d ƒ | j d d ƒ | j d d ƒ | j d d ƒ |  j j | �  n  | d k rÖ t  | ƒ } | j d d ƒ | j d	 d ƒ | j d
 d ƒ | j d d ƒ |  j j | �  n  d S(   s»  
        Change the appearance of ticks and tick labels.

        Keyword arguments:

        *axis* : ['x' | 'y' | 'both']
            Axis on which to operate; default is 'both'.

        *reset* : [True | False]
            If *True*, set all parameters to defaults
            before processing other keyword arguments.  Default is
            *False*.

        *which* : ['major' | 'minor' | 'both']
            Default is 'major'; apply arguments to *which* ticks.

        *direction* : ['in' | 'out' | 'inout']
            Puts ticks inside the axes, outside the axes, or both.

        *length*
            Tick length in points.

        *width*
            Tick width in points.

        *color*
            Tick color; accepts any mpl color spec.

        *pad*
            Distance in points between tick and label.

        *labelsize*
            Tick label font size in points or as a string (e.g., 'large').

        *labelcolor*
            Tick label color; mpl color spec.

        *colors*
            Changes the tick color and the label color to the same value:
            mpl color spec.

        *zorder*
            Tick and label zorder.

        *bottom*, *top*, *left*, *right* : [bool | 'on' | 'off']
            controls whether to draw the respective ticks.

        *labelbottom*, *labeltop*, *labelleft*, *labelright*
            Boolean or ['on' | 'off'], controls whether to draw the
            respective tick labels.

        Example::

            ax.tick_params(direction='out', length=6, width=2, colors='r')

        This will make all major ticks be red, pointing out of the box,
        and with dimensions 6 points by 2 points.  Tick labels will
        also be red.

        R^   R  RØ   RÙ   t	   labelleftt
   labelrightR_   R×   RÖ   t   labeltopt   labelbottomN(   R^   s   both(   R_   s   both(   t   dictR?   R   R=   t   set_tick_paramsR>   (   R-   Rº  RE   t   xkwt   ykw(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   tick_params	  s    =c         C  s   t  |  _ d S(   s   turn off the axisN(   R   RS  (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR¶  R	  s    c         C  s   t  |  _ d S(   s   turn on the axisN(   R   RS  (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRµ  V	  s    c         C  s   |  j  S(   s    Return the axis background color(   R«   (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_axis_bgcolorZ	  s    c         C  s   | |  _  |  j j | ƒ d S(   s†   
        set the axes background color

        ACCEPTS: any matplotlib color - see
        :func:`~matplotlib.pyplot.colors`
        N(   R«   RN  RP  (   R-   R#   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   set_axis_bgcolor^	  s    	c         C  s,   |  j  ƒ  \ } } |  j | | d d ƒd S(   s   Invert the x-axis.RŒ   N(   R+  R,  R   (   R-   RØ   RÙ   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   invert_xaxisk	  s    c         C  s   |  j  ƒ  \ } } | | k  S(   s)   Returns *True* if the x-axis is inverted.(   R+  (   R-   RØ   RÙ   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   xaxis_invertedp	  s    c         C  s6   |  j  ƒ  \ } } | | k  r( | | f S| | f Sd S(   sa   
        Returns the x-axis numerical bounds where::

          lowerBound < upperBound

        N(   R+  (   R-   RØ   RÙ   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRt  u	  s    
c         C  sì   | d k r' t | ƒ r' | \ } } n  |  j ƒ  \ } } | d k rN | } n  | d k rc | } n  |  j ƒ  r­ | | k  r” |  j | | d d ƒqè |  j | | d d ƒn; | | k  rÒ |  j | | d d ƒn |  j | | d d ƒd S(   sÎ   
        Set the lower and upper numerical bounds of the x-axis.
        This method will honor axes inversion regardless of parameter order.
        It will not change the _autoscaleXon attribute.
        RŒ   N(   R   R   Rt  R‚  R,  (   R-   R´  t   uppert	   old_lowert	   old_upper(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRŽ  ‚	  s    		c         C  s   t  |  j j ƒ S(   s8   
        Get the x-axis range [*left*, *right*]
        (   R‡   Rä   R%  (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR+  �	  s    c   	      K  sO  d | k r | j  d ƒ } n  d | k r< | j  d ƒ } n  | r[ t d | j ƒ  ƒ ‚ n  | d k r‚ t | ƒ r‚ | \ } } n  |  j d | | f ƒ | d k	 r¶ |  j | ƒ } n  | d k	 rÔ |  j | ƒ } n  |  j ƒ  \ } } | d k rû | } n  | d k r| } n  | | k r>t j	 d d d | | f ƒ n  t
 j | | d t ƒ\ } } |  j j | | ƒ \ } } | | f |  j _ | d k	 r§t | ƒ |  _ n  | rE|  j j d	 |  ƒ x‚ |  j j |  ƒ D]k } | |  k	 rÓ| j |  j j d
 t d | ƒ| j |  j k r>| j j d k	 r>| j j j ƒ  q>qÓqÓWn  | | f S(   s§  
        Call signature::

          set_xlim(self, *args, **kwargs):

        Set the data limits for the xaxis

        Examples::

          set_xlim((left, right))
          set_xlim(left, right)
          set_xlim(left=1) # right unchanged
          set_xlim(right=1) # left unchanged

        Keyword arguments:

          *left*: scalar
            The left xlim; *xmin*, the previous name, may still be used

          *right*: scalar
            The right xlim; *xmax*, the previous name, may still be used

          *emit*: [ *True* | *False* ]
            Notify observers of limit change

          *auto*: [ *True* | *False* | *None* ]
            Turn *x* autoscaling on (*True*), off (*False*; default),
            or leave unchanged (*None*)

        Note, the *left* (formerly *xmin*) value may be greater than
        the *right* (formerly *xmax*).
        For example, suppose *x* is years before present.
        Then one might use::

          set_ylim(5000, 0)

        so 5000 years ago is on the left of the plot and the
        present is on the right.

        Returns the current xlimits as a length 2 tuple

        ACCEPTS: length 2 sequence of floats
        Rx  Ry  s   unrecognized kwargs: %sR	  s0   Attempting to set identical left==right results
s6   in singular transformations; automatically expanding.
s   left=%s, right=%sR"  t   xlim_changedR  RŒ   N(   R?   R   Rc   R   R   R  RW   R+  R„  R…  R˜   R&  R   R=   t   limit_range_for_scaleRä   R%  R  R9  R»   t   processR£   R$  R,  Rù   R7  t	   draw_idle(	   R-   RØ   RÙ   R  RŒ   Rf   t   old_leftt	   old_rightt   other(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR,  £	  sH    ,		c         C  s   |  j  j ƒ  S(   N(   R=   R2  (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR‚  ý	  s    s!   Return the xaxis scale string: %ss   , c         K  s1   |  j  j | | � |  j d t ƒ |  j ƒ  d S(   sæ   
        Call signature::

          set_xscale(value)

        Set the scaling of the x-axis: %(scale)s

        ACCEPTS: [%(scale)s]

        Different kwargs are accepted, depending on the scale:
        %(scale_docs)s
        R  N(   R=   R1  R¸  R   RÞ   (   R-   t   valueRE   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR¸   
  s    c         C  s   |  j  j d | ƒ S(   s)   Return the x ticks as a list of locationsR*  (   R=   t   get_ticklocs(   R-   R*  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt
   get_xticks
  s    c         C  s   |  j  j | d | ƒS(   s[   
        Set the x ticks with list of *ticks*

        ACCEPTS: sequence of floats
        R*  (   R=   t	   set_ticks(   R-   t   ticksR*  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt
   set_xticks
  s    c         C  s   t  j d |  j j ƒ  ƒ S(   se   
        Get the xtick labels as a list of :class:`~matplotlib.text.Text`
        instances.
        s   Text xticklabel(   R'  R½  R=   t   get_majorticklabels(   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_xmajorticklabels 
  s    	c         C  s   t  j d |  j j ƒ  ƒ S(   sk   
        Get the x minor tick labels as a list of
        :class:`matplotlib.text.Text` instances.
        s   Text xticklabel(   R'  R½  R=   t   get_minorticklabels(   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_xminorticklabels(
  s    	c         C  s   t  j d |  j j d | ƒ ƒ S(   sf   
        Get the x tick labels as a list of :class:`~matplotlib.text.Text`
        instances.
        s   Text xticklabelR*  (   R'  R½  R=   t   get_ticklabels(   R-   R*  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_xticklabels0
  s    	c         K  s   |  j  j | | d | | �S(   so  
        Call signature::

          set_xticklabels(labels, fontdict=None, minor=False, **kwargs)

        Set the xtick labels with list of strings *labels*. Return a
        list of axis text instances.

        *kwargs* set the :class:`~matplotlib.text.Text` properties.
        Valid properties are
        %(Text)s

        ACCEPTS: sequence of strings
        R*  (   R=   t   set_ticklabels(   R-   t   labelst   fontdictR*  RE   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   set_xticklabels8
  s    c         C  s,   |  j  ƒ  \ } } |  j | | d d ƒd S(   s$   
        Invert the y-axis.
        RŒ   N(   R7  R8  R   (   R-   RÖ   R×   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   invert_yaxisK
  s    c         C  s   |  j  ƒ  \ } } | | k  S(   s)   Returns *True* if the y-axis is inverted.(   R7  (   R-   RÖ   R×   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   yaxis_invertedR
  s    c         C  s6   |  j  ƒ  \ } } | | k  r( | | f S| | f Sd S(   sc   
        Return y-axis numerical bounds in the form of
        ``lowerBound < upperBound``
        N(   R7  (   R-   RÖ   R×   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRu  W
  s    
c         C  sì   | d k r' t | ƒ r' | \ } } n  |  j ƒ  \ } } | d k rN | } n  | d k rc | } n  |  j ƒ  r­ | | k  r” |  j | | d d ƒqè |  j | | d d ƒn; | | k  rÒ |  j | | d d ƒn |  j | | d d ƒd S(   sÎ   
        Set the lower and upper numerical bounds of the y-axis.
        This method will honor axes inversion regardless of parameter order.
        It will not change the _autoscaleYon attribute.
        RŒ   N(   R   R   Ru  Rž  R8  (   R-   R´  Rƒ  R„  R…  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR�  b
  s    		c         C  s   t  |  j j ƒ S(   s8   
        Get the y-axis range [*bottom*, *top*]
        (   R‡   Rä   R(  (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR7  }
  s    c   	      K  s9  d | k r | j  d ƒ } n  d | k r< | j  d ƒ } n  | r[ t d | j ƒ  ƒ ‚ n  | d k r‚ t | ƒ r‚ | \ } } n  | d k	 r  |  j | ƒ } n  | d k	 r¾ |  j | ƒ } n  |  j ƒ  \ } } | d k rå | } n  | d k rú | } n  | | k r(t j d d d | | f ƒ n  t	 j
 | | d t ƒ\ } } |  j j | | ƒ \ } } | | f |  j _ | d k	 r‘t | ƒ |  _ n  | r/|  j j d |  ƒ x‚ |  j j |  ƒ D]k } | |  k	 r½| j |  j j d	 t d
 | ƒ| j |  j k r(| j j d k	 r(| j j j ƒ  q(q½q½Wn  | | f S(   s©  
        Call signature::

          set_ylim(self, *args, **kwargs):

        Set the data limits for the yaxis

        Examples::

          set_ylim((bottom, top))
          set_ylim(bottom, top)
          set_ylim(bottom=1) # top unchanged
          set_ylim(top=1) # bottom unchanged

        Keyword arguments:

          *bottom*: scalar
            The bottom ylim; the previous name, *ymin*, may still be used

          *top*: scalar
            The top ylim; the previous name, *ymax*, may still be used

          *emit*: [ *True* | *False* ]
            Notify observers of limit change

          *auto*: [ *True* | *False* | *None* ]
            Turn *y* autoscaling on (*True*), off (*False*; default),
            or leave unchanged (*None*)

        Note, the *bottom* (formerly *ymin*) value may be greater than
        the *top* (formerly *ymax*).
        For example, suppose *y* is depth in the ocean.
        Then one might use::

          set_ylim(5000, 0)

        so 5000 m depth is at the bottom of the plot and the
        surface, 0 m, is at the top.

        Returns the current ylimits as a length 2 tuple

        ACCEPTS: length 2 sequence of floats
        Rz  R{  s   unrecognized kwargs: %ss0   Attempting to set identical bottom==top results
s6   in singular transformations; automatically expanding.
s   bottom=%s, top=%sR"  t   ylim_changedR  RŒ   N(   R?   R   Rc   R   R   RX   R7  R„  R…  R˜   R&  R   R>   R‡  Rä   R(  R  R:  R»   Rˆ  R¤   R$  R8  Rù   R7  R‰  (	   R-   RÖ   R×   R  RŒ   Rf   t
   old_bottomt   old_topRŒ  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR8  ƒ
  sF    ,		c         C  s   |  j  j ƒ  S(   N(   R>   R2  (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRƒ  Þ
  s    s!   Return the yaxis scale string: %sc         K  s1   |  j  j | | � |  j d t ƒ |  j ƒ  d S(   sæ   
        Call signature::

          set_yscale(value)

        Set the scaling of the y-axis: %(scale)s

        ACCEPTS: [%(scale)s]

        Different kwargs are accepted, depending on the scale:
        %(scale_docs)s
        R  N(   R>   R1  R¸  R   RÞ   (   R-   R�  RE   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR¹   ã
  s    c         C  s   |  j  j d | ƒ S(   s)   Return the y ticks as a list of locationsR*  (   R>   RŽ  (   R-   R*  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt
   get_yticksõ
  s    c         C  s   |  j  j | d | ƒS(   sË   
        Set the y ticks with list of *ticks*

        ACCEPTS: sequence of floats

        Keyword arguments:

          *minor*: [ *False* | *True* ]
            Sets the minor ticks if *True*
        R*  (   R>   R�  (   R-   R‘  R*  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt
   set_yticksù
  s    c         C  s   t  j d |  j j ƒ  ƒ S(   sl   
        Get the major y tick labels as a list of
        :class:`~matplotlib.text.Text` instances.
        s   Text yticklabel(   R'  R½  R>   R“  (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_ymajorticklabels  s    	c         C  s   t  j d |  j j ƒ  ƒ S(   sl   
        Get the minor y tick labels as a list of
        :class:`~matplotlib.text.Text` instances.
        s   Text yticklabel(   R'  R½  R>   R•  (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_yminorticklabels  s    	c         C  s   t  j d |  j j d | ƒ ƒ S(   se   
        Get the y tick labels as a list of :class:`~matplotlib.text.Text`
        instances
        s   Text yticklabelR*  (   R'  R½  R>   R—  (   R-   R*  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_yticklabels  s    	c         K  s   |  j  j | | d | | �S(   s‘  
        Call signature::

          set_yticklabels(labels, fontdict=None, minor=False, **kwargs)

        Set the y tick labels with list of strings *labels*.  Return a list of
        :class:`~matplotlib.text.Text` instances.

        *kwargs* set :class:`~matplotlib.text.Text` properties for the labels.
        Valid properties are
        %(Text)s

        ACCEPTS: sequence of strings
        R*  (   R>   R™  (   R-   Rš  R›  R*  RE   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   set_yticklabels  s    c         C  s   |  j  j | ƒ d S(   s¯   
        Sets up x-axis ticks and labels that treat the x data as dates.

        *tz* is a timezone string or :class:`tzinfo` instance.
        Defaults to rc value.
        N(   R=   t	   axis_date(   R-   t   tz(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt
   xaxis_date1  s    	c         C  s   |  j  j | ƒ d S(   s¯   
        Sets up y-axis ticks and labels that treat the y data as dates.

        *tz* is a timezone string or :class:`tzinfo` instance.
        Defaults to rc value.
        N(   R>   R¨  (   R-   R©  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt
   yaxis_date<  s    c         C  sH   y |  j  | ƒ SWn0 t k
 rC |  j j ƒ  j } | | ƒ } | SXd S(   s·   
        Return *x* string formatted.  This function will use the attribute
        self.fmt_xdata if it is callable, else will fall back on the xaxis
        major formatter
        N(   R²   RK   R=   R-  t   format_data_short(   R-   R^   RQ   RO   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   format_xdataE  s    c         C  sH   y |  j  | ƒ SWn0 t k
 rC |  j j ƒ  j } | | ƒ } | SXd S(   s¸   
        Return y string formatted.  This function will use the
        :attr:`fmt_ydata` attribute if it is callable, else will fall
        back on the yaxis major formatter
        N(   R³   RK   R>   R-  R¬  (   R-   R_   RQ   RO   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   format_ydataR  s    c         C  sV   | d k r d } n |  j | ƒ } | d k r9 d } n |  j | ƒ } d | | f S(   s4   Return a format string formatting the *x*, *y* coords   ???s	   x=%s y=%sN(   R   R­  R®  (   R-   R^   R_   t   xst   ys(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   format_coord_  s    		c         C  s   t  S(   sX   
        Return *True* if this axes supports the zoom box button functionality.
        (   R   (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   can_zoomm  s    c         C  s   t  S(   sX   
        Return *True* if this axes supports any pan/zoom button functionality.
        (   R   (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   can_pans  s    c         C  s   |  j  S(   sF   
        Get whether the axes responds to navigation commands
        (   t	   _navigate(   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_navigatey  s    c         C  s   | |  _  d S(   su   
        Set whether the axes responds to navigation toolbar commands

        ACCEPTS: [ *True* | *False* ]
        N(   R´  (   R-   Rc  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR¶     s    c         C  s   |  j  S(   sR   
        Get the navigation toolbar button status: 'PAN', 'ZOOM', or None
        (   t   _navigate_mode(   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_navigate_mode‡  s    c         C  s   | |  _  d S(   s   
        Set the navigation toolbar button status;

        .. warning::
            this is not a user-API function.

        N(   R¶  (   R-   Rc  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR·   �  s    c         C  sa   t  j d |  j j ƒ  d |  j j ƒ  d |  j j ƒ  j ƒ  d |  j j ƒ  d | d | ƒ |  _ d S(   s2  
        Called when a pan operation has started.

        *x*, *y* are the mouse coordinates in display coords.
        button is the mouse button number:

        * 1: LEFT
        * 2: MIDDLE
        * 3: RIGHT

        .. note::

            Intended to be overridden by new projection types.

        t   limt   transt   trans_inverseRÔ   R^   R_   N(   R'  t   BunchRä   R›   Rí   t   invertedRÔ   t
   _pan_start(   R-   R^   R_   t   button(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt	   start_pan—  s    	c         C  s
   |  `  d S(   s²   
        Called when a pan operation completes (when the mouse button
        is up.)

        .. note::

            Intended to be overridden by new projection types.

        N(   R½  (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   end_pan°  s    
c         C  sÏ  d „  } |  j  } | | j } | | j } | d k rH | d k rH d S| d k r’ | | | | ƒ \ } } | j j | | ƒ j | j ƒ }	 n| d k r«yè | t |  j j ƒ } | t |  j j	 ƒ } | | | | ƒ \ } } |  j
 ƒ  d k rd | | } | } n  t j d | | f ƒ }
 t j | j | j g ƒ } | j j | j ƒ } | |
 | | } t j | ƒ j | j ƒ }	 Wq«t k
 r§t j d	 ƒ d SXn  |  j |	 j Œ  |  j |	 j Œ  d S(
   s`  
        Called when the mouse moves during a pan operation.

        *button* is the mouse button number:

        * 1: LEFT
        * 2: MIDDLE
        * 3: RIGHT

        *key* is a "shift" key

        *x*, *y* are the mouse coordinates in display coords.

        .. note::

            Intended to be overridden by new projection types.

        c         S  s  |  d k r6 t  | ƒ t  | ƒ k r- | } q| } nÒ |  d k rK d } n½ |  d k r` d } n¨ |  d k rd t  | ƒ t  | ƒ k  r‘ d } qd t  | ƒ t  | ƒ k  r¶ d } qt  | ƒ t  | ƒ k rë | t  | ƒ t  | ƒ } q| t  | ƒ t  | ƒ } n  | | f S(   Nt   controlR^   i    R_   t   shifti   (   RŠ  (   RN   t   dxt   dy(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   format_deltasÏ  s"    						i    Ni   i   RŒ   g      à?g      $@s   Overflow while panning(   R½  R^   R_   RÔ   t
   translatedt   transformedRº  Rt   R‹  RŒ  Rf  RY   t   powert   arrayR¸  R¹  R˜   R™   t   OverflowErrorR„  R…  R,  R%  R8  R(  (   R-   R¾  RN   R^   R_   RÅ  Rð  RÃ  RÄ  t   resultt   alphat   startt	   oldpointst	   newpoints(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   drag_pan¼  s:    			c         C  s   |  j  S(   sœ   
        Return the cursor propertiess as a (*linewidth*, *color*)
        tuple, where *linewidth* is a float and *color* is an RGBA
        tuple
        (   t   _cursorProps(   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_cursor_props  s    c         G  sw   t  | ƒ d k r% | d \ } } n- t  | ƒ d k rF | \ } } n t d ƒ ‚ t j j | ƒ } | | f |  _ d S(   sÍ   
        Set the cursor property as::

          ax.set_cursor_props(linewidth, color)

        or::

          ax.set_cursor_props((linewidth, color))

        ACCEPTS: a (*float*, *color*) tuple
        i   i    i   s'   args must be a (linewidth, color) tupleN(   Rq   R   R   R   t   to_rgbaRÑ  (   R-   RD   t   lwR%   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR´     s    c         C  s  g  } | j  |  j ƒ | j  |  j ƒ | j |  j ƒ | j |  j ƒ | j |  j ƒ | j |  j ƒ | j |  j ƒ | j |  j	 ƒ |  j
 d k	 r¨ | j  |  j
 ƒ n  | j |  j ƒ | j  |  j ƒ | j  |  j ƒ | j  |  j ƒ | j  |  j ƒ | j |  j j ƒ  ƒ | S(   s   return a list of child artistsN(   Rx   R=   R>   R4  RÉ   RÌ   RÍ   RË   RA  RÎ   RC  R   RÊ   RJ  RK  RL  RN  R©   R6  (   R-   t   children(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_children   s$    c         C  s/   t  |  j ƒ r |  j |  | ƒ S|  j j | ƒ S(   si   
        Test whether the mouse event occured in the axes.

        Returns *True* / *False*, {}
        (   t   callablet	   _containsRN  R  (   R-   R  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR  5  s    c         C  s   |  j  j | d d ƒS(   s¥   
        Returns *True* if the point (tuple of x,y) is inside the axes
        (the area defined by the its patch). A pixel coordinate is
        required.

        t   radiusg      ð?(   RN  t   contains_point(   R-   t   point(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRÚ  @  s    c         G  s   t  j j |  | d ƒ d S(   s¹   
        Call signature::

            pick(mouseevent)

        each child artist will fire a pick event if mouseevent is over
        the artist and the artist has picker set
        i    N(   R•   R–   t   pick(   R-   RD   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRÜ  I  s    	R÷   c         C  s`   y2 i |  j  d 6|  j d 6|  j d 6| j ƒ  } Wn! t k
 rU t d | ƒ ‚ n X| j ƒ  S(   sÈ  Get an axes title.

        Get one of the three available axes titles. The available titles
        are positioned above the axes in the center, flush with the left
        edge, and flush with the right edge.

        Parameters
        ----------
        loc : {'center', 'left', 'right'}, str, optional
            Which title to get, defaults to 'center'

        Returns
        -------
        title: str
            The title text string.

        RØ   R÷   RÙ   s   '%s' is not a valid location(   RK  RJ  RL  R´  Rk   R   t   get_text(   R-   t   locRJ  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt	   get_titleV  s    
c         K  sÂ   y2 i |  j  d 6|  j d 6|  j d 6| j ƒ  } Wn! t k
 rU t d | ƒ ‚ n Xi t d d 6d d 6| j ƒ  d	 6} | j | ƒ | j | ƒ | d
 k	 r± | j | ƒ n  | j | ƒ | S(   s(  
        Set a title for the axes.

        Set one of the three available axes titles. The available titles
        are positioned above the axes in the center, flush with the left
        edge, and flush with the right edge.

        Parameters
        ----------
        label : str
            Text to use for the title

        fontdict : dict
            A dictionary controlling the appearance of the title text,
            the default `fontdict` is::

               {'fontsize': rcParams['axes.titlesize'],
                'verticalalignment': 'baseline',
                'horizontalalignment': loc}

        loc : {'center', 'left', 'right'}, str, optional
            Which title to set, defaults to 'center'

        Returns
        -------
        text : :class:`~matplotlib.text.Text`
            The matplotlib text instance representing the title

        Other parameters
        ----------------
        Other keyword arguments are text properties, see
        :class:`~matplotlib.text.Text` for a list of valid text
        properties.
        RØ   R÷   RÙ   s   '%s' is not a valid locations   axes.titlesizet   fontsizeR#  R"  R$  N(
   RK  RJ  RL  R´  Rk   R   R   t   set_textt   updateR   (   R-   RÆ   R›  RÞ  RE   RJ  t   default(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt	   set_titlep  s     $
c         C  s   |  j  j ƒ  } | j ƒ  S(   s-   
        Get the xlabel text string.
        (   R=   RÑ  RÝ  (   R-   RÆ   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt
   get_xlabel¦  s    c         K  s1   | d k	 r | |  j _ n  |  j j | | | � S(   sÈ  
        Set the label for the xaxis.

        Parameters
        ----------
        xlabel : string
            x label

        labelpad : scalar, optional, default: None
            spacing in points between the label and the x-axis

        Other parameters
        ----------------
        kwargs : `~matplotlib.text.Text` properties

        See also
        --------
        text : for information on how override and the optional args work
        N(   R   R=   t   labelpadt   set_label_text(   R-   t   xlabelR›  Ræ  RE   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt
   set_xlabel­  s    c         C  s   |  j  j ƒ  } | j ƒ  S(   s-   
        Get the ylabel text string.
        (   R>   RÑ  RÝ  (   R-   RÆ   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt
   get_ylabelÆ  s    c         K  s1   | d k	 r | |  j _ n  |  j j | | | � S(   sÈ  
        Set the label for the yaxis

        Parameters
        ----------
        ylabel : string
            y label

        labelpad : scalar, optional, default: None
            spacing in points between the label and the x-axis

        Other parameters
        ----------------
        kwargs : `~matplotlib.text.Text` properties

        See also
        --------
        text : for information on how override and the optional args work

        N(   R   R>   Ræ  Rç  (   R-   t   ylabelR›  Ræ  RE   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt
   set_ylabelÍ  s    c   	        sã   i d d 6d d 6ˆ  j  d 6t d 6} | rL t j d | d | d	 | ƒ } n t j d | d | d	 | ƒ } ˆ  j | ƒ | j | ƒ | d k	 r  | j | ƒ n  | j | ƒ ˆ  j j	 | ƒ ‡  f d
 †  | _
 | j ˆ  j ƒ | S(   s”  
        Add text to the axes.

        Add text in string *s* to axis at location *x*, *y*, data
        coordinates.

        Parameters
        ----------
        s : string
            text

        x, y : scalars
            data coordinates

        fontdict : dictionary, optional, default: None
            A dictionary to override the default text properties. If fontdict
            is None, the defaults are determined by your rc parameters.

        withdash : boolean, optional, default: False
            Creates a `~matplotlib.text.TextWithDash` instance instead of a
            `~matplotlib.text.Text` instance.

        Other parameters
        ----------------
        kwargs : `~matplotlib.text.Text` properties.
            Other miscellaneous text parameters.

        Examples
        --------
        Individual keyword arguments can be used to override any given
        parameter::

            >>> text(x, y, s, fontsize=12)

        The default transform specifies that text is in data coords,
        alternatively, you can specify text in axis coords (0,0 is
        lower-left and 1,1 is upper-right).  The example below places
        text in the center of the axes::

            >>> text(0.5, 0.5,'matplotlib', horizontalalignment='center',
            ...      verticalalignment='center',
            ...      transform=ax.transAxes)

        You can put a rectangular box around the text instance (e.g., to
        set a background color) by using the keyword *bbox*.  *bbox* is
        a dictionary of `~matplotlib.patches.Rectangle`
        properties.  For example::

            >>> text(x, y, s, bbox=dict(facecolor='red', alpha=0.5))
        R#  R"  RØ   R$  Rõ  t   clip_onR^   R_   R   c           s   ˆ  j  j |  ƒ S(   N(   RÍ   RÏ   (   Rš  (   R-   (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRÏ  6  s    N(   Rí   R   RH  t   TextWithDashRI  R  Râ  R   RÍ   Rx   RÐ   RT  RN  (	   R-   R^   R_   R   R›  t   withdashRE   Rã  RX  (    (   R-   sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR   ç  s&    5

			c           sz   t  j | | Ž  } | j t j ƒ  ƒ ˆ  j | ƒ | j d ƒ rT | j ˆ  j ƒ n  ˆ  j	 j
 | ƒ ‡  f d †  | _ | S(   se  
        Create an annotation: a piece of text referring to a data
        point.

        Call signature::

          annotate(s, xy, xytext=None, xycoords='data',
                   textcoords='data', arrowprops=None, **kwargs)

        Keyword arguments:

        %(Annotation)s

        .. plot:: mpl_examples/pylab_examples/annotation_demo2.py
        Rí  c           s   ˆ  j  j |  ƒ S(   N(   RÍ   RÏ   (   Rš  (   R-   (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRÏ  R  s    (   RH  t
   AnnotationR  R˜   Ræ   R  t   has_keyRT  RN  RÍ   Rx   RÐ   (   R-   RD   RE   R  (    (   R-   sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   annotate;  s    i    i   c         K  sÔ   d | k r t  d d ƒ ‚ n  |  j ƒ  \ } } |  j d | d | ƒ |  j | ƒ } | | k  pk | | k } t j |  j |  j ƒ }	 t j	 | | g | | g d |	 | �}
 |  j
 |
 ƒ |  j d t d | ƒ |
 S(   s\  
        Add a horizontal line across the axis.

        Call signature::

          axhline(y=0, xmin=0, xmax=1, **kwargs)

        Draw a horizontal line at *y* from *xmin* to *xmax*.  With the
        default values of *xmin* = 0 and *xmax* = 1, this line will
        always span the horizontal extent of the axes, regardless of
        the xlim settings, even if you change them, e.g., with the
        :meth:`set_xlim` command.  That is, the horizontal extent is
        in axes coords: 0=left, 0.5=middle, 1.0=right but the *y*
        location is in data coordinates.

        Return value is the :class:`~matplotlib.lines.Line2D`
        instance.  kwargs are the same as kwargs to plot, and can be
        used to control the line properties.  e.g.,

        * draw a thick red hline at *y* = 0 that spans the xrange::

            >>> axhline(linewidth=4, color='r')

        * draw a default hline at *y* = 1 that spans the xrange::

            >>> axhline(y=1)

        * draw a default hline at *y* = .5 that spans the the middle half of
          the xrange::

            >>> axhline(y=.5, xmin=0.25, xmax=0.75)

        Valid kwargs are :class:`~matplotlib.lines.Line2D` properties,
        with the exception of 'transform':

        %(Line2D)s

        .. seealso::

            :meth:`axhspan`
                for example plot and source code
        Rõ  s&   'transform' is not allowed as a kwarg;s$   axhline generates its own transform.R
  RE   R  R  (   R   Ru  R  RX   R˜   Rî   Rê   Rí   R   Re   RÛ  R¸  R   (   R-   R_   Rx  Ry  RE   Rz  R{  t   yyR  R¹  R˜  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   axhlineW  s    -'c         K  sÔ   d | k r t  d d ƒ ‚ n  |  j ƒ  \ } } |  j d | d | ƒ |  j | ƒ } | | k  pk | | k } t j |  j |  j ƒ }	 t j	 | | g | | g d |	 | �}
 |  j
 |
 ƒ |  j d | d t ƒ |
 S(   sT  
        Add a vertical line across the axes.

        Call signature::

          axvline(x=0, ymin=0, ymax=1, **kwargs)

        Draw a vertical line at *x* from *ymin* to *ymax*.  With the
        default values of *ymin* = 0 and *ymax* = 1, this line will
        always span the vertical extent of the axes, regardless of the
        ylim settings, even if you change them, e.g., with the
        :meth:`set_ylim` command.  That is, the vertical extent is in
        axes coords: 0=bottom, 0.5=middle, 1.0=top but the *x* location
        is in data coordinates.

        Return value is the :class:`~matplotlib.lines.Line2D`
        instance.  kwargs are the same as kwargs to plot, and can be
        used to control the line properties.  e.g.,

        * draw a thick red vline at *x* = 0 that spans the yrange::

            >>> axvline(linewidth=4, color='r')

        * draw a default vline at *x* = 1 that spans the yrange::

            >>> axvline(x=1)

        * draw a default vline at *x* = .5 that spans the the middle half of
          the yrange::

            >>> axvline(x=.5, ymin=0.25, ymax=0.75)

        Valid kwargs are :class:`~matplotlib.lines.Line2D` properties,
        with the exception of 'transform':

        %(Line2D)s

        .. seealso::

            :meth:`axhspan`
                for example plot and source code
        Rõ  s&   'transform' is not allowed as a kwarg;s$   axvline generates its own transform.R	  RE   R  R  (   R   Rt  R  RW   R˜   Rî   Rí   Rê   R   Re   RÛ  R¸  R   (   R-   R^   Rz  R{  RE   Rx  Ry  t   xxR  R¹  R˜  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   axvline—  s    -'c   	      K  sÚ   t  j |  j |  j ƒ } |  j | | g | | g d | ƒ|  j | | g ƒ \ } } |  j | | g ƒ \ } } | | f | | f | | f | | f f } t j | | � } | j	 | ƒ |  j
 | ƒ |  j d t ƒ | S(   sg  
        Add a horizontal span (rectangle) across the axis.

        Call signature::

          axhspan(ymin, ymax, xmin=0, xmax=1, **kwargs)

        *y* coords are in data units and *x* coords are in axes (relative
        0-1) units.

        Draw a horizontal span (rectangle) from *ymin* to *ymax*.
        With the default values of *xmin* = 0 and *xmax* = 1, this
        always spans the xrange, regardless of the xlim settings, even
        if you change them, e.g., with the :meth:`set_xlim` command.
        That is, the horizontal extent is in axes coords: 0=left,
        0.5=middle, 1.0=right but the *y* location is in data
        coordinates.

        Return value is a :class:`matplotlib.patches.Polygon`
        instance.

        Examples:

        * draw a gray rectangle from *y* = 0.25-0.75 that spans the
          horizontal extent of the axes::

            >>> axhspan(0.25, 0.75, facecolor='0.5', alpha=0.5)

        Valid kwargs are :class:`~matplotlib.patches.Polygon` properties:

        %(Polygon)s

        **Example:**

        .. plot:: mpl_examples/pylab_examples/axhspan_demo.py

        RE   R  (   R˜   Rî   Rê   Rí   R  RW   RX   Rl   Rm   R  Rñ  R¸  R   (	   R-   Rz  R{  Rx  Ry  RE   R¹  t   vertsRð  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   axhspan×  s    '"*c   	      K  sÚ   t  j |  j |  j ƒ } |  j | | g | | g d | ƒ|  j | | g ƒ \ } } |  j | | g ƒ \ } } | | f | | f | | f | | f g } t j | | � } | j	 | ƒ |  j
 | ƒ |  j d t ƒ | S(   s{  
        Add a vertical span (rectangle) across the axes.

        Call signature::

          axvspan(xmin, xmax, ymin=0, ymax=1, **kwargs)

        *x* coords are in data units and *y* coords are in axes (relative
        0-1) units.

        Draw a vertical span (rectangle) from *xmin* to *xmax*.  With
        the default values of *ymin* = 0 and *ymax* = 1, this always
        spans the yrange, regardless of the ylim settings, even if you
        change them, e.g., with the :meth:`set_ylim` command.  That is,
        the vertical extent is in axes coords: 0=bottom, 0.5=middle,
        1.0=top but the *y* location is in data coordinates.

        Return value is the :class:`matplotlib.patches.Polygon`
        instance.

        Examples:

        * draw a vertical green translucent rectangle from x=1.25 to 1.55 that
          spans the yrange of the axes::

            >>> axvspan(1.25, 1.55, facecolor='g', alpha=0.5)

        Valid kwargs are :class:`~matplotlib.patches.Polygon`
        properties:

        %(Polygon)s

        .. seealso::

            :meth:`axhspan`
                for example plot and source code
        RE   R  (   R˜   Rî   Rí   Rê   R  RW   RX   Rl   Rm   R  Rñ  R¸  R   (	   R-   Rx  Ry  Rz  R{  RE   R¹  R÷  Rð  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   axvspan  s    '"*Rz   t   solidc         K  sq  |  j  | | g | d | ƒ|  j | ƒ } |  j | ƒ } |  j | ƒ } t | ƒ sa | g } n  t | ƒ sy | g } n  t | ƒ s‘ | g } n  t j | ƒ } t j | ƒ } t j | ƒ } t | ƒ d k rè t j | | j ƒ } n  t | ƒ d k rt j | | j ƒ } n  t | ƒ t | ƒ k r9t	 d ƒ ‚ n  t | ƒ t | ƒ k r`t	 d ƒ ‚ n  g  t
 | | | ƒ D]' \ } }	 }
 | |
 f |	 |
 f f ^ qs} t j | d | d | d | ƒ} |  j | ƒ | j | ƒ t | ƒ d k rmt | j ƒ  | j ƒ  ƒ } t | j ƒ  | j ƒ  ƒ } | j ƒ  } | j ƒ  } | | f | | f f } |  j | ƒ |  j ƒ  n  | S(	   sÆ  
        Plot horizontal lines.

        Plot horizontal lines at each `y` from `xmin` to `xmax`.

        Parameters
        ----------
        y : scalar or 1D array_like
            y-indexes where to plot the lines.

        xmin, xmax : scalar or 1D array_like
            Respective beginning and end of each line. If scalars are
            provided, all lines will have same length.

        colors : array_like of colors, optional, default: 'k'

        linestyles : ['solid' | 'dashed' | 'dashdot' | 'dotted'], optional

        label : string, optional, default: ''

        Returns
        -------
        lines : `~matplotlib.collections.LineCollection`

        Other parameters
        ----------------
        kwargs :  `~matplotlib.collections.LineCollection` properties.

        See also
        --------
        vlines : vertical lines

        Examples
        --------
        .. plot:: mpl_examples/pylab_examples/vline_hline_demo.py

        RE   i   s&   xmin and y are unequal sized sequencess&   xmax and y are unequal sized sequencesR   t
   linestylesRÆ   i    (   R  RX   RW   R   RY   R  Rq   t   resizeR[   R   Rr   t   mcollt   LineCollectionRÙ  Râ  t   minRw   RÕ  R¸  (   R-   R_   Rx  Ry  R   Rû  RÆ   RE   t   thisxmint   thisxmaxt   thisyR÷  t   collt   minxt   maxxt   minyt   maxyt   corners(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   hlinesG  sH    +=c         K  s�  |  j  d | d | | g d | ƒ |  j | ƒ } |  j | ƒ } |  j | ƒ } t | ƒ sg | g } n  t | ƒ s | g } n  t | ƒ s— | g } n  t j | ƒ } t j | ƒ } t j | ƒ } t | ƒ d k rî t j | | j ƒ } n  t | ƒ d k rt j | | j ƒ } n  t | ƒ t | ƒ k r?t	 d ƒ ‚ n  t | ƒ t | ƒ k rft	 d ƒ ‚ n  t j
 | | g ƒ j } g  t | | ƒ D]* \ }	 \ }
 } |	 |
 f |	 | f f ^ qŽ} t j | d | d | d	 | ƒ} |  j | ƒ | j | ƒ t | ƒ d
 k r‹t | ƒ } t | ƒ } t t | ƒ t | ƒ ƒ } t t | ƒ t | ƒ ƒ } | | f | | f f } |  j | ƒ |  j ƒ  n  | S(   sÄ  
        Plot vertical lines.

        Plot vertical lines at each `x` from `ymin` to `ymax`.

        Parameters
        ----------
        x : scalar or 1D array_like
            x-indexes where to plot the lines.

        xmin, xmax : scalar or 1D array_like
            Respective beginning and end of each line. If scalars are
            provided, all lines will have same length.

        colors : array_like of colors, optional, default: 'k'

        linestyles : ['solid' | 'dashed' | 'dashdot' | 'dotted'], optional

        label : string, optional, default: ''

        Returns
        -------
        lines : `~matplotlib.collections.LineCollection`

        Other parameters
        ----------------
        kwargs : `~matplotlib.collections.LineCollection` properties.

        See also
        --------
        hlines : horizontal lines

        Examples
        ---------
        .. plot:: mpl_examples/pylab_examples/vline_hline_demo.py

        R	  R
  RE   i   s&   ymin and x are unequal sized sequencess&   ymax and x are unequal sized sequencesR   Rû  RÆ   i    (   R  RW   RX   R   RY   R  Rq   Rü  R[   R   RÉ  t   TRr   Rý  Rþ  RÙ  Râ  Rÿ  Rw   RÕ  R¸  (   R-   R^   Rz  R{  R   Rû  RÆ   RE   t   Yt   thisxt   thisymint   thisymaxR÷  R  R  R  R  R  R  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   vlines   sJ    )"=t
   horizontalc         K  sN  |  j  d | d | | g d | ƒ |  j | ƒ } |  j | ƒ } |  j | ƒ } t | ƒ sg | g } nM t d „  | Dƒ ƒ r¢ g  | D] }	 t j |	 ƒ ^ q„ } n t j | ƒ g } t | ƒ d k rÊ g  St | ƒ sâ | g } n  t | ƒ sú | g } n  t | ƒ s| g } n  t | ƒ s*| g } n  t | d ƒ sFt | ƒ rR| g } n  t j	 | ƒ } t j	 | ƒ } t j	 | ƒ } t | ƒ d k r�d g } n  t | ƒ d k r»d g } n  t | ƒ d k rÙd g } n  t | ƒ d k r÷d g } n  t | ƒ d k rd g } n  t | ƒ d k rmt | ƒ d k rmt j | t | ƒ ƒ } d | d <t j | ƒ } n  t | ƒ d k ršt j | t | ƒ ƒ } n  t | ƒ d k rÇt j | t | ƒ ƒ } n  t | ƒ d k r	t j | ƒ } t j | t | ƒ d g ƒ } n  t | ƒ d k r1| g t | ƒ } n  t | ƒ t | ƒ k rXt d ƒ ‚ n  t | ƒ t | ƒ k rt d	 ƒ ‚ n  t | ƒ t | ƒ k r¦t d
 ƒ ‚ n  t | ƒ t | ƒ k rÍt d ƒ ‚ n  t | ƒ t | ƒ k rôt d ƒ ‚ n  g  }
 x’ t j | | | | | | ƒ D]r \ }	 } } } } } t j |	 d | d | d | d | d | d | ƒ} |  j | ƒ | j | ƒ |
 j | ƒ qWt | ƒ d k rJt d „  | Dƒ ƒ } t d „  | Dƒ ƒ } | | j ƒ  } | | j ƒ  } |
 d j ƒ  r| | f | | f f } n | | f | | f f } |  j | ƒ |  j ƒ  n  |
 S(   s¨  
        Plot identical parallel lines at specific positions.

        Call signature::

          eventplot(positions, orientation='horizontal', lineoffsets=0,
                    linelengths=1, linewidths=None, color =None,
                    linestyles='solid'

        Plot parallel lines at the given positions.  positions should be a 1D
        or 2D array-like object, with each row corresponding to a row or column
        of lines.

        This type of plot is commonly used in neuroscience for representing
        neural events, where it is commonly called a spike raster, dot raster,
        or raster plot.

        However, it is useful in any situation where you wish to show the
        timing or position of multiple sets of discrete events, such as the
        arrival times of people to a business on each day of the month or the
        date of hurricanes each year of the last century.

        *orientation* : [ 'horizonal' | 'vertical' ]
          'horizonal' : the lines will be vertical and arranged in rows
          "vertical' : lines will be horizontal and arranged in columns

        *lineoffsets* :
          A float or array-like containing floats.

        *linelengths* :
          A float or array-like containing floats.

        *linewidths* :
          A float or array-like containing floats.

        *colors*
          must be a sequence of RGBA tuples (eg arbitrary color
          strings, etc, not allowed) or a list of such sequences

        *linestyles* :
          [ 'solid' | 'dashed' | 'dashdot' | 'dotted' ] or an array of these
          values

        For linelengths, linewidths, colors, and linestyles, if only a single
        value is given, that value is applied to all lines.  If an array-like
        is given, it must have the same length as positions, and each value
        will be applied to the corresponding row or column in positions.

        Returns a list of :class:`matplotlib.collections.EventCollection`
        objects that were added.

        kwargs are :class:`~matplotlib.collections.LineCollection` properties:

        %(LineCollection)s

        **Example:**

        .. plot:: mpl_examples/pylab_examples/eventplot_demo.py
        R	  R
  RE   c         s  s   |  ] } t  | ƒ Vq d  S(   N(   R   (   t   .0R�  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pys	   <genexpr>E  s    i    R´  i   s5   lineoffsets and positions are unequal sized sequencess5   linelengths and positions are unequal sized sequencess4   linewidths and positions are unequal sized sequencess0   colors and positions are unequal sized sequencess4   linestyles and positions are unequal sized sequencest   orientationt
   lineoffsett
   linelengtht	   linewidthR#   R!   c         s  s   |  ] } | j  ƒ  Vq d  S(   N(   Rÿ  (   R  R�  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pys	   <genexpr>•  s    c         s  s   |  ] } | j  ƒ  Vq d  S(   N(   Rw   (   R  R�  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pys	   <genexpr>–  s    N(   R  RW   RX   R   Rà  RY   t
   asanyarrayRq   RJ   R  R   t   tilet   cumsumR   R4   t   izipRý  t   EventCollectionRÙ  Râ  Rx   Rÿ  Rw   t   is_horizontalRÕ  R¸  (   R-   t	   positionsR  t   lineoffsetst   linelengthst
   linewidthsR   Rû  RE   R�  t   collsR  R  R  R#   R!   R  t   minpost   maxpost   minlinet   maxlineR  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt	   eventplotû  s¨    ?%$
!"	c         O  s‘   | j  d t ƒ } | j  d t ƒ } |  j s: |  j ƒ  n  g  } x4 |  j | | Ž  D]  } |  j | ƒ | j | ƒ qS W|  j d | d | ƒ | S(   sþ  
        Plot lines and/or markers to the
        :class:`~matplotlib.axes.Axes`.  *args* is a variable length
        argument, allowing for multiple *x*, *y* pairs with an
        optional format string.  For example, each of the following is
        legal::

            plot(x, y)        # plot x and y using default line style and color
            plot(x, y, 'bo')  # plot x and y using blue circle markers
            plot(y)           # plot y using x as index array 0..N-1
            plot(y, 'r+')     # ditto, but with red plusses

        If *x* and/or *y* is 2-dimensional, then the corresponding columns
        will be plotted.

        An arbitrary number of *x*, *y*, *fmt* groups can be
        specified, as in::

            a.plot(x1, y1, 'g^', x2, y2, 'g-')

        Return value is a list of lines that were added.

        By default, each line is assigned a different color specified by a
        'color cycle'.  To change this behavior, you can edit the
        axes.color_cycle rcParam. Alternatively, you can use
        :meth:`~matplotlib.axes.Axes.set_default_color_cycle`.

        The following format string characters are accepted to control
        the line style or marker:

        ================    ===============================
        character           description
        ================    ===============================
        ``'-'``             solid line style
        ``'--'``            dashed line style
        ``'-.'``            dash-dot line style
        ``':'``             dotted line style
        ``'.'``             point marker
        ``','``             pixel marker
        ``'o'``             circle marker
        ``'v'``             triangle_down marker
        ``'^'``             triangle_up marker
        ``'<'``             triangle_left marker
        ``'>'``             triangle_right marker
        ``'1'``             tri_down marker
        ``'2'``             tri_up marker
        ``'3'``             tri_left marker
        ``'4'``             tri_right marker
        ``'s'``             square marker
        ``'p'``             pentagon marker
        ``'*'``             star marker
        ``'h'``             hexagon1 marker
        ``'H'``             hexagon2 marker
        ``'+'``             plus marker
        ``'x'``             x marker
        ``'D'``             diamond marker
        ``'d'``             thin_diamond marker
        ``'|'``             vline marker
        ``'_'``             hline marker
        ================    ===============================


        The following color abbreviations are supported:

        ==========  ========
        character   color
        ==========  ========
        'b'         blue
        'g'         green
        'r'         red
        'c'         cyan
        'm'         magenta
        'y'         yellow
        'k'         black
        'w'         white
        ==========  ========

        In addition, you can specify colors in many weird and
        wonderful ways, including full names (``'green'``), hex
        strings (``'#008000'``), RGB or RGBA tuples (``(0,1,0,1)``) or
        grayscale intensities as a string (``'0.8'``).  Of these, the
        string specifications can be used in place of a ``fmt`` group,
        but the tuple forms can be used only as ``kwargs``.

        Line styles and colors are combined in a single format string, as in
        ``'bo'`` for blue circles.

        The *kwargs* can be used to set line properties (any property that has
        a ``set_*`` method).  You can use this to set a line label (for auto
        legends), linewidth, anitialising, marker face color, etc.  Here is an
        example::

            plot([1,2,3], [1,2,3], 'go-', label='line 1', linewidth=2)
            plot([1,2,3], [1,4,9], 'rs',  label='line 2')
            axis([0, 4, 0, 10])
            legend()

        If you make multiple lines with one plot command, the kwargs
        apply to all those lines, e.g.::

            plot(x1, y1, x2, y2, antialised=False)

        Neither line will be antialiased.

        You do not need to use format strings, which are just
        abbreviations.  All of the line properties can be controlled
        by keyword arguments.  For example, you can set the color,
        marker, linestyle, and markercolor with::

            plot(x, y, color='green', linestyle='dashed', marker='o',
                 markerfacecolor='blue', markersize=12).

        See :class:`~matplotlib.lines.Line2D` for details.

        The kwargs are :class:`~matplotlib.lines.Line2D` properties:

        %(Line2D)s

        kwargs *scalex* and *scaley*, if defined, are passed on to
        :meth:`~matplotlib.axes.Axes.autoscale_view` to determine
        whether the *x* and *y* axes are autoscaled; the default is
        *True*.
        R  R  (   R?   R   R¯   R±   R>  RÛ  Rx   R¸  (   R-   RD   RE   R  R  RÉ   RM   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR)   ¥  s    }	t   boc   	      K  sh   |  j  s |  j ƒ  n  |  j | | | | � } | rD |  j | ƒ n  | rZ |  j | ƒ n  |  j ƒ  | S(   s}  
        Plot with data with dates.

        Call signature::

           plot_date(x, y, fmt='bo', tz=None, xdate=True,
                     ydate=False, **kwargs)

        Similar to the :func:`~matplotlib.pyplot.plot` command, except
        the *x* or *y* (or both) data is considered to be dates, and the
        axis is labeled accordingly.

        *x* and/or *y* can be a sequence of dates represented as float
        days since 0001-01-01 UTC.

        Keyword arguments:

          *fmt*: string
            The plot format string.

          *tz*: [ *None* | timezone string | :class:`tzinfo` instance]
            The time zone to use in labeling dates. If *None*, defaults to rc
            value.

          *xdate*: [ *True* | *False* ]
            If *True*, the *x*-axis will be labeled with dates.

          *ydate*: [ *False* | *True* ]
            If *True*, the *y*-axis will be labeled with dates.

        Note if you are using custom date tickers and formatters, it
        may be necessary to set the formatters/locators after the call
        to :meth:`plot_date` since :meth:`plot_date` will set the
        default tick locator to
        :class:`matplotlib.dates.AutoDateLocator` (if the tick
        locator is not already set to a
        :class:`matplotlib.dates.DateLocator` instance) and the
        default tick formatter to
        :class:`matplotlib.dates.AutoDateFormatter` (if the tick
        formatter is not already set to a
        :class:`matplotlib.dates.DateFormatter` instance).

        Valid kwargs are :class:`~matplotlib.lines.Line2D` properties:

        %(Line2D)s

        .. seealso::

           :mod:`~matplotlib.dates` for helper functions

           :func:`~matplotlib.dates.date2num`,
           :func:`~matplotlib.dates.num2date` and
           :func:`~matplotlib.dates.drange` for help on creating the required
           floating point dates.
        (   R¯   R±   R)   Rª  R«  R¸  (	   R-   R^   R_   R    R©  t   xdatet   ydateRE   RF   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt	   plot_date0  s    ;	
c         O  så   |  j  s |  j ƒ  n  i | j d d ƒ d 6| j d d
 ƒ d 6| j d d ƒ d 6} i | j d d ƒ d 6| j d d
 ƒ d 6| j d d ƒ d 6} |  j d	 | � |  j d	 | � |  j  } t |  _  |  j | | Ž  } | |  _  | S(   s‘  
        Make a plot with log scaling on both the *x* and *y* axis.

        Call signature::

          loglog(*args, **kwargs)

        :func:`~matplotlib.pyplot.loglog` supports all the keyword
        arguments of :func:`~matplotlib.pyplot.plot` and
        :meth:`matplotlib.axes.Axes.set_xscale` /
        :meth:`matplotlib.axes.Axes.set_yscale`.

        Notable keyword arguments:

          *basex*/*basey*: scalar > 1
            Base of the *x*/*y* logarithm

          *subsx*/*subsy*: [ *None* | sequence ]
            The location of the minor *x*/*y* ticks; *None* defaults
            to autosubs, which depend on the number of decades in the
            plot; see :meth:`matplotlib.axes.Axes.set_xscale` /
            :meth:`matplotlib.axes.Axes.set_yscale` for details

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

        The remaining valid kwargs are
        :class:`~matplotlib.lines.Line2D` properties:

        %(Line2D)s

        **Example:**

        .. plot:: mpl_examples/pylab_examples/log_demo.py

        t   basexi
   t   subsxt   nonposxt   maskt   baseyt   subsyt   nonposyR�  N(   R¯   R±   R?   R   R¸   R¹   R   R)   (   R-   RD   RE   RÃ  RÄ  Rc  R˜  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   loglogy  s    '				c         O  s–   |  j  s |  j ƒ  n  i | j d d ƒ d 6| j d d ƒ d 6| j d d ƒ d 6} |  j d | � |  j  } t |  _  |  j | | Ž  } | |  _  | S(   sü  
        Make a plot with log scaling on the *x* axis.

        Call signature::

          semilogx(*args, **kwargs)

        :func:`semilogx` supports all the keyword arguments of
        :func:`~matplotlib.pyplot.plot` and
        :meth:`matplotlib.axes.Axes.set_xscale`.

        Notable keyword arguments:

          *basex*: scalar > 1
            Base of the *x* logarithm

          *subsx*: [ *None* | sequence ]
            The location of the minor xticks; *None* defaults to
            autosubs, which depend on the number of decades in the
            plot; see :meth:`~matplotlib.axes.Axes.set_xscale` for
            details.

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

        The remaining valid kwargs are
        :class:`~matplotlib.lines.Line2D` properties:

        %(Line2D)s

        .. seealso::

            :meth:`loglog`
                For example code and figure
        R*  i
   R+  R,  R-  R�  N(   R¯   R±   R?   R   R¸   R   R)   (   R-   RD   RE   t   dRc  R˜  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   semilogx¶  s    &				c         O  s–   |  j  s |  j ƒ  n  i | j d d ƒ d 6| j d d ƒ d 6| j d d ƒ d 6} |  j d | � |  j  } t |  _  |  j | | Ž  } | |  _  | S(   sû  
        Make a plot with log scaling on the *y* axis.

        call signature::

          semilogy(*args, **kwargs)

        :func:`semilogy` supports all the keyword arguments of
        :func:`~matplotlib.pylab.plot` and
        :meth:`matplotlib.axes.Axes.set_yscale`.

        Notable keyword arguments:

          *basey*: scalar > 1
            Base of the *y* logarithm

          *subsy*: [ *None* | sequence ]
            The location of the minor yticks; *None* defaults to
            autosubs, which depend on the number of decades in the
            plot; see :meth:`~matplotlib.axes.Axes.set_yscale` for
            details.

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

        The remaining valid kwargs are
        :class:`~matplotlib.lines.Line2D` properties:

        %(Line2D)s

        .. seealso::

            :meth:`loglog`
                For example code and figure
        R.  i
   R/  R0  R-  R�  N(   R¯   R±   R?   R   R¹   R   R)   (   R-   RD   RE   R2  Rc  R˜  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   semilogyê  s    &				c         K  s   |  j  | | | � S(   sÓ  
        Plot the autocorrelation of *x*.

        Call signature::

            acorr(x, normed=True, detrend=mlab.detrend_none, usevlines=True,
                  maxlags=10, **kwargs)

        If *normed* = *True*, normalize the data by the autocorrelation at
        0-th lag.  *x* is detrended by the *detrend* callable (default no
        normalization).

        Data are plotted as ``plot(lags, c, **kwargs)``

        Return value is a tuple (*lags*, *c*, *line*) where:

          - *lags* are a length 2*maxlags+1 lag vector

          - *c* is the 2*maxlags+1 auto correlation vector

          - *line* is a :class:`~matplotlib.lines.Line2D` instance
            returned by :meth:`plot`

        The default *linestyle* is None and the default *marker* is
        ``'o'``, though these can be overridden with keyword args.
        The cross correlation is performed with
        :func:`numpy.correlate` with *mode* = 2.

        If *usevlines* is *True*, :meth:`~matplotlib.axes.Axes.vlines`
        rather than :meth:`~matplotlib.axes.Axes.plot` is used to draw
        vertical lines from the origin to the acorr.  Otherwise, the
        plot style is determined by the kwargs, which are
        :class:`~matplotlib.lines.Line2D` properties.

        *maxlags* is a positive integer detailing the number of lags
        to show.  The default value of *None* will return all
        ``(2*len(x)-1)`` lags.

        The return value is a tuple (*lags*, *c*, *linecol*, *b*)
        where

          - *linecol* is the
            :class:`~matplotlib.collections.LineCollection`

          - *b* is the *x*-axis.

        .. seealso::

            :meth:`~matplotlib.axes.Axes.plot` or
            :meth:`~matplotlib.axes.Axes.vlines`
            For documentation on valid kwargs.

        **Example:**

        :func:`~matplotlib.pyplot.xcorr` is top graph, and
        :func:`~matplotlib.pyplot.acorr` is bottom graph.

        .. plot:: mpl_examples/pylab_examples/xcorr_demo.py
        (   t   xcorr(   R-   R^   RE   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   acorr  s    =i
   c         K  sœ  t  | ƒ } | t  | ƒ k r- t d ƒ ‚ n  | t j | ƒ ƒ } | t j | ƒ ƒ } t j | | d d ƒ}	 | r§ |	 t j t j | | ƒ t j | | ƒ ƒ }	 n  | d k rÀ | d } n  | | k sØ | d k  rë t d | ƒ ‚ n  t j | | d ƒ }
 |	 | d | | | !}	 | rN|  j	 |
 d g |	 | � } |  j
 | �  } n> | j d d ƒ | j d	 d
 ƒ |  j |
 |	 | � \ } d } |
 |	 | | f S(   s—  
        Plot the cross correlation between *x* and *y*.

        Call signature::

            xcorr(self, x, y, normed=True, detrend=mlab.detrend_none,
              usevlines=True, maxlags=10, **kwargs)

        If *normed* = *True*, normalize the data by the cross
        correlation at 0-th lag.  *x* and y are detrended by the
        *detrend* callable (default no normalization).  *x* and *y*
        must be equal length.

        Data are plotted as ``plot(lags, c, **kwargs)``

        Return value is a tuple (*lags*, *c*, *line*) where:

          - *lags* are a length ``2*maxlags+1`` lag vector

          - *c* is the ``2*maxlags+1`` auto correlation vector

          - *line* is a :class:`~matplotlib.lines.Line2D` instance
             returned by :func:`~matplotlib.pyplot.plot`.

        The default *linestyle* is *None* and the default *marker* is
        'o', though these can be overridden with keyword args.  The
        cross correlation is performed with :func:`numpy.correlate`
        with *mode* = 2.

        If *usevlines* is *True*:

           :func:`~matplotlib.pyplot.vlines`
           rather than :func:`~matplotlib.pyplot.plot` is used to draw
           vertical lines from the origin to the xcorr.  Otherwise the
           plotstyle is determined by the kwargs, which are
           :class:`~matplotlib.lines.Line2D` properties.

           The return value is a tuple (*lags*, *c*, *linecol*, *b*)
           where *linecol* is the
           :class:`matplotlib.collections.LineCollection` instance and
           *b* is the *x*-axis.

        *maxlags* is a positive integer detailing the number of lags to show.
        The default value of *None* will return all ``(2*len(x)-1)`` lags.

        **Example:**

        :func:`~matplotlib.pyplot.xcorr` is top graph, and
        :func:`~matplotlib.pyplot.acorr` is bottom graph.

        .. plot:: mpl_examples/pylab_examples/xcorr_demo.py
        s   x and y must be equal lengtht   modei   i   s.   maglags must be None or strictly positive < %di    R"   t   oR!   R   N(   Rq   R   RY   R  t	   correlatet   sqrtt   dotR   Rs   R  Rô  t
   setdefaultR)   (   R-   R^   R_   t   normedt   detrendt	   usevlinest   maxlagsRE   t   NxR%   t   lagsR  Rc  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR5  ]  s.    82c         C  s­   |  j  |  j |  j |  j } t j j ƒ  } | d k	 rU | j ƒ  } | j	 | ƒ n  g  } xK | D]C } | j
 ƒ  d k r€ qb n  t j j | | ƒ rb | j | ƒ qb qb W| S(   s6   return artists that will be used as handles for legendt
   _nolegend_N(   RÉ   RÌ   RÊ   RD  t   mlegendt   Legendt   get_default_handler_mapR   R0   Râ  RÑ  t   get_legend_handlerRx   (   R-   t   legend_handler_mapt   handles_originalt   handler_mapt   handlesRš  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   _get_legend_handles¶  s    c         C  so   g  } g  } xV |  j  | ƒ D]E } | j ƒ  } | r | j d ƒ r | j | ƒ | j | ƒ q q W| | f S(   s¯   
        Return handles and labels for legend

        ``ax.legend()`` is equivalent to ::

          h, l = ax.get_legend_handles_labels()
          ax.legend(h, l)

        Rî  (   RL  RÑ  t
   startswithRx   (   R-   RH  RK  Rš  t   handleRÆ   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_legend_handles_labelsË  s    c         O  s~  t  | ƒ d k rJ |  j ƒ  \ } } t  | ƒ d k r\t j d ƒ d Snt  | ƒ d k r— | d } g  t |  j ƒ  | ƒ D] \ } } | ^ q| } nÅ t  | ƒ d k r"t | d ƒ sÌ t | d t	 ƒ r| \ } } g  t |  j ƒ  | ƒ D] \ } } | ^ qî } | | d <q\| \ } } n: t  | ƒ d k rP| \ } } } | | d <n t
 d ƒ ‚ t j |  | | | � |  _ |  j S(	   sü  
        Place a legend on the current axes.

        Call signature::

           legend(*args, **kwargs)

        Places legend at location *loc*.  Labels are a sequence of
        strings and *loc* can be a string or an integer specifying the
        legend location.

        To make a legend with existing lines::

           legend()

        :meth:`legend` by itself will try and build a legend using the label
        property of the lines/patches/collections.  You can set the label of
        a line by doing::

           plot(x, y, label='my data')

        or::

           line.set_label('my data').

        If label is set to '_nolegend_', the item will not be shown in
        legend.

        To automatically generate the legend from labels::

           legend( ('label1', 'label2', 'label3') )

        To make a legend for a list of lines and labels::

           legend( (line1, line2, line3), ('label1', 'label2', 'label3') )

        To make a legend at a given location, using a location argument::

           legend( ('label1', 'label2', 'label3'), loc='upper left')

        or::

           legend((line1, line2, line3), ('label1', 'label2', 'label3'), loc=2)

        The location codes are

          ===============   =============
          Location String   Location Code
          ===============   =============
          'best'            0
          'upper right'     1
          'upper left'      2
          'lower left'      3
          'lower right'     4
          'right'           5
          'center left'     6
          'center right'    7
          'lower center'    8
          'upper center'    9
          'center'          10
          ===============   =============


        Users can specify any arbitrary location for the legend using the
        *bbox_to_anchor* keyword argument. bbox_to_anchor can be an instance
        of BboxBase(or its derivatives) or a tuple of 2 or 4 floats.
        For example::

           loc = 'upper right', bbox_to_anchor = (0.5, 0.5)

        will place the legend so that the upper right corner of the legend at
        the center of the axes.

        The legend location can be specified in other coordinate, by using the
        *bbox_transform* keyword.

        The loc itslef can be a 2-tuple giving x,y of the lower-left corner of
        the legend in axes coords (*bbox_to_anchor* is ignored).

        Keyword arguments:

          *prop*: [ *None* | FontProperties | dict ]
            A :class:`matplotlib.font_manager.FontProperties`
            instance. If *prop* is a dictionary, a new instance will be
            created with *prop*. If *None*, use rc settings.

          *fontsize*: [size in points | 'xx-small' | 'x-small' | 'small' |
                      'medium' | 'large' | 'x-large' | 'xx-large']
            Set the font size.  May be either a size string, relative to
            the default font size, or an absolute font size in points. This
            argument is only used if prop is not specified.

          *numpoints*: integer
            The number of points in the legend for line

          *scatterpoints*: integer
            The number of points in the legend for scatter plot

          *scatteryoffsets*: list of floats
            a list of yoffsets for scatter symbols in legend

          *markerscale*: [ *None* | scalar ]
            The relative size of legend markers vs. original. If *None*,
            use rc settings.

          *frameon*: [ *True* | *False* ]
            if *True*, draw a frame around the legend.
            The default is set by the rcParam 'legend.frameon'

          *fancybox*: [ *None* | *False* | *True* ]
            if *True*, draw a frame with a round fancybox.  If *None*,
            use rc settings

          *shadow*: [ *None* | *False* | *True* ]
            If *True*, draw a shadow behind legend. If *None*,
            use rc settings.

          *framealpha*: [*None* | float]
            If not None, alpha channel for legend frame. Default *None*.

          *ncol* : integer
            number of columns. default is 1

          *mode* : [ "expand" | *None* ]
            if mode is "expand", the legend will be horizontally expanded
            to fill the axes area (or *bbox_to_anchor*)

          *bbox_to_anchor*: an instance of BboxBase or a tuple of 2 or 4 floats
            the bbox that the legend will be anchored.

          *bbox_transform* : [ an instance of Transform | *None* ]
            the transform for the bbox. transAxes if *None*.

          *title* : string
            the legend title

        Padding and spacing between various elements use following
        keywords parameters. These values are measure in font-size
        units. e.g., a fontsize of 10 points and a handlelength=5
        implies a handlelength of 50 points.  Values from rcParams
        will be used if None.

        ================   ====================================================
        Keyword            Description
        ================   ====================================================
        borderpad          the fractional whitespace inside the legend border
        labelspacing       the vertical space between the legend entries
        handlelength       the length of the legend handles
        handletextpad      the pad between the legend handle and text
        borderaxespad      the pad between the axes and legend border
        columnspacing      the spacing between columns
        ================   ====================================================

        .. note::

           Not all kinds of artist are supported by the legend command.
           See :ref:`plotting-guide-legend` for details.

        **Example:**

        .. plot:: mpl_examples/api/legend_demo.py

        .. seealso::
            :ref:`plotting-guide-legend`.

        i    sD   No labeled objects found. Use label='...' kwarg on individual plots.i   i   RÞ  i   s   Invalid arguments to legendN(   Rq   RO  R„  R…  R   Rr   RL  R   R—   R   RK   RD  RE  RC  (   R-   RD   RE   RK  Rš  Rš  RÆ   RÞ  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   legendà  s,    ¨
"#c         O  sg   | j  d d ƒ } | d	 k r- t d ƒ ‚ n  | j  d d ƒ } d | | | d <|  j | | | | Ž S(
   sl  
        Make a step plot.

        Call signature::

          step(x, y, *args, **kwargs)

        Additional keyword args to :func:`step` are the same as those
        for :func:`~matplotlib.pyplot.plot`.

        *x* and *y* must be 1-D sequences, and it is assumed, but not checked,
        that *x* is uniformly increasing.

        Keyword arguments:

        *where*: [ 'pre' | 'post' | 'mid'  ]
          If 'pre', the interval from x[i] to x[i+1] has level y[i+1]

          If 'post', that interval has level y[i]

          If 'mid', the jumps in *y* occur half-way between the
          *x*-values.
        t   wheret   pret   postt   mids7   'where' argument to step must be 'pre', 'post' or 'mid'R!   R   s   steps-(   s   preRS  s   mid(   R?   R   R)   (   R-   R^   R_   RD   RE   RQ  t   usr_linestyle(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   step¯  s    gš™™™™™é?c   ,      K  s©	  |  j  s |  j ƒ  n  | j d d- ƒ } | j d d- ƒ } | j d d- ƒ } | j d d- ƒ }	 | j d d- ƒ }
 | j d t ƒ  ƒ } | j d d- ƒ } | j d d	 ƒ } | j d | ƒ | j d | ƒ | j d
 d ƒ } | j d d ƒ } | j d t ƒ } | j d d ƒ } d „  } | } | | ƒ } | | ƒ } | | ƒ } | } | | ƒ } | | ƒ } t } t } | d k r2|  j d | d | d | ƒ | r²|  j d d d ƒn  | d- k rå|  j	 ƒ  d k rÙt
 } n  d g } n  t | ƒ } t | ƒ d k r| | 9} n  t | ƒ d k r| | 9} qnÔ | d k rö|  j d | d | d | ƒ | rv|  j d d d ƒn  | d- k r©|  j ƒ  d k r�t
 } n  d g } n  t | ƒ } t | ƒ d k rÔ| | 9} n  t | ƒ d k r| | 9} qn t d | ƒ ‚ t | ƒ | k  r%| | 9} n  | d- k rAd- g | } na t t j j | ƒ ƒ } t | ƒ d k rƒd d d d g g } n  t | ƒ | k  r¢| | 9} n  | d- k r¾d- g | } na t t j j | ƒ ƒ } t | ƒ d k r d d d d g g } n  t | ƒ | k  r| | 9} n  t | ƒ | k sAt d | ƒ ‚ t | ƒ | k sct d | ƒ ‚ t | ƒ | k s…t d | ƒ ‚ t | ƒ | k s§t d | ƒ ‚ g  } |  j d- k	 rû|  j | ƒ } |  j | ƒ } |	 d- k	 rû|  j |	 ƒ }	 qûn  |  j d- k	 rI|  j | ƒ } |  j | ƒ } |
 d- k	 rI|  j |
 ƒ }
 qIn  | d k rXn§ | d  k rï| d k r¨g  t t | ƒ ƒ D] } | | | | d! ^ qƒ} qÿ| d k rÿg  t t | ƒ ƒ D] } | | | | d! ^ qÇ} qÿn t d" | ƒ ‚ t | | | | | | | ƒ } xß | D]× \ } } } } } }  }! | d k  rd| | 7} t | ƒ } n  | d k  r‰| | 7} t | ƒ } n  t j d# | | f d$ | d% | d& | d |  d |! d d' ƒ }" |" j | ƒ d( |" j ƒ  _ |  j  |" ƒ | j! |" ƒ q$W|  j  }# |  j" t
 ƒ |	 d- k	 s-|
 d- k	 rF| d k r˜g  t | | ƒ D] \ } } | d) | ^ qI}$ g  t | | ƒ D] \ } } | | ^ qy}% nk | d k rg  t | | ƒ D] \ } } | | ^ q´}$ g  t | | ƒ D] \ } } | d) | ^ qà}% n  d | k rd' | d <n  |  j# |$ |% d |
 d |	 d* d- | �}& n d- }& |  j" |# ƒ | ré|  j$ j% \ }' }( t& j' g  | D] } | d k r~| ^ q~ƒ }' |	 d- k	 rÁ|' t& j( |	 ƒ }' n  t) |' d+ d, ƒ }' |' |( f |  j$ _% n  | ry	|  j$ j* \ }) }* t& j' g  | D] } | d k r	| ^ q	ƒ }) |
 d- k	 rQ	|) t& j( |
 ƒ }) n  t) |) d+ d, ƒ }) |) |* f |  j$ _* n  |  j+ ƒ  t, | |& d | ƒ}+ |  j- |+ ƒ |+ S(.   s[  
        Make a bar plot.

        Make a bar plot with rectangles bounded by:

          `left`, `left` + `width`, `bottom`, `bottom` + `height`
                (left, right, bottom and top edges)

        Parameters
        ----------
        left : sequence of scalars
            the x coordinates of the left sides of the bars

        height : sequence of scalars
            the heights of the bars

        width : scalar or array-like, optional, default: 0.8
            the width(s) of the bars

        bottom : scalar or array-like, optional, default: None
            the y coordinate(s) of the bars

        color : scalar or array-like, optional
            the colors of the bar faces

        edgecolor : scalar or array-like, optional
            the colors of the bar edges

        linewidth : scalar or array-like, optional, default: None
            width of bar edge(s). If None, use default
            linewidth; If 0, don't draw edges.

        xerr : scalar or array-like, optional, default: None
            if not None, will be used to generate errorbar(s) on the bar chart

        yerr :scalar or array-like, optional, default: None
            if not None, will be used to generate errorbar(s) on the bar chart

        ecolor : scalar or array-like, optional, default: None
            specifies the color of errorbar(s)

        capsize : integer, optional, default: 3
           determines the length in points of the error bar caps

        error_kw :
            dictionary of kwargs to be passed to errorbar method. *ecolor* and
            *capsize* may be specified here rather than as independent kwargs.

        align : ['edge' | 'center'], optional, default: 'edge'
            If `edge`, aligns bars by their left edges (for vertical bars) and
            by their bottom edges (for horizontal bars). If `center`, interpret
            the `left` argument as the coordinates of the centers of the bars.

        orientation : 'vertical' | 'horizontal', optional, default: 'vertical'
            The orientation of the bars.

        log : boolean, optional, default: False
            If true, sets the axis to be log scale

        Returns
        -------
        :class:`matplotlib.patches.Rectangle` instances.

        Notes
        -----
        The optional arguments `color`, `edgecolor`, `linewidth`,
        `xerr`, and `yerr` can be either scalars or sequences of
        length equal to the number of bars.  This enables you to use
        bar as the basis for stacked bar charts, or candlestick plots.
        Detail: `xerr` and `yerr` are passed directly to
        :meth:`errorbar`, so they can also have shape 2xN for
        independent specification of lower and upper errors.

        Other optional kwargs:

        %(Rectangle)s

        **Example:** A stacked bar chart.

        .. plot:: mpl_examples/pylab_examples/bar_stacked.py
        R#   t	   edgecolorR  t   xerrt   yerrt   error_kwt   ecolort   capsizei   t   alignt   edgeR  t   verticalR�  RÆ   R   c         S  s   t  |  ƒ s |  g S|  Sd  S(   N(   R   (   R^   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   make_iterable:  s    R	  R
  RE   R0  t   clipi    i   R  R,  s   invalid orientation: %ss?   incompatible sizes: argument 'left' must be length %d or scalarsA   incompatible sizes: argument 'height' must be length %d or scalars@   incompatible sizes: argument 'width' must be length %d or scalarsA   incompatible sizes: argument 'bottom' must be length %d or scalarR÷   g       @s   invalid alignment: %st   xyR‹  RŒ  Ri   RC  id   g      à?R    gÍÌÌÌÌÌì?g0Žä.ÿ++N(.   R¯   R±   R?   R   Rz  R<  R   R  R¹   Rƒ  R   Rq   R¸   R‚  R   t   listR   R   t   to_rgba_arrayRH   R=   RW   R>   RX   Rv   Rr   RŠ  Rl   R  Râ  RÞ  t   _interpolation_stepsRñ  Rx   Rd  t   errorbarRâ   R%  RY   t   amint   amaxRw   R(  R¸  R   Rü  (,   R-   RØ   RŒ  R‹  RÖ   RE   R#   RW  R  RX  RY  RZ  R[  R\  R]  R  R�  RÆ   R`  t   _leftt   _bottomt   adjust_ylimt   adjust_xlimt   nbarsRÌ   t   iRD   R˜  Rc  R™  Rš  R%   t   eRÔ  RW  t	   holdstateR^   R_   Rf  Rx  Ry  Rz  R{  t   bar_container(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   barÑ  s*   S				



88"

			0/,3..
c         K  s1   |  j  d | d | d | d | d d | � } | S(   së
  
        Make a horizontal bar plot.

        Call signature::

          barh(bottom, width, height=0.8, left=0, **kwargs)

        Make a horizontal bar plot with rectangles bounded by:

          *left*, *left* + *width*, *bottom*, *bottom* + *height*
                (left, right, bottom and top edges)

        *bottom*, *width*, *height*, and *left* can be either scalars
        or sequences

        Return value is a list of
        :class:`matplotlib.patches.Rectangle` instances.

        Required arguments:

          ========   ======================================================
          Argument   Description
          ========   ======================================================
          *bottom*   the vertical positions of the bottom edges of the bars
          *width*    the lengths of the bars
          ========   ======================================================

        Optional keyword arguments:

          ===============   ==========================================
          Keyword           Description
          ===============   ==========================================
          *height*          the heights (thicknesses) of the bars
          *left*            the x coordinates of the left edges of the
                            bars
          *color*           the colors of the bars
          *edgecolor*       the colors of the bar edges
          *linewidth*       width of bar edges; None means use default
                            linewidth; 0 means don't draw edges.
          *xerr*            if not None, will be used to generate
                            errorbars on the bar chart
          *yerr*            if not None, will be used to generate
                            errorbars on the bar chart
          *ecolor*          specifies the color of any errorbar
          *capsize*         (default 3) determines the length in
                            points of the error bar caps
          *align*           'edge' (default) | 'center'
          *log*             [False|True] False (default) leaves the
                            horizontal axis as-is; True sets it to log
                            scale
          ===============   ==========================================

        Setting *align* = 'edge' aligns bars by their bottom edges in
        bottom, while *align* = 'center' interprets these values as
        the *y* coordinates of the bar centers.

        The optional arguments *color*, *edgecolor*, *linewidth*,
        *xerr*, and *yerr* can be either scalars or sequences of
        length equal to the number of bars.  This enables you to use
        barh as the basis for stacked bar charts, or candlestick
        plots.

        other optional kwargs:

        %(Rectangle)s
        RØ   RŒ  R‹  RÖ   R  R  (   Rr  (   R-   RÖ   R‹  RŒ  RØ   RE   RÌ   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   barhï  s    Ec         K  s6   t  j | | | � } |  j | d t ƒ|  j ƒ  | S(   sÄ  
        Plot horizontal bars.

        Call signature::

          broken_barh(self, xranges, yrange, **kwargs)

        A collection of horizontal bars spanning *yrange* with a sequence of
        *xranges*.

        Required arguments:

          =========   ==============================
          Argument    Description
          =========   ==============================
          *xranges*   sequence of (*xmin*, *xwidth*)
          *yrange*    sequence of (*ymin*, *ywidth*)
          =========   ==============================

        kwargs are
        :class:`matplotlib.collections.BrokenBarHCollection`
        properties:

        %(BrokenBarHCollection)s

        these can either be a single argument, ie::

          facecolors = 'black'

        or a sequence of arguments for the various bars, ie::

          facecolors = ('black', 'red', 'green')

        **Example:**

        .. plot:: mpl_examples/pylab_examples/broken_barh.py
        RØ  (   Rý  t   BrokenBarHCollectionRÙ  R   R¸  (   R-   t   xrangest   yrangeRE   t   col(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   broken_barh8  s    '
c         O  s§  |  j  } |  j  s |  j ƒ  n  |  j t ƒ t j | d d t j ƒ} | d } y7 t j | d d t j ƒ} | | } } | d } Wn2 t t f k
 r½ t j	 t
 | ƒ ƒ } | } n Xy | j d | d ƒ } Wn# t k
 rý | j d d ƒ } n Xy | j d | d ƒ } Wn# t k
 r=| j d d ƒ } n Xy | j d | d	 ƒ }	 Wn# t k
 r}| j d d
 ƒ }	 n X| j d d ƒ }
 | j d d ƒ } |  j | | | d d ƒ\ } |
 d k rÕd }
 n  g  } xT t | | ƒ D]C \ } } |  j | | g |
 | g | d d ƒ\ } | j | ƒ qëW|  j t j | ƒ t j | ƒ g |
 |
 g |	 d d ƒ\ } |  j | ƒ t | | | f d | ƒ} |  j | ƒ | S(   s)  
        Create a stem plot.

        Call signatures::

          stem(y, linefmt='b-', markerfmt='bo', basefmt='r-')
          stem(x, y, linefmt='b-', markerfmt='bo', basefmt='r-')

        A stem plot plots vertical lines (using *linefmt*) at each *x*
        location from the baseline to *y*, and places a marker there
        using *markerfmt*.  A horizontal line at 0 is is plotted using
        *basefmt*.

        If no *x* values are provided, the default is (0, 1, ..., len(y) - 1)

        Return value is a tuple (*markerline*, *stemlines*,
        *baseline*).

        .. seealso::
            This
            `document <http://www.mathworks.com/help/techdoc/ref/stem.html>`_
            for details.


        **Example:**

        .. plot:: mpl_examples/pylab_examples/stem_plot.py
        i    Rp   i   t   linefmts   b-t	   markerfmtR&  t   basefmti   s   r-RÖ   RÆ   RC  N(   R¯   R±   Rd  R   RY   R  Rt   R¹  R   Rs   Rq   R?   R   R)   Rr   Rx   Rg  Rh  R   Rü  (   R-   RD   RE   t   remember_holdR_   t   secondR^   Ry  Rz  R{  RÖ   RÆ   t
   markerlinet	   stemlinesR  R  R˜  R#  t   stem_container(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   steme  sT    		

	*	g333333ã?gš™™™™™ñ?c         C  s$  |  j  t ƒ t j | ƒ j t j ƒ } t | j ƒ  ƒ } | d k r[ t j | | ƒ } n  | d k r} d g t
 | ƒ } n  | d k rŸ d g t
 | ƒ } n  t
 | ƒ t
 | ƒ k s½ t ‚ t
 | ƒ t
 | ƒ k sÛ t ‚ | d k rð d } n  d  } |
 d k rd }
 n  |	 d k r d } n
 |	 d } g  } g  } g  } d } x„t j | | | ƒ D]m\ } } } | \ } } | | } d t j d | | } | | t j | ƒ 7} | | t j | ƒ 7} t j | | f |
 d | d | d | | t
 | ƒ ƒ} | j | ƒ |  j | ƒ | j | ƒ | rtt j | d d ƒ } | j d | j ƒ  ƒ | j d ƒ |  j | ƒ n  | | |
 t j | ƒ } | | |
 t j | ƒ } | d k r¼d p¿d } |  j | | | d t d d | d d ƒ} | j | ƒ | d k	 rµ| | |
 t j | ƒ } | | |
 t j | ƒ } t | ƒ rY| d | } n+ t | ƒ rx| d | ƒ } n t d ƒ ‚ |  j | | | d d d d ƒ} | j | ƒ n  | } | d 7} qXW|  j d! ƒ |  j  d" ƒ |  j! g  ƒ |  j" g  ƒ | d k r| | f S| | | f Sd S(#   sŠ  
        Plot a pie chart.

        Call signature::

          pie(x, explode=None, labels=None,
              colors=('b', 'g', 'r', 'c', 'm', 'y', 'k', 'w'),
              autopct=None, pctdistance=0.6, shadow=False,
              labeldistance=1.1, startangle=None, radius=None)

        Make a pie chart of array *x*.  The fractional area of each
        wedge is given by x/sum(x).  If sum(x) <= 1, then the values
        of x give the fractional area directly and the array will not
        be normalized.  The wedges are plotted counterclockwise,
        by default starting from the x-axis.

        Keyword arguments:

          *explode*: [ *None* | len(x) sequence ]
            If not *None*, is a ``len(x)`` array which specifies the
            fraction of the radius with which to offset each wedge.

          *colors*: [ *None* | color sequence ]
            A sequence of matplotlib color args through which the pie chart
            will cycle.

          *labels*: [ *None* | len(x) sequence of strings ]
            A sequence of strings providing the labels for each wedge

          *autopct*: [ *None* | format string | format function ]
            If not *None*, is a string or function used to label the wedges
            with their numeric value.  The label will be placed inside the
            wedge.  If it is a format string, the label will be ``fmt%pct``.
            If it is a function, it will be called.

          *pctdistance*: scalar
            The ratio between the center of each pie slice and the
            start of the text generated by *autopct*.  Ignored if
            *autopct* is *None*; default is 0.6.

          *labeldistance*: scalar
            The radial distance at which the pie labels are drawn

          *shadow*: [ *False* | *True* ]
            Draw a shadow beneath the pie.

          *startangle*: [ *None* | Offset angle ]
            If not *None*, rotates the start of the pie chart by *angle*
            degrees counterclockwise from the x-axis.

          *radius*: [ *None* | scalar ]
          The radius of the pie, if *radius* is *None* it will be set to 1.

        The pie chart will probably look best if the figure and axes are
        square, or the Axes aspect is equal.  e.g.::

          figure(figsize=(8,8))
          ax = axes([0.1, 0.1, 0.8, 0.8])

        or::

          axes(aspect=1)

        Return value:
          If *autopct* is *None*, return the tuple (*patches*, *texts*):

            - *patches* is a sequence of
              :class:`matplotlib.patches.Wedge` instances

            - *texts* is a list of the label
              :class:`matplotlib.text.Text` instances.

          If *autopct* is not *None*, return the tuple (*patches*,
          *texts*, *autotexts*), where *patches* and *texts* are as
          above, and *autotexts* is a list of
          :class:`~matplotlib.text.Text` instances for the numeric
          labels.
        i   R   i    Rc  t   gRW  R%   R  R_   Rz   R™  g     €v@i   g      à?Ri   g{®Gáz”¿gÍÌÌÌÌÌì?RC  RØ   RÙ   R  s   xtick.labelsizeR$  R"  R÷   g      Y@s+   autopct must be callable or a format stringg      ô¿g      ô?N(   Rc  R‚  RW  R%   R  R_   Rz   R™  (   i    i    (   g      ô¿g      ô?(   g      ô¿g      ô?(#   R^  R   RY   R  t   astypet   float32Rt   t   sumt   divideR   Rq   RH   R'  t   safezipRv  t   pit   cost   sinRl   t   WedgeRx   Rñ  R¥   t   ShadowR5  t
   get_zorderR   R   R   R×  RK   R,  R8  R’  R£  (   R-   R^   t   explodeRš  R   t   autopctt   pctdistancet   shadowt   labeldistancet
   startangleRÙ  t   sxR÷   t   theta1RÍ   t   slicest	   autotextsRn  t   fracRÆ   t   explR_   t   theta2t   thetamR™  t   shadt   xtt   ytt   label_alignmentRX  R   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   pie¼  sŠ    Q			
%
#
			
t   -i   c   1   	   K  s$  | d k  r t  d ƒ ‚ n  |  j d | d | d | ƒ |  j sM |  j ƒ  n  |  j } t |  _ | j d d ƒ } t | ƒ s‰ | g } n  t | ƒ s¡ | g } n  | d k	 rÒ t | ƒ sÒ | g t | ƒ } qÒ n  | d k	 rt | ƒ s| g t | ƒ } qn  d } |	 r?| d k	 r?|  j	 | | | d d | �\ } n  g  } g  } i d d 6} | rk| | d <n: d | k rˆ| d | d <n  d	 | k r¥| d	 | d	 <n  d
 | k rÂ| d
 | d
 <n  d | k rß| d | d <n  d | k rü| d | d <n  t |
 ƒ s*t
 j |
 g t | ƒ t ƒ }
 n t
 j |
 t ƒ }
 t | ƒ sjt
 j | g t | ƒ t ƒ } n t
 j | t ƒ } t | ƒ sªt
 j | g t | ƒ t ƒ } n t
 j | t ƒ } t | ƒ sêt
 j | g t | ƒ t ƒ } n t
 j | t ƒ } t
 j t | ƒ ƒ | d k } d „  } | d k rõi d | d 6d d 6} | d k	 ra| | d <n  d | k r~| d | d <n  d | k r›| d | d <n  d
 | k r¸| d
 | d
 <n  d | k rÕ| d | d <n  d | k rõ| d | d <qõn  | d k	 rt | ƒ r¨t | ƒ d k r¨t | d ƒ r¨t | d ƒ r¨g  t j | | d ƒ D] \ } } | | ^ qV} g  t j | | d ƒ D] \ } } | | ^ q‰} n^ g  t j | | ƒ D] \ } } | | ^ q»} g  t j | | ƒ D] \ } } | | ^ qê} | | | | ƒ \ } } | | | | ƒ \ }  }! | j |  j | |  |! | � ƒ | d k r| j ƒ  rù| | | | | @ƒ \ }" }# | j |  j	 |" |# d d d t j | �ƒ | } | | | | | @ƒ \ }" }# | j |  j	 |" |# d | � ƒ n7 | | | | ƒ \ }" }# | j |  j	 |" |# d | � ƒ | j ƒ  rÈ| | | | | @ƒ \ }$ }% | j |  j	 |$ |% d d d t j | �ƒ | } | | | | | @ƒ \ }$ }% | j |  j	 |$ |% d | � ƒ q| | | | ƒ \ }$ }% | j |  j	 |$ |% d | � ƒ qn  | d k	 r
t | ƒ r¸t | ƒ d k r¸t | d ƒ r¸t | d ƒ r¸g  t j | | d ƒ D] \ }& } |& | ^ qf}' g  t j | | d ƒ D] \ }& } |& | ^ q™}( n^ g  t j | | ƒ D] \ }& } |& | ^ qË}' g  t j | | ƒ D] \ }& } |& | ^ qú}( | | |' | ƒ \ }) } | |' |( | ƒ \ }  }* | j |  j |) |  |* | � ƒ | d k r
|
 j ƒ  r		| | |' |
 | @ƒ \ }+ }, | j |  j	 |+ |, d d d t j | �ƒ |
 }
 | | |' |
 | @ƒ \ }+ }, | j |  j	 |+ |, d | � ƒ n7 | | |' | ƒ \ }+ }, | j |  j	 |+ |, d | � ƒ | j ƒ  rØ	| | |( | | @ƒ \ }- }. | j |  j	 |- |. d d d t j | �ƒ | } | | |( | | @ƒ \ }- }. | j |  j	 |- |. d | � ƒ q
| | |( | ƒ \ }- }. | j |  j	 |- |. d | � ƒ q
n  |	 rF
| d k	 rF
|  j	 | | | | � \ } n  | d k r‚
| d k rs
|  j j j ƒ  } q‚
| j ƒ  } n  x | D] }/ |/ j | ƒ q‰
Wx | D] }/ |/ j | ƒ q§
W|  j  ƒ  | |  _ t! | t" | ƒ t" | ƒ f d | d k	 d | d k	 d | ƒ}0 |  j# j |0 ƒ |0 S(   sÖ  
        Plot an errorbar graph.

        Call signature::

          errorbar(x, y, yerr=None, xerr=None,
                   fmt='-', ecolor=None, elinewidth=None, capsize=3,
                   barsabove=False, lolims=False, uplims=False,
                   xlolims=False, xuplims=False, errorevery=1,
                   capthick=None)

        Plot *x* versus *y* with error deltas in *yerr* and *xerr*.
        Vertical errorbars are plotted if *yerr* is not *None*.
        Horizontal errorbars are plotted if *xerr* is not *None*.

        *x*, *y*, *xerr*, and *yerr* can all be scalars, which plots a
        single error bar at *x*, *y*.

        Optional keyword arguments:

          *xerr*/*yerr*: [ scalar | N, Nx1, or 2xN array-like ]
            If a scalar number, len(N) array-like object, or an Nx1
            array-like object, errorbars are drawn at +/-value relative
            to the data.

            If a sequence of shape 2xN, errorbars are drawn at -row1
            and +row2 relative to the data.

          *fmt*: '-'
            The plot format symbol. If *fmt* is *None*, only the
            errorbars are plotted.  This is used for adding
            errorbars to a bar plot, for example.

          *ecolor*: [ *None* | mpl color ]
            A matplotlib color arg which gives the color the errorbar lines;
            if *None*, use the marker color.

          *elinewidth*: scalar
            The linewidth of the errorbar lines. If *None*, use the linewidth.

          *capsize*: scalar
            The length of the error bar caps in points

          *capthick*: scalar
            An alias kwarg to *markeredgewidth* (a.k.a. - *mew*). This
            setting is a more sensible name for the property that
            controls the thickness of the error bar cap in points. For
            backwards compatibility, if *mew* or *markeredgewidth* are given,
            then they will over-ride *capthick*.  This may change in future
            releases.

          *barsabove*: [ *True* | *False* ]
            if *True*, will plot the errorbars above the plot
            symbols. Default is below.

          *lolims* / *uplims* / *xlolims* / *xuplims*: [ *False* | *True* ]
            These arguments can be used to indicate that a value gives
            only upper/lower limits. In that case a caret symbol is
            used to indicate this. lims-arguments may be of the same
            type as *xerr* and *yerr*.

          *errorevery*: positive integer
            subsamples the errorbars. e.g., if everyerror=5, errorbars for
            every 5-th datapoint will be plotted. The data plot itself still
            shows all data points.

        All other keyword arguments are passed on to the plot command for the
        markers. For example, this code makes big red squares with
        thick green edges::

          x,y,yerr = rand(3,10)
          errorbar(x, y, yerr, marker='s',
                   mfc='red', mec='green', ms=20, mew=4)

        where *mfc*, *mec*, *ms* and *mew* are aliases for the longer
        property names, *markerfacecolor*, *markeredgecolor*, *markersize*
        and *markeredgewith*.

        valid kwargs for the marker properties are

        %(Line2D)s

        Returns (*plotline*, *caplines*, *barlinecols*):

            *plotline*: :class:`~matplotlib.lines.Line2D` instance
                *x*, *y* plot markers and/or line

            *caplines*: list of error bar cap
                :class:`~matplotlib.lines.Line2D` instances
            *barlinecols*: list of
                :class:`~matplotlib.collections.LineCollection` instances for
                the horizontal and vertical error ranges.

        **Example:**

        .. plot:: mpl_examples/statistics/errorbar_demo.py

        i   s0   errorevery has to be a strictly positive integerR	  R
  RE   RÆ   RC  R  RÔ  Rõ  RÌ  R9  i    c         S  s¢   t  |  ƒ t  | ƒ k s t ‚ t  |  ƒ t  | ƒ k s< t ‚ g  t |  | ƒ D] \ } } | rL | ^ qL }  g  t | | ƒ D] \ } } | rz | ^ qz } |  | f S(   so   
            return xs[mask], ys[mask] where mask is True but xs and
            ys are not arrays
            (   Rq   RH   Rr   (   R¯  R°  R-  R  Rc  R  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   xywhere   s
    ..i   t   mst   markeredgewidtht   mewt   lsR   R"   s   k|t   k_t   has_xerrt   has_yerrN($   R   R  R¯   R±   R   R?   R   R   Rq   R)   RY   R  R  RÉ  Rs   R'  R‡  Rx   R	  Rà  R4  R   t	   CARETLEFTt
   CARETRIGHTR  t	   CARETDOWNt   CARETUPR>  R6   Rd   t	   get_colort	   set_colorR¸  R   R‡   RD  (1   R-   R^   R_   RY  RX  R    R[  t
   elinewidthR\  t	   barsabovet   lolimst   uplimst   xlolimst   xuplimst
   erroreveryt   capthickRE   Rp  RÆ   t   l0t   barcolst   caplinest   lines_kwt	   everymaskR¢  t   plot_kwR  t   thiserrRØ   RÙ   t   yoRî  t   lot   rot   leftlot   ylot   rightupt   yupR  R´  Rƒ  t   xot   uot   xlot   lowerlot   xupt   upperupR˜  t   errorbar_container(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRf  m  s8   i			$""""	
 03,,""% 03,,""%
		s   b+g      ø?c   =        s 	  d d „ ‰  ‡  f d †  } ˆ j  s1 ˆ j ƒ  n  ˆ j  } g  g  g  g  g  f \ } } } } } t | d ƒ rKt | j ƒ d k r° t | d d ƒ r¤ t | ƒ } qH| g } qKt | j ƒ d k r<| j \ } } | d k rì | g } qH| d k r
| j ƒ  g } qHg  t | ƒ D] } | d d … | f ^ q} qKt d	 ƒ ‚ n  t | d d
 ƒ sj| g } n  t | ƒ } d } d } |
 d k	 r
t |
 d ƒ ræt |
 j ƒ d k rÁt | ƒ ‚ q|
 j d | k rt | ƒ ‚ qq
t |
 ƒ | k r
t | ƒ ‚ q
n  d } d } d } | d k	 rt | d ƒ r¢t | j ƒ d k r[t | ƒ ‚ q| j d | k r}t | ƒ ‚ q| j d d k rt | ƒ ‚ qqt | ƒ | k rÃt | ƒ ‚ n  x> | D]3 } | d k	 rÊt | ƒ d k rÊt | ƒ ‚ qÊqÊWn  | d k r&t
 d | d ƒ } n  | d k rgt | ƒ t | ƒ } t d t | d ƒ d ƒ } n  t | t ƒ s…t | t ƒ r¡t j | f t ƒ | } n  ˆ j t ƒ xºt | ƒ D]¬\ } } t j | | ƒ } t | ƒ } | d k røq»n  t j | d d d g ƒ \ } }  }! |
 d k	 rH|
 | d k	 rH|
 | }  qHn  |! | }" |! | |" }# t j | |# k | ƒ }$ t |$ ƒ d k sŸt j |$ ƒ |! k  r¨|! }$ n t |$ ƒ }$ | | |" }% t j | |% k | ƒ }& t |& ƒ d k st j |& ƒ | k r
| }& n t |& ƒ }& g  }' g  }( g  }) g  }* t | ƒ d k r§t j | |$ k | ƒ }' t j | |& k  | ƒ }( t j |' j d ƒ | }) t j |( j d ƒ | }* n  | | | d }+ | | | d }, t j d ƒ | }- | | | d }. | | | d }/ |. |/ g }0 |  |  g }1 | ré| d k	 re| | d k	 ret j | | ƒ }2 t j | | ƒ }3 n | | |  |" |	 ƒ \ }3 }2 |+ |, |, |/ |, |, |+ |+ |. |+ |+ g }4 | | |3 |  |2 |! |! |2 |  |3 | g }5 |. |/ g }6 |  |  g }1 n6 |+ |, |, |+ |+ g }4 | | |! |! | g }5 |+ |, g }6 d „  ‰ ‡ ‡ f d †  ‰ | ra‡ f d †  }7 ‡ f d †  }8 n ‡ f d †  }7 ‡ f d †  }8 | rŽd }9 n d }9 | j |7 |- | |& g d |- |! |$ g d ƒ ƒ | j |7 |0 |$ |$ g d  |0 |& |& g d  ƒ ƒ | r| j |8 |4 |5 ƒ ƒ n | j |7 |4 |5 d! ƒ ƒ | j |7 |6 |1 |9 d" ƒ ƒ | j |7 |) |' | |* |( | ƒ ƒ q»W| r‡ˆ j ˆ j }: }; n ˆ j ˆ j }: }; t | ƒ d t | ƒ d f }< |; |< ƒ |: | ƒ ˆ j | ƒ t d# | d$ | d% | d& | d' | ƒ S((   sµ  
        Make a box and whisker plot.

        Call signature::

          boxplot(x, notch=False, sym='+', vert=True, whis=1.5,
                  positions=None, widths=None, patch_artist=False,
                  bootstrap=None, usermedians=None, conf_intervals=None)

        Make a box and whisker plot for each column of *x* or each
        vector in sequence *x*.  The box extends from the lower to
        upper quartile values of the data, with a line at the median.
        The whiskers extend from the box to show the range of the
        data.  Flier points are those past the end of the whiskers.

        Function Arguments:

          *x* :
            Array or a sequence of vectors.

          *notch* : [ False (default) | True ]
            If False (default), produces a rectangular box plot.
            If True, will produce a notched box plot

          *sym* : [ default 'b+' ]
            The default symbol for flier points.
            Enter an empty string ('') if you don't want to show fliers.

          *vert* : [ False | True (default) ]
            If True (default), makes the boxes vertical.
            If False, makes horizontal boxes.

          *whis* : [ default 1.5 ]
            Defines the length of the whiskers as a function of the inner
            quartile range.  They extend to the most extreme data point
            within ( ``whis*(75%-25%)`` ) data range.

          *bootstrap* : [ *None* (default) | integer ]
            Specifies whether to bootstrap the confidence intervals
            around the median for notched boxplots. If bootstrap==None,
            no bootstrapping is performed, and notches are calculated
            using a Gaussian-based asymptotic approximation  (see McGill, R.,
            Tukey, J.W., and Larsen, W.A., 1978, and Kendall and Stuart,
            1967). Otherwise, bootstrap specifies the number of times to
            bootstrap the median to determine it's 95% confidence intervals.
            Values between 1000 and 10000 are recommended.

          *usermedians* : [ default None ]
            An array or sequence whose first dimension (or length) is
            compatible with *x*. This overrides the medians computed by
            matplotlib for each element of *usermedians* that is not None.
            When an element of *usermedians* == None, the median will be
            computed directly as normal.

          *conf_intervals* : [ default None ]
            Array or sequence whose first dimension (or length) is compatible
            with *x* and whose second dimension is 2. When the current element
            of *conf_intervals* is not None, the notch locations computed by
            matplotlib are overridden (assuming notch is True). When an
            element of *conf_intervals* is None, boxplot compute notches the
            method specified by the other kwargs (e.g., *bootstrap*).

          *positions* : [ default 1,2,...,n ]
            Sets the horizontal positions of the boxes. The ticks and limits
            are automatically set to match the positions.

          *widths* : [ default 0.5 ]
            Either a scalar or a vector and sets the width of each box. The
            default is 0.5, or ``0.15*(distance between extreme positions)``
            if that is smaller.

          *patch_artist* : [ False (default) | True ]
            If False produces boxes with the Line2D artist
            If True produces boxes with the Patch artist

        Returns a dictionary mapping each component of the boxplot
        to a list of the :class:`matplotlib.lines.Line2D`
        instances created. That dictionary has the following keys
        (assuming vertical boxplots):

            - boxes: the main body of the boxplot showing the quartiles
              and the median's confidence intervals if enabled.
            - medians: horizonal lines at the median of each box.
            - whiskers: the vertical lines extending to the most extreme,
              n-outlier data points.
            - caps: the horizontal lines at the ends of the whiskers.
            - fliers: points representing data that extend beyone the
              whiskers (outliers).

        **Example:**

        .. plot:: pyplots/boxplot_demo.py
        iˆ  c   	      S  s�   t  |  ƒ } d d g } t j | ƒ } xP t | ƒ D]B } t j j d | d | ƒ } |  | } t j | d ƒ | | <q4 Wt j | | ƒ } | S(   Ng      @g     `X@i    i   i2   (   Rq   RY   t   zerost   ranget   randomt   random_integerst   mlabt   prctile(	   t   datat   Nt   Mt
   percentilet   estimateRn  t   bsIndext   bsDatat   CI(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   bootstrapMedian  s    
c           s�   | d  k	 r5 ˆ  |  d | ƒ} | d } | d } nB t |  ƒ } | d | t j | ƒ } | d | t j | ƒ } | | f S(   NRÔ  i    i   g…ëQ¸ù?(   R   Rq   RY   R:  (   RÓ  t   medt   iqt	   bootstrapRÚ  t	   notch_mint	   notch_maxRÔ  (   RÛ  (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   computeConfInterval&  s    
R[   i   i    i   Ns*   input x can have no more than 2 dimensionst   __len__s5   usermedians must either be a list/tuple or a 1d arrays-   usermedians' length must be compatible with xs<   conf_intervals must either be a list of tuples or a 2d arrays0   conf_intervals' length must be compatible with xs8   each conf_interval, if specificied, must have two valuesg333333Ã?g      ð?g      à?i   i2   iK   g      Ð?c         S  s‡   g  } x0 t  |  | ƒ D] \ } } | j | | f ƒ q W| j d ƒ t j j g t j j g t | ƒ d t j j g } | | f S(   Ni    i   (   i    i    (   Rr   Rx   t   mpatht   Patht   MOVETOt   LINETORq   t	   CLOSEPOLY(   R¯  R°  R÷  t   xit   yit   codes(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   to_vcÑ  s    'c           sJ   ˆ |  | ƒ \ } } t  j | | ƒ } t j | ƒ } ˆ  j | ƒ | g S(   N(   Rã  Rä  Rl   t	   PathPatchRÐ  (   R¯  R°  R÷  Rê  Rè  RN  (   R-   Rë  (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt
   patch_listÝ  s
    c            s   ˆ  j  |  Œ  S(   N(   R)   (   RD   (   R-   (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   doplotç  s    c           s   ˆ  |  | ƒ S(   N(    (   R¯  R°  (   Rí  (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   dopatchê  s    c            s`   g  } xJ t  d t |  ƒ d ƒ D]0 } | j |  | d |  | |  | d g ƒ q Wˆ  j | Œ  S(   Ni    i   i   i   (   Rv   Rq   R4  R)   (   RD   t   shuffledRn  (   R-   (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRî  î  s    .c           s   | |  }  } ˆ  |  | ƒ S(   N(    (   R¯  R°  (   Rí  (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRï  ô  s    Rz   RW  s   b--s   k-s   b-R¡  t   whiskerst   capst   boxest   medianst   fliers(   R¯   R±   RJ   Rq   R[   Rc  t   ravelRv   R   R   RÎ  Rw   Rÿ  R—   Rt   R   RY   t   onesRd  R   t	   enumerateRÑ  RÒ  t   compressR4  R’  R,  R£  R8  Rz  (=   R-   R^   t   notcht   symt   vertt   whisR  t   widthst   patch_artistRÞ  t   usermedianst   conf_intervalsRá  t
   holdStatusRñ  Rò  Ró  Rô  Rõ  t   nrt   ncRn  Rw  t   msg1t   msg2t   msg3t   cit   distanceR  R2  t   rowt   q1RÜ  t   q3RÝ  t   hi_valt   wisk_hit   lo_valt   wisk_lot   flier_hit   flier_lot
   flier_hi_xt
   flier_lo_xt	   box_x_mint	   box_x_maxt   wisk_xt	   cap_x_mint	   cap_x_maxt   cap_xt   med_yRà  Rß  t   box_xt   box_yt   med_xRî  Rï  t   median_colort   settickst   setlimt	   newlimits(    (   RÛ  Rí  R-   Rë  sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   boxplotº  s   `		$2$
'	'				 

i   Rc  R8  c         K  sÓ  |  j  s |  j ƒ  n  |  j d | d | d | ƒ |  j | ƒ } |  j | ƒ } t j j | ƒ } t j j | ƒ } | j | j k r• t	 d ƒ ‚ n  t j j | ƒ } t
 | ƒ p¼ t | ƒ } | sþ t j | ƒ } | j | j k rþ t j j | ƒ } qþ n  t j | | | | ƒ \ } } } } | } | rFt j j | |
 ƒ } n0 | j | j k rad } n t j j | |
 ƒ } | j d d ƒ } | j d d ƒ } | d k	 rÝt j d d d d	 d
 d d ƒ| rÔd } qÝd } n  | d k r
| d k	 r
| d f } d } n  t j | ƒ } | j ƒ  j | j ƒ  ƒ } | j ƒ  sId } n  t j | f | d | d | d | d t | | ƒ d | j d |  j ƒ ƒ} | j  t! j" ƒ  ƒ | j# |
 ƒ | j$ | ƒ | d k r\| d k	 rôt% | t j& ƒ sôt' ‚ n  | j( t j) | ƒ ƒ | j* | ƒ | j+ | ƒ | d k	 s<|	 d k	 rO| j, | |	 ƒ q\| j- ƒ  n  |  j. d k  rŠ| j d k rŠ|  j/ d ƒ n  |  j0 d k  r¸| j d k r¸|  j1 d ƒ n  |  j2 | ƒ |  j3 ƒ  | S(   sv  
        Make a scatter plot of x vs y, where x and y are sequence like objects
        of the same lengths.

        Parameters
        ----------
        x, y : array_like, shape (n, )
            Input data

        s : scalar or array_like, shape (n, ), optional, default: 20
            size in points^2.

        c : color or sequence of color, optional, default : 'b'
            `c` can be a single color format string, or a sequence of color
            specifications of length `N`, or a sequence of `N` numbers to be
            mapped to colors using the `cmap` and `norm` specified via kwargs
            (see below). Note that `c` should not be a single numeric RGB or
            RGBA sequence because that is indistinguishable from an array of
            values to be colormapped.  `c` can be a 2-D array in which the
            rows are RGB or RGBA, however.

        marker : `~matplotlib.markers.MarkerStyle`, optional, default: 'o'
            See `~matplotlib.markers` for more information on the different
            styles of markers scatter supports.

        cmap : `~matplotlib.colors.Colormap`, optional, default: None
            A `~matplotlib.colors.Colormap` instance or registered name.
            `cmap` is only used if `c` is an array of floats. If None,
            defaults to rc `image.cmap`.

        norm : `~matplotlib.colors.Normalize`, optional, default: None
            A `~matplotlib.colors.Normalize` instance is used to scale
            luminance data to 0, 1. `norm` is only used if `c` is an array of
            floats. If `None`, use the default :func:`normalize`.

        vmin, vmax : scalar, optional, default: None
            `vmin` and `vmax` are used in conjunction with `norm` to normalize
            luminance data.  If either are `None`, the min and max of the
            color array is used.  Note if you pass a `norm` instance, your
            settings for `vmin` and `vmax` will be ignored.

        alpha : scalar, optional, default: None
            The alpha blending value, between 0 (transparent) and 1 (opaque)

        linewidths : scalar or array_like, optional, default: None
            If None, defaults to (lines.linewidth,).  Note that this is a
            tuple, and if you set the linewidths argument you must set it as a
            sequence of floats, as required by
            `~matplotlib.collections.RegularPolyCollection`.

        Returns
        -------
        paths : `~matplotlib.collections.PathCollection`

        Other parameters
        ----------------
        kwargs : `~matplotlib.collections.Collection` properties

        Notes
        ------
        Any or all of `x`, `y`, `s`, and `c` may be masked arrays, in
        which case all masks will be combined and only unmasked points
        will be plotted.

        Examples
        --------
        .. plot:: mpl_examples/shapes_and_collections/scatter_demo.py

        R	  R
  RE   s   x and y must be the same sizet   facetedt
   edgecolorss   1.2RA   Rh  RW  Ri  t   optiont   nonei    t   facet
   facecolorsR  t   offsetst   transOffsetRõ  gš™™™™™©?N(4   R¯   R±   R  RW   RX   RY   R   Rö  R  R   R   t   is_sequence_of_stringsR  R'  t   delete_masked_pointsR   R   Rd  R   R?   Ru   Rl  t   mmarkerst   MarkerStyleRÞ  RÇ  R  t	   is_filledRý  t   PathCollectionRr   Rí   R  R˜   Ræ   t	   set_alphaRâ  R—   t	   NormalizeRH   t	   set_arrayR  t   set_cmapt   set_normt   set_climt   autoscale_NoneR;  R  R<  R  RÙ  R¸  (   R-   R^   R_   R   R%   R"   t   cmapt   normt   vmint   vmaxRÌ  R  R÷  RE   t   c_is_stringyt   scalesR   R$  R%  t
   marker_objRè  R×  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   scatter  s‚    J	$					
id   R  R'  c   E        s  |  j  s |  j ƒ  n  |  j d | d | d | ƒ t j | | | ƒ \ } } } t | ƒ rk | \ } } n | } t | t j d ƒ ƒ } t	 j
 | t ƒ } t	 j
 | t ƒ } | d k rð t	 j | d k ƒ rÞ t d ƒ ‚ n  t	 j | ƒ } n  | d k r2t	 j | d k ƒ r t d ƒ ‚ n  t	 j | ƒ } n  | d k	 rS| \ } } } } n< t	 j | ƒ } t	 j | ƒ } t	 j | ƒ } t	 j | ƒ } d	 | | } | | 8} | | 7} | | | } | | | } | rî| j ƒ  } | j ƒ  } n  | | | } | | | } t	 j | ƒ j t ƒ } t	 j | ƒ j t ƒ }  t	 j | ƒ j t ƒ }! t	 j | ƒ j t ƒ }" | d
 }# | d
 }$ | }% | }& |# |$ |% |& }' | | d d | |  d }( | |! d d d | |" d d }) |( |) k  }* | d k r6t	 j |' ƒ }+ |+ |# |$  }, |+ |# |$ }- |# |$ f |, _ |% |& f |- _ xé t t | ƒ ƒ D]Õ }. |* |. rÈ| |. d k r)| |. |# k  r)|  |. d k r)|  |. |$ k  r)|, | |. |  |. f c d
 7<q)qT|! |. d k rT|! |. |% k  rT|" |. d k rT|" |. |& k  rT|- |! |. |" |. f c d
 7<qTqTW| d k	 rðxW t |# ƒ D]I }. x@ t |$ ƒ D]2 }/ |, |. |/ f | k  rYt	 j |, |. |/ f <qYqYWqFWxZ t |% ƒ D]I }. x@ t |& ƒ D]2 }/ |- |. |/ f | k  r³t	 j |- |. |/ f <q³q³Wq Wn  t	 j |, j t ƒ j ƒ  |- j t ƒ j ƒ  f ƒ }+ t	 j |+ ƒ }0 nø| d k rKd } n  t	 j |# |$ f d t ƒ}, x; t |# ƒ D]- }. x$ t |$ ƒ D] }/ g  |, |. |/ f <q†WqsWt	 j |% |& f d t ƒ}- x; t |% ƒ D]- }. x$ t |& ƒ D] }/ g  |- |. |/ f <qßWqÌWxó t t | ƒ ƒ D]ß }. |* |. r‰| |. d k rï| |. |# k  rï|  |. d k rï|  |. |$ k  rï|, | |. |  |. f j  | |. ƒ qïq|! |. d k r|! |. |% k  r|" |. d k r|" |. |& k  r|- |! |. |" |. f j  | |. ƒ qqWxy t |# ƒ D]k }. xb t |$ ƒ D]T }/ |, |. |/ f }1 t |1 ƒ | k rTˆ |1 ƒ |, |. |/ f <qt	 j |, |. |/ f <qWq Wxy t |% ƒ D]k }. xb t |& ƒ D]T }/ |- |. |/ f }1 t |1 ƒ | k rÐˆ |1 ƒ |- |. |/ f <q�t	 j |- |. |/ f <q�Wq|Wt	 j |, j t ƒ j ƒ  |- j t ƒ j ƒ  f ƒ }+ t	 j |+ ƒ }0 t	 j |' d f t ƒ }2 t	 j! t	 j" |# ƒ |$ ƒ |2 d |# |$ … d f <t	 j# t	 j" |$ ƒ |# ƒ |2 d |# |$ … d
 f <t	 j! t	 j" |% ƒ d |& ƒ |2 |# |$ d … d f <t	 j# t	 j" |& ƒ |% ƒ d |2 |# |$ d … d
 f <|2 d d … d f c | 9<|2 d d … d
 f c | 9<|2 d d … d f c | 7<|2 d d … d
 f c | 7<|2 |0 d d … f }2 |+ |0 }+ t	 j d% t ƒ }3 | t	 j
 d d d d d d g ƒ |3 d d … d f <| t	 j
 d d d d d d g ƒ d |3 d d … d
 f <| d k r/
d } n  | d k sG
| d k r_t	 j$ |3 d ƒ t	 j$ |2 d
 ƒ }4 | d k rÕ
d |4 d d … d d … d f |4 d d … d d … d f <d | } d | } |  j% | ƒ n  | d k rAd |4 d d … d d … d
 f |4 d d … d d … d
 f <d | } d | } |  j& | ƒ n  t' j( |4 d | d | ƒ}5 n6 t' j( |3 g d | d | d |2 d t) j* ƒ  d d ƒ}5 t+ |
 t, j- ƒ rÉ|+ d k j ƒ  rÉ|+ d
 7}+ qÉn  |
 d k	 r|
 j. d k r|
 j/ d k r|
 j0 |+ ƒ qn  | d k r(t	 j |+ d
 ƒ }+ n~ | d k r¦t | ƒ s…t1 |+ ƒ t2 |+ ƒ }6 }7 | d
 8} |6 |7 |6 t	 j" | ƒ | } n  t	 j3 | ƒ } | j4 |+ ƒ }+ n  |
 d k	 rÍt+ |
 t, j5 ƒ sÍt6 ‚ n  |5 j7 |+ ƒ |5 j8 |	 ƒ |5 j9 |
 ƒ |5 j: | ƒ |5 j; | ƒ | d k	 s&| d k	 r9|5 j< | | ƒ n
 |5 j= ƒ  | | f | | f f }8 |  j> |8 ƒ |  j? d t@ ƒ |  jA |5 ƒ | s�|5 S| d k r³t	 jB t | ƒ ƒ } n  ‡ f d †  }9 t	 jC | | | ƒ }: |9 | | |: ƒ }; t	 j |; ƒ }< g  g  }= }> x° tD |; ƒ D]¢ \ }. }? |: |. }@ |. t |: ƒ d
 k  rP|: |. d
 }A n |@ t	 jE |: ƒ d  }A |< |. swqn  |= j  |@ d f |@ d! f |A d! f |A d f g ƒ |> j  |? ƒ qWt	 j
 |> ƒ }> t) jF |  jG |  jH ƒ }B t' j( |= d" |B d d ƒ‰  ˆ  j7 |> ƒ ˆ  j8 |	 ƒ ˆ  j9 |
 ƒ ˆ  j: | ƒ ˆ  j; | ƒ |  jA ˆ  ƒ t	 jC | | | ƒ }: |9 | | |: ƒ }C t	 j |C ƒ }< g  g  }= }> x° tD |C ƒ D]¢ \ }. }? |: |. }@ |. t |: ƒ d
 k  r×|: |. d
 }A n |@ t	 jE |: ƒ d  }A |< |. sþqšn  |= j  d |@ f d |A f d! |A f d! |@ f g ƒ |> j  |? ƒ qšWt	 j
 |> ƒ }> t) jF |  jH |  jG ƒ }B t' j( |= d" |B d d ƒ‰ ˆ j7 |> ƒ ˆ j8 |	 ƒ ˆ j9 |
 ƒ ˆ j: | ƒ ˆ j; | ƒ |  jA ˆ ƒ ˆ  |5 _I ˆ |5 _J ‡  ‡ f d# †  }D |5 jK jL d$ |D ƒ |5 S(&   sv  
        Make a hexagonal binning plot.

        Call signature::

           hexbin(x, y, C = None, gridsize = 100, bins = None,
                  xscale = 'linear', yscale = 'linear',
                  cmap=None, norm=None, vmin=None, vmax=None,
                  alpha=None, linewidths=None, edgecolors='none'
                  reduce_C_function = np.mean, mincnt=None, marginals=True
                  **kwargs)

        Make a hexagonal binning plot of *x* versus *y*, where *x*,
        *y* are 1-D sequences of the same length, *N*. If *C* is *None*
        (the default), this is a histogram of the number of occurences
        of the observations at (x[i],y[i]).

        If *C* is specified, it specifies values at the coordinate
        (x[i],y[i]). These values are accumulated for each hexagonal
        bin and then reduced according to *reduce_C_function*, which
        defaults to numpy's mean function (np.mean). (If *C* is
        specified, it must also be a 1-D sequence of the same length
        as *x* and *y*.)

        *x*, *y* and/or *C* may be masked arrays, in which case only
        unmasked points will be plotted.

        Optional keyword arguments:

        *gridsize*: [ 100 | integer ]
           The number of hexagons in the *x*-direction, default is
           100. The corresponding number of hexagons in the
           *y*-direction is chosen such that the hexagons are
           approximately regular. Alternatively, gridsize can be a
           tuple with two elements specifying the number of hexagons
           in the *x*-direction and the *y*-direction.

        *bins*: [ *None* | 'log' | integer | sequence ]
           If *None*, no binning is applied; the color of each hexagon
           directly corresponds to its count value.

           If 'log', use a logarithmic scale for the color
           map. Internally, :math:`log_{10}(i+1)` is used to
           determine the hexagon color.

           If an integer, divide the counts in the specified number
           of bins, and color the hexagons accordingly.

           If a sequence of values, the values of the lower bound of
           the bins to be used.

        *xscale*: [ 'linear' | 'log' ]
           Use a linear or log10 scale on the horizontal axis.

        *scale*: [ 'linear' | 'log' ]
           Use a linear or log10 scale on the vertical axis.

        *mincnt*: [ *None* | a positive integer ]
           If not *None*, only display cells with more than *mincnt*
           number of points in the cell

        *marginals*: [ *True* | *False* ]
           if marginals is *True*, plot the marginal density as
           colormapped rectagles along the bottom of the x-axis and
           left of the y-axis

        *extent*: [ *None* | scalars (left, right, bottom, top) ]
           The limits of the bins. The default assigns the limits
           based on gridsize, x, y, xscale and yscale.

        Other keyword arguments controlling color mapping and normalization
        arguments:

        *cmap*: [ *None* | Colormap ]
           a :class:`matplotlib.colors.Colormap` instance. If *None*,
           defaults to rc ``image.cmap``.

        *norm*: [ *None* | Normalize ]
           :class:`matplotlib.colors.Normalize` instance is used to
           scale luminance data to 0,1.

        *vmin* / *vmax*: scalar
           *vmin* and *vmax* are used in conjunction with *norm* to normalize
           luminance data.  If either are *None*, the min and max of the color
           array *C* is used.  Note if you pass a norm instance, your settings
           for *vmin* and *vmax* will be ignored.

        *alpha*: scalar between 0 and 1, or *None*
           the alpha value for the patches

        *linewidths*: [ *None* | scalar ]
           If *None*, defaults to rc lines.linewidth. Note that this
           is a tuple, and if you set the linewidths argument you
           must set it as a sequence of floats, as required by
           :class:`~matplotlib.collections.RegularPolyCollection`.

        Other keyword arguments controlling the Collection properties:

        *edgecolors*: [ *None* | ``'none'`` | mpl color | color sequence ]
           If ``'none'``, draws the edges in the same color as the fill color.
           This is the default, as it avoids unsightly unpainted pixels
           between the hexagons.

           If *None*, draws the outlines in the default color.

           If a matplotlib color arg or sequence of rgba tuples, draws the
           outlines in the specified color.

        Here are the standard descriptions of all the
        :class:`~matplotlib.collections.Collection` kwargs:

        %(Collection)s

        The return value is a
        :class:`~matplotlib.collections.PolyCollection` instance; use
        :meth:`~matplotlib.collections.PolyCollection.get_array` on
        this :class:`~matplotlib.collections.PolyCollection` to get
        the counts in each hexagon. If *marginals* is *True*, horizontal
        bar and vertical bar (both PolyCollections) will be attached
        to the return collection as attributes *hbar* and *vbar*.


        **Example:**

        .. plot:: mpl_examples/pylab_examples/hexbin_demo.py

        R	  R
  RE   i   R�  g        s8   x contains non-positive values, so can not be log-scaleds8   y contains non-positive values, so can not be log-scaledg•Ö&è.>i   i   g      @g      à?i    Rp   Ni   g      à¿g      ð?g      ð¿R'  R(  g      $@R%  R  R*  R+  t   offset_positionRÓ  R±  c           s{   | j  |  ƒ j d t | ƒ d ƒ } t j t | ƒ ƒ } x: t t | ƒ ƒ D]& } ˆ  | | | k ƒ } | | | <qM W| S(   Ni    i   (   t   searchsortedRa  Rq   RY   RÍ  RÎ  (   R^   R_   t   coarset   indt   musRn  t   mu(   t   reduce_C_function(    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt
   coarse_bin3  s    %iÿÿÿÿgš™™™™™©?Rõ  c           sP   ˆ  j  |  j ƒ  ƒ ˆ  j |  j ƒ  ƒ ˆ j  |  j ƒ  ƒ ˆ j |  j ƒ  ƒ d  S(   N(   R5  t   get_cmapR7  t   get_clim(   R×  (   t   hbart   vbar(    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt
   on_changed}  s    t   changed(   i   i   (M   R¯   R±   R  R'  R-  R   R   Rv  R:  RY   RÉ  Rt   Rà  R   R  R   Rg  Rh  R0   RC  Rƒ  t   floorRÍ  R[   Rv   Rq   t   nanRn   Rö  t   isnant   emptyt   objectRx   t   repeatRs   R  t   expand_dimsR¸   R¹   Rý  t   PolyCollectionR˜   Ræ   R—   R   t   LogNormR;  R<  R!  Rÿ  Rw   R<  RB  R3  RH   R4  R5  R6  R2  Râ  R7  R8  RÕ  R¸  R   RÙ  R÷  t   linspaceRø  t   diffRî   Rí   Rê   RK  RL  t   callbacksSMR¼   (E   R-   R^   R_   RŽ   t   gridsizet   binsRÇ   RÈ   t   extentR9  R:  R;  R<  RÌ  R  R%  RG  t   mincntt	   marginalsRE   t   nxt   nyRx  Ry  Rz  R{  t   paddingR”  t   syt   xorigt   yorigt   ix1t   iy1t   ix2t   iy2t   nx1t   ny1t   nx2t   ny2Rn  t   d1t   d2t   bdistt   accumt   lattice1t   lattice2Rn  R~   t	   good_idxst   valsR*  t   polygont   polygonsR×  t   minimumt   maximumR  RH  RC  t   xcoarset   validR÷  t   valuesRO   t   thismint   thismaxR¹  t   ycoarseRM  (    (   RK  RG  RL  sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   hexbinÆ  sÒ   ‡	



&
  $  %!	
  )  *//33
59	"<

<

		
"


		

		c         K  sh   |  j  | ƒ } |  j | ƒ } |  j  | ƒ } |  j | ƒ } t j | | | | | � } |  j | ƒ | S(   s¡  
        Add an arrow to the axes.

        Call signature::

           arrow(x, y, dx, dy, **kwargs)

        Draws arrow on specified axis from (*x*, *y*) to (*x* + *dx*,
        *y* + *dy*). Uses FancyArrow patch to construct the arrow.

        The resulting arrow is affected by the axes aspect ratio and limits.
        This may produce an arrow whose head is not square with its stem. To
        create an arrow whose head is square with its stem, use
        :meth:`annotate`.

        Optional kwargs control the arrow construction and properties:

        %(FancyArrow)s

        **Example:**

        .. plot:: mpl_examples/pylab_examples/arrow_demo.py
        (   RW   RX   Rl   t
   FancyArrowRÐ  (   R-   R^   R_   RÃ  RÄ  RE   R  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   arrow‡  s    c         O  s#   t  j | | Ž  } |  j | ƒ | S(   N(   t   mquivert	   QuiverKeyRÐ  (   R-   RD   Rf   t   qk(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt	   quiverkey«  s    c         O  sY   |  j  s |  j ƒ  n  t j |  | | Ž } |  j | t ƒ |  j | j ƒ |  j ƒ  | S(   N(	   R¯   R±   Rƒ  t   QuiverRÙ  R   RÕ  t   XYR¸  (   R-   RD   Rf   t   q(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   quiver±  s    	
c         O  s   t  j |  | | | Ž S(   N(   t   mstackt	   stackplot(   R-   R^   RD   RE   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRŒ  »  s    s   -|>gš™™™™™¹?c         C  sk   |  j  s |  j ƒ  n  t j |  | | | | d | d | d | d | d |	 d |
 d | d | d	 | ƒ	} | S(
   Nt   densityR  R#   R9  R:  t	   arrowsizet
   arrowstylet	   minlengthRõ  (   R¯   R±   t   mstreamt
   streamplot(   R-   R^   R_   t   uR{   R�  R  R#   R9  R:  RŽ  R�  R�  Rõ  t   stream_container(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR’  ¿  s    		c         O  sY   |  j  s |  j ƒ  n  t j |  | | Ž } |  j | ƒ |  j | j ƒ  ƒ |  j ƒ  | S(   sq   
        %(barbs_doc)s

        **Example:**

        .. plot:: mpl_examples/pylab_examples/barb_demo.py
        (   R¯   R±   Rƒ  t   BarbsRÙ  RÕ  t   get_offsetsR¸  (   R-   RD   Rf   Rc  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   barbsÑ  s    		
c         O  sa   |  j  s |  j ƒ  n  g  } x4 |  j | | Ž  D]  } |  j | ƒ | j | ƒ q/ W|  j ƒ  | S(   s•  
        Plot filled polygons.

        Call signature::

          fill(*args, **kwargs)

        *args* is a variable length argument, allowing for multiple
        *x*, *y* pairs with an optional color format string; see
        :func:`~matplotlib.pyplot.plot` for details on the argument
        parsing.  For example, to plot a polygon with vertices at *x*,
        *y* in blue.::

          ax.fill(x,y, 'b' )

        An arbitrary number of *x*, *y*, *color* groups can be specified::

          ax.fill(x1, y1, 'g', x2, y2, 'r')

        Return value is a list of :class:`~matplotlib.patches.Patch`
        instances that were added.

        The same color strings that :func:`~matplotlib.pyplot.plot`
        supports are supported by the fill format string.

        If you would like to fill below a curve, e.g., shade a region
        between 0 and *y* along *x*, use :meth:`fill_between`

        The *closed* kwarg will close the polygon when *True* (default).

        kwargs control the :class:`~matplotlib.patches.Polygon` properties:

        %(Polygon)s

        **Example:**

        .. plot:: mpl_examples/lines_bars_and_markers/fill_demo.py

        (   R¯   R±   R?  Rñ  Rx   R¸  (   R-   RD   RE   RÌ   t   poly(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRS   â  s    )	
c           s×  |  j  d ˆ  d ˆ d | ƒ |  j  d ˆ ƒ t j |  j ˆ  ƒ ƒ ‰  t j |  j ˆ ƒ ƒ ‰ t j |  j ˆ ƒ ƒ ‰ ˆ j d k r™ t j ˆ  ƒ ˆ ‰ n  ˆ j d k r¾ t j ˆ  ƒ ˆ ‰ n  | d
 k rè t j	 t
 ˆ  ƒ t j ƒ } n t j | t j ƒ } ˆ  j ˆ j k o+ˆ j k o+| j k n s?t d ƒ ‚ n  t t j g  ˆ  ˆ ˆ f D] } t j | ƒ ^ qXƒ } | t j k	 r“| | M} n  g  }	 xŠt j | ƒ D]y\ }
 } ˆ  |
 | !} ˆ |
 | !} ˆ |
 | !} t
 | ƒ sîq©n  t
 | ƒ } t j d | d d f t j ƒ } | rS‡  ‡ ‡ f d †  } | |
 ƒ } | | ƒ } n( | d | d f } | d | d f } | | d <| | | d	 <| | d	 | d	 … d f <| | d	 | d	 … d	 f <| d
 d
 d … | | d d
 … d f <| d
 d
 d … | | d d
 … d	 f <|	 j | ƒ q©Wt j |	 | � } t j ˆ  | ˆ | g ƒ j } t j ˆ  | ˆ | g ƒ j } |  j j | |  j d t d t ƒ|  j j | |  j d t  d t ƒ|  j! | ƒ |  j" ƒ  | S(   s…  
        Make filled polygons between two curves.

        Call signature::

          fill_between(x, y1, y2=0, where=None, **kwargs)

        Create a :class:`~matplotlib.collections.PolyCollection`
        filling the regions between *y1* and *y2* where
        ``where==True``

          *x* :
            An N-length array of the x data

          *y1* :
            An N-length array (or scalar) of the y data

          *y2* :
            An N-length array (or scalar) of the y data

          *where* :
            If *None*, default to fill between everywhere.  If not *None*,
            it is an N-length numpy boolean array and the fill will
            only happen over the regions where ``where==True``.

          *interpolate* :
            If *True*, interpolate between the two lines to find the
            precise point of intersection.  Otherwise, the start and
            end points of the filled region will only occur on explicit
            values in the *x* array.

          *kwargs* :
            Keyword args passed on to the
            :class:`~matplotlib.collections.PolyCollection`.

        kwargs control the :class:`~matplotlib.patches.Polygon` properties:

        %(PolyCollection)s

        .. plot:: mpl_examples/pylab_examples/fill_between_demo.py

        .. seealso::

            :meth:`fill_betweenx`
                for filling between two sets of x-values

        R	  R
  RE   i    s$   Argument dimensions are incompatiblei   c           s  t  |  d d ƒ } ˆ  | |  d !} ˆ | |  d !ˆ | |  d !} ˆ | |  d !} t | ƒ d k rº t j j | d ƒ r� ˆ  | ˆ | f St j j | d ƒ rº ˆ  |  ˆ |  f Sn  | j ƒ  } t j d | | | | ƒ } t j | | | ƒ } | | f S(   Ni   i    i   (   Rw   Rq   RY   R   t	   is_maskedt   argsortt   interp(   RD  t   im1t   x_valuest   diff_valuest	   y1_valuest
   diff_ordert   diff_root_xt   diff_root_y(   R^   R^  t   y2(    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_interp_pointn  s     iÿÿÿÿi   NRÜ  RÝ  (#   R  R   t   masked_invalidRW   RX   R\   RY   t	   ones_likeR   R÷  Rq   R  R  R[   R   t   reducet   mask_ort   getmaskt   nomaskRÑ  t   contiguous_regionsRÍ  Rt   Rx   Rý  RV  RÉ  R
  Râ   R  R&  R   R   RÙ  R¸  (   R-   R^   R^  R£  RQ  t   interpolateRE   R  R-  t   polyst   ind0t   ind1t   xslicet   y1slicet   y2sliceRÔ  t   XR¤  RÍ  t   endR×  t   XY1t   XY2(    (   R^   R^  R£  sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   fill_between  sb    337#
''  
c         K  s•  |  j  d | d | d | ƒ |  j  d | ƒ t j |  j | ƒ ƒ } t j |  j | ƒ ƒ } t j |  j | ƒ ƒ } | j d k r™ t j | ƒ | } n  | j d k r¾ t j | ƒ | } n  | d	 k rè t j	 t
 | ƒ t j ƒ } n t j | t j ƒ } | j | j k o+| j k o+| j k n s?t d ƒ ‚ n  t t j g  | | | f D] } t j | ƒ ^ qXƒ } | t j k	 r“| | M} n  g  } xHt j | ƒ D]7\ }	 }
 | |	 |
 !} | |	 |
 !} | |	 |
 !} t
 | ƒ sîq©n  t
 | ƒ } t j d | d d f t j ƒ } | d | d f | d <| d | d f | | d <| | d | d … d f <| | d | d … d f <| d	 d	 d … | | d d	 … d f <| d	 d	 d … | | d d	 … d f <| j | ƒ q©Wt j | | � } t j | | | | g ƒ j } t j | | | | g ƒ j } |  j j | |  j d
 t d t ƒ|  j j | |  j d
 t  d t ƒ|  j! | ƒ |  j" ƒ  | S(   s  
        Make filled polygons between two horizontal curves.

        Call signature::

          fill_betweenx(y, x1, x2=0, where=None, **kwargs)

        Create a :class:`~matplotlib.collections.PolyCollection`
        filling the regions between *x1* and *x2* where
        ``where==True``

          *y* :
            An N-length array of the y data

          *x1* :
            An N-length array (or scalar) of the x data

          *x2* :
            An N-length array (or scalar) of the x data

          *where* :
             If *None*, default to fill between everywhere.  If not *None*,
             it is a N length numpy boolean array and the fill will
             only happen over the regions where ``where==True``

          *kwargs* :
            keyword args passed on to the
            :class:`~matplotlib.collections.PolyCollection`

        kwargs control the :class:`~matplotlib.patches.Polygon` properties:

        %(PolyCollection)s

        .. plot:: mpl_examples/pylab_examples/fill_betweenx_demo.py

        .. seealso::

            :meth:`fill_between`
                for filling between two sets of y-values

        R
  R	  RE   i    s$   Argument dimensions are incompatiblei   iÿÿÿÿi   NRÜ  RÝ  (#   R  R   R¥  RX   RW   R\   RY   R¦  R   R÷  Rq   R  R  R[   R   R§  R¨  R©  Rª  RÑ  R«  RÍ  Rt   Rx   Rý  RV  RÉ  R
  Râ   R  R&  R   R   RÙ  R¸  (   R-   R_   RX  t   x2RQ  RE   R  R-  R­  R®  R¯  t   yslicet   x1slicet   x2sliceRÔ  R  R×  t   X1Yt   X2Y(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   fill_betweenx   sV    ,37#''  
g      @c           s]  ˆ  j  s ˆ  j ƒ  n  | d k	 r= t | t j ƒ s= t ‚ n  | d k rV t d } n  ˆ  j | ƒ t	 j
 ˆ  | | | |	 |
 d | d | d | | �} | j | ƒ | j | ƒ ˆ  j | ƒ | j ƒ  d k râ | j ˆ  j ƒ n  | d k	 sú | d k	 r| j | | ƒ n
 | j ƒ  | j | ƒ | j | j ƒ  ƒ ˆ  j j | ƒ ‡  f d †  | _ | S(   sÂ  
        Display an image on the axes.

        Parameters
        -----------
        X : array_like, shape (n, m) or (n, m, 3) or (n, m, 4)
            Display the image in `X` to current axes.  `X` may be a float
            array, a uint8 array or a PIL image. If `X` is an array, it
            can have the following shapes:

            - MxN -- luminance (grayscale, float array only)
            - MxNx3 -- RGB (float or uint8 array)
            - MxNx4 -- RGBA (float or uint8 array)

            The value for each component of MxNx3 and MxNx4 float arrays
            should be in the range 0.0 to 1.0; MxN float arrays may be
            normalised.

        cmap : `~matplotlib.colors.Colormap`, optional, default: None
            If None, default to rc `image.cmap` value. `cmap` is ignored when
            `X` has RGB(A) information

        aspect : ['auto' | 'equal' | scalar], optional, default: None
            If 'auto', changes the image aspect ratio to match that of the
            axes.

            If 'equal', and `extent` is None, changes the axes aspect ratio to
            match that of the image. If `extent` is not `None`, the axes
            aspect ratio is changed to match that of the extent.

            If None, default to rc ``image.aspect`` value.

        interpolation : string, optional, default: None
            Acceptable values are 'none', 'nearest', 'bilinear', 'bicubic',
            'spline16', 'spline36', 'hanning', 'hamming', 'hermite', 'kaiser',
            'quadric', 'catrom', 'gaussian', 'bessel', 'mitchell', 'sinc',
            'lanczos'

            If `interpolation` is None, default to rc `image.interpolation`.
            See also the `filternorm` and `filterrad` parameters.
            If `interpolation` is 'none', then no interpolation is performed
            on the Agg, ps and pdf backends. Other backends will fall back to
            'nearest'.

        norm : `~matplotlib.colors.Normalize`, optional, default: None
            A `~matplotlib.colors.Normalize` instance is used to scale
            luminance data to 0, 1. If `None`, use the default
            func:`normalize`. `norm` is only used if `X` is an array of
            floats.

        vmin, vmax : scalar, optional, default: None
            `vmin` and `vmax` are used in conjunction with norm to normalize
            luminance data.  Note if you pass a `norm` instance, your
            settings for `vmin` and `vmax` will be ignored.

        alpha : scalar, optional, default: None
            The alpha blending value, between 0 (transparent) and 1 (opaque)

        origin : ['upper' | 'lower'], optional, default: None
            Place the [0,0] index of the array in the upper left or lower left
            corner of the axes. If None, default to rc `image.origin`.

        extent : scalars (left, right, bottom, top), optional, default: None
            Data limits for the axes.  The default assigns zero-based row,
            column indices to the `x`, `y` centers of the pixels.

        shape : scalars (columns, rows), optional, default: None
            For raw buffer images

        filternorm : scalar, optional, default: 1
            A parameter for the antigrain image resize filter.  From the
            antigrain documentation, if `filternorm` = 1, the filter
            normalizes integer values and corrects the rounding errors. It
            doesn't do anything with the source floating point values, it
            corrects only integers according to the rule of 1.0 which means
            that any sum of pixel weights must be equal to 1.0.  So, the
            filter function must produce a graph of the proper shape.

        filterrad : scalar, optional, default: 4.0
            The filter radius for filters that have a radius parameter, i.e.
            when interpolation is one of: 'sinc', 'lanczos' or 'blackman'

        Returns
        --------
        image : `~matplotlib.image.AxesImage`

        Other parameters
        ----------------
        kwargs : `~matplotlib.artist.Artist` properties.

        See also
        --------
        matshow : Plot a matrix or an array as an image.

        Examples
        --------

        .. plot:: mpl_examples/pylab_examples/image_demo.py

        s   image.aspectt
   filternormt	   filterradt   resamplec           s   ˆ  j  j |  ƒ S(   N(   RÎ   RÏ   (   Rš  (   R-   (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRÏ  —  s    N(   R¯   R±   R   R—   R   R3  RH   R   Rž   RD  R¼  t   set_dataR2  R  RÒ  RT  RN  R7  R8  t   set_urlt
   set_extentt
   get_extentRÎ   Rx   RÐ   (   R-   R³  R9  R:  Rj  t   interpolationRÌ  R;  R<  t   originR]  R[   R¿  RÀ  t   imlimRÁ  t   urlRE   RË  (    (   R-   sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   imshow  s.    j	
c         O  s£  | j  d t ƒ } t | ƒ d k r¯ | d } | j \ } } | rp t j t j | ƒ t j | ƒ ƒ \ } } n2 t j t j | d ƒ t j | d ƒ ƒ \ } } | | | f St | ƒ d k râ | \ } } } | j \ } } n t d |  |  f ƒ ‚ | j d }	 | j d }
 t | j ƒ d k s:| j d d k rd| j d |	 ƒ } | j	 |
 d d ƒ} n  t | j ƒ d k sŒ| j d d k r¶| j |
 d ƒ } | j	 |	 d d ƒ} n  | j | j k rát d	 |  |  f ƒ ‚ n  | r$|	 | k oü|
 | k s–t d
 | j |	 |
 |  f ƒ ‚ q–nr | |	 |	 d f k oM| |
 |
 d f k srt d
 | j |	 |
 |  f ƒ ‚ n  | d  |
 d … d  |	 d … f } | | | f S(   Nt   allmatchi   i    i   s%   Illegal arguments to %s; see help(%s)iÿÿÿÿi   Rº  s,   Incompatible X, Y inputs to %s; see help(%s)sK   Dimensions of C %s are incompatible with X (%d) and/or Y (%d); see help(%s)(
   R?   R   Rq   R[   RY   t   meshgridRs   RK   t   reshapeRT  (   t   funcnameRD   Rf   RË  RŽ   t   numRowst   numColsR³  R  RA  t   NyR^   R_   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   _pcolorargs›  sF    
-((,$c   -      O  sZ  |  j  s |  j ƒ  n  | j d d ƒ } | j d d ƒ } | j d d ƒ } | j d d ƒ } | j d d ƒ } d | k rž t j d d d d	 d
 d d ƒn  | j d d ƒ } |  j d d t | Œ\ }	 }
 } |	 j \ } } t	 j
 | ƒ } t	 j
 |	 ƒ }	 t	 j
 |
 ƒ }
 t	 j |	 ƒ t	 j |
 ƒ } | d d … d d … f | d d … d d … f | d d … d d … f | d d … d d … f } t	 j | ƒ | } t j } t j } | d k j ƒ  } | | t	 j |	 d d … d d … f ƒ j ƒ  ƒ } | | t	 j |
 d d … d d … f ƒ j ƒ  ƒ } | | t	 j |	 d d … d d … f ƒ j ƒ  ƒ } | | t	 j |
 d d … d d … f ƒ j ƒ  ƒ } | | t	 j |	 d d … d d … f ƒ j ƒ  ƒ } | | t	 j |
 d d … d d … f ƒ j ƒ  ƒ } | | t	 j |	 d d … d d … f ƒ j ƒ  ƒ } | | t	 j |
 d d … d d … f ƒ j ƒ  ƒ } t | ƒ } t j | d d … | f | d d … | f | d d … | f | d d … | f | d d … | f | d d … | f | d d … | f | d d … | f | d d … | f | d d … | f f
 d d ƒ} | j | d d f ƒ } | | t	 j | d | d … d | d … f ƒ j ƒ  ƒ } d" } d | k rÅ| j d ƒ | d <n  | j d | ƒ | d k rêd# } n d } d | k r| j d ƒ | d
 <n  | j d
 | ƒ }  d | k rF| j d ƒ | d <n  d | k r}t |  ƒ r}|  j ƒ  d k r}t | d <n  t j | | � }! |! j | ƒ |! j | ƒ | d k	 rÐt | t j ƒ sÐt ‚ n  |! j | ƒ |! j  | ƒ |! j! | | ƒ |! j" ƒ  |  j# t ƒ |	 j$ ƒ  }" |
 j$ ƒ  }# |! j% }$ t |$ t& j' ƒ rit( |$ d  ƒ ri|$ j) |  j* ƒ }$ n  |$ rÞt+ |$ j, |  j- ƒ ƒ rÞ|$ |  j- }% t j. |" |# g ƒ j/ j0 t j1 ƒ }& |% j2 |& ƒ }' |' d$ }" |' d% }# n  t j3 |" ƒ }( t j4 |" ƒ }) t j3 |# ƒ }* t j4 |# ƒ }+ |( |* f |) |+ f f }, |  j5 |, ƒ |  j6 ƒ  |  j7 |! ƒ |! S(&   s#  
        Create a pseudocolor plot of a 2-D array.

        .. note::

            pcolor can be very slow for large arrays; consider
            using the similar but much faster
            :func:`~matplotlib.pyplot.pcolormesh` instead.

        Call signatures::

          pcolor(C, **kwargs)
          pcolor(X, Y, C, **kwargs)

        *C* is the array of color values.

        *X* and *Y*, if given, specify the (*x*, *y*) coordinates of
        the colored quadrilaterals; the quadrilateral for C[i,j] has
        corners at::

          (X[i,   j],   Y[i,   j]),
          (X[i,   j+1], Y[i,   j+1]),
          (X[i+1, j],   Y[i+1, j]),
          (X[i+1, j+1], Y[i+1, j+1]).

        Ideally the dimensions of *X* and *Y* should be one greater
        than those of *C*; if the dimensions are the same, then the
        last row and column of *C* will be ignored.

        Note that the the column index corresponds to the
        *x*-coordinate, and the row index corresponds to *y*; for
        details, see the :ref:`Grid Orientation
        <axes-pcolor-grid-orientation>` section below.

        If either or both of *X* and *Y* are 1-D arrays or column vectors,
        they will be expanded as needed into the appropriate 2-D arrays,
        making a rectangular grid.

        *X*, *Y* and *C* may be masked arrays.  If either C[i, j], or one
        of the vertices surrounding C[i,j] (*X* or *Y* at [i, j], [i+1, j],
        [i, j+1],[i+1, j+1]) is masked, nothing is plotted.

        Keyword arguments:

          *cmap*: [ *None* | Colormap ]
            A :class:`matplotlib.colors.Colormap` instance. If *None*, use
            rc settings.

          *norm*: [ *None* | Normalize ]
            An :class:`matplotlib.colors.Normalize` instance is used
            to scale luminance data to 0,1. If *None*, defaults to
            :func:`normalize`.

          *vmin*/*vmax*: [ *None* | scalar ]
            *vmin* and *vmax* are used in conjunction with *norm* to
            normalize luminance data.  If either is *None*, it
            is autoscaled to the respective min or max
            of the color array *C*.  If not *None*, *vmin* or
            *vmax* passed in here override any pre-existing values
            supplied in the *norm* instance.

          *shading*: [ 'flat' | 'faceted' ]
            If 'faceted', a black grid is drawn around each rectangle; if
            'flat', edges are not drawn. Default is 'flat', contrary to
            MATLAB.

            This kwarg is deprecated; please use 'edgecolors' instead:
              * shading='flat' -- edgecolors='none'
              * shading='faceted  -- edgecolors='k'

          *edgecolors*: [ *None* | ``'none'`` | color | color sequence]
            If *None*, the rc setting is used by default.

            If ``'none'``, edges will not be visible.

            An mpl color or sequence of colors will set the edge color

          *alpha*: ``0 <= scalar <= 1``   or *None*
            the alpha blending value

        Return value is a :class:`matplotlib.collections.Collection`
        instance.

        .. _axes-pcolor-grid-orientation:

        The grid orientation follows the MATLAB convention: an
        array *C* with shape (*nrows*, *ncolumns*) is plotted with
        the column number as *X* and the row number as *Y*, increasing
        up; hence it is plotted the way the array would be printed,
        except that the *Y* axis is reversed.  That is, *C* is taken
        as *C*(*y*, *x*).

        Similarly for :func:`meshgrid`::

          x = np.arange(5)
          y = np.arange(3)
          X, Y = np.meshgrid(x, y)

        is equivalent to::

          X = array([[0, 1, 2, 3, 4],
                     [0, 1, 2, 3, 4],
                     [0, 1, 2, 3, 4]])

          Y = array([[0, 0, 0, 0, 0],
                     [1, 1, 1, 1, 1],
                     [2, 2, 2, 2, 2]])

        so if you have::

          C = rand(len(x), len(y))

        then you need to transpose C::

          pcolor(X, Y, C.T)

        or::

          pcolor(C.T)

        MATLAB :func:`pcolor` always discards the last row and column
        of *C*, but matplotlib displays the last row and column if *X* and
        *Y* are not specified, or if *X* and *Y* have one more row and
        column than *C*.

        kwargs can be used to control the
        :class:`~matplotlib.collections.PolyCollection` properties:

        %(PolyCollection)s

        .. note::

            The default *antialiaseds* is False if the default
            *edgecolors*="none" is used.  This eliminates artificial lines
            at patch boundaries, and works regardless of the value of
            alpha.  If *edgecolors* is not "none", then the default
            *antialiaseds* is taken from
            rcParams['patch.antialiased'], which defaults to *True*.
            Stroking the edges may be preferred if *alpha* is 1, but
            will cause artifacts otherwise.

        .. seealso::

            :func:`~matplotlib.pyplot.pcolormesh`
                For an explanation of the differences between
                pcolor and pcolormesh.
        RÌ  R:  R9  R;  R<  t   shadings   1.2RA   Rh  R%  Ri  R&  t   flatt   pcolorRË  i    iÿÿÿÿi   NRº  i   i   g      Ð?R  R  R$  Rz   R'  RW  t   antialiasedt   antialiasedst   _as_mpl_transform.(   g      Ð?(   Rz   (   .i    (   .i   (8   R¯   R±   R?   R   R'  Rl  RÒ  R   R[   R   R  t   getmaskarrayRY   R]   Rù  Rö  t   filledRq   t   concatenateRÍ  R<  R   R´  Rý  RV  R2  R4  R—   R   R3  RH   R5  R6  R7  R8  Rñ   t
   compressedt
   _transformR˜   t	   TransformRJ   RØ  R*   Rà  Rá  Rí   t   vstackR
  Rƒ  Rt   Rõ  Rg  Rh  RÕ  R¸  RÙ  (-   R-   RD   RE   RÌ  R:  R9  R;  R<  RÓ  R³  R  RŽ   RÑ  RA  R-  t   xymaskR]   Rù  t	   ravelmaskt   X1t   Y1t   X2t   Y2t   X3t   Y3t   X4t   Y4t   npolyRb  R÷  R  R%  t   ecR×  R^   R_   RX  Rë  t   ptst   transformed_ptsR  R  R  R  R  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRÕ  Õ  s¬    –	
!j		44444444,&&&,	<	
	$

c      	   O  s4  |  j  s |  j ƒ  n  | j d d ƒ } | j d d ƒ } | j d d ƒ } | j d d ƒ } | j d d ƒ } | j d d ƒ j ƒ  } | j d t ƒ }	 | j d	 d
 ƒ | d k }
 |  j d d |
 | Œ\ } } } | j \ } } | j	 ƒ  } | j	 ƒ  } | j	 ƒ  } t
 j | | d f d t ƒ} | | d d … d f <| | d d … d f <t j | d | d | d |	 d | | �} | j | ƒ | j | ƒ | d k	 rÂt | t j ƒ sÂt ‚ n  | j | ƒ | j | ƒ | j | | ƒ | j ƒ  |  j t ƒ | j } t | t j ƒ rCt | d ƒ rC| j |  j ƒ } n  | r¸t  | j! |  j" ƒ ƒ r¸| |  j" } t
 j# | | g ƒ j$ j% t
 j ƒ } | j& | ƒ } | d } | d } n  t
 j' | ƒ } t
 j( | ƒ } t
 j' | ƒ } t
 j( | ƒ } | | f | | f f } |  j) | ƒ |  j* ƒ  |  j+ | ƒ | S(   s©
  
        Plot a quadrilateral mesh.

        Call signatures::

          pcolormesh(C)
          pcolormesh(X, Y, C)
          pcolormesh(C, **kwargs)

        Create a pseudocolor plot of a 2-D array.

        pcolormesh is similar to :func:`~matplotlib.pyplot.pcolor`,
        but uses a different mechanism and returns a different
        object; pcolor returns a
        :class:`~matplotlib.collections.PolyCollection` but pcolormesh
        returns a
        :class:`~matplotlib.collections.QuadMesh`.  It is much faster,
        so it is almost always preferred for large arrays.

        *C* may be a masked array, but *X* and *Y* may not.  Masked
        array support is implemented via *cmap* and *norm*; in
        contrast, :func:`~matplotlib.pyplot.pcolor` simply does not
        draw quadrilaterals with masked colors or vertices.

        Keyword arguments:

          *cmap*: [ *None* | Colormap ]
            A :class:`matplotlib.colors.Colormap` instance. If *None*, use
            rc settings.

          *norm*: [ *None* | Normalize ]
            A :class:`matplotlib.colors.Normalize` instance is used to
            scale luminance data to 0,1. If *None*, defaults to
            :func:`normalize`.

          *vmin*/*vmax*: [ *None* | scalar ]
            *vmin* and *vmax* are used in conjunction with *norm* to
            normalize luminance data.  If either is *None*, it
            is autoscaled to the respective min or max
            of the color array *C*.  If not *None*, *vmin* or
            *vmax* passed in here override any pre-existing values
            supplied in the *norm* instance.

          *shading*: [ 'flat' | 'gouraud' ]
            'flat' indicates a solid color for each quad.  When
            'gouraud', each quad will be Gouraud shaded.  When gouraud
            shading, edgecolors is ignored.

          *edgecolors*: [*None* | ``'None'`` | ``'face'`` | color |
                         color sequence]
            If *None*, the rc setting is used by default.

            If ``'None'``, edges will not be visible.

            If ``'face'``, edges will have the same color as the faces.

            An mpl color or sequence of colors will set the edge color

          *alpha*: ``0 <= scalar <= 1``  or *None*
            the alpha blending value

        Return value is a :class:`matplotlib.collections.QuadMesh`
        object.

        kwargs can be used to control the
        :class:`matplotlib.collections.QuadMesh` properties:

        %(QuadMesh)s

        .. seealso::

            :func:`~matplotlib.pyplot.pcolor`
                For an explanation of the grid orientation and the
                expansion of 1-D *X* and/or *Y* to 2-D arrays.
        RÌ  R:  R9  R;  R<  RÓ  RÔ  RÖ  R%  R   t   gouraudt
   pcolormeshRË  i   Rp   Ni    i   RØ  .(   .i    (   .i   (,   R¯   R±   R?   R   R´  R   R<  RÒ  R[   Rö  RY   RÍ  Rt   Rý  t   QuadMeshR2  R4  R—   R   R3  RH   R5  R6  R7  R8  Rñ   RÝ  R˜   RÞ  RJ   RØ  R*   Rà  Rá  Rí   Rß  R
  Rƒ  Rõ  Rg  Rh  RÕ  R¸  RÙ  (   R-   RD   RE   RÌ  R:  R9  R;  R<  RÓ  RÖ  RË  R³  R  RŽ   RÑ  RA  t   coordsR×  RX  Rë  Rì  Rí  R  R  R  R  R  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRï  Ý  sd    M	!
	$

c         O  sÍ  |  j  s |  j ƒ  n  | j d d ƒ } | j d d ƒ } | j d d ƒ } | j d d ƒ } | j d d ƒ } | d k	 r— t | t j ƒ s— t ‚ n  | d } | j \ }	 }
 t	 | ƒ d k rã d } d	 |
 g } d	 |	 g } nGt	 | ƒ d
 k r| d  \ } } t
 j | ƒ } t
 j | ƒ } | j d k rè| j d k rè| j d k rh| j d k rhd } qt
 j | ƒ } t
 j | ƒ } t
 j | ƒ d t
 j | j ƒ  ƒ k  rßt
 j | ƒ d t
 j | j ƒ  ƒ k  rßd } qd } q*| j d k r| j d k rd } q*t d ƒ ‚ n t d ƒ ‚ | d k rZt j | ƒ } | j ƒ  } | j ƒ  } |
 d } |	 d } t
 j | | d f t
 j ƒ } | | d d … d	 f <| | d d … d f <t j |
 |	 | d	 d d ƒ} | j | ƒ | j | ƒ | j | ƒ | j | ƒ |  j | ƒ | j ƒ  | j ƒ  | j ƒ  | j ƒ  f \ } } } } | } n. | d	 | d | d	 | d f \ } } } } | d k rýt  j! |  | | d d d d d | | | | f | �} | j" | ƒ | j | ƒ |  j# j$ | ƒ | } n  | d k rOt  j% |  | | | d | d | d | | �} |  j# j$ | ƒ | } n  |  j& | ƒ | d k	 st| d k	 r‡| j' | | ƒ n
 | j( ƒ  |  j) t
 j* | | g | | g g ƒ ƒ |  j+ d t, ƒ | S(   sö  
        pseudocolor plot of a 2-D array

        Experimental; this is a pcolor-type method that
        provides the fastest possible rendering with the Agg
        backend, and that can handle any quadrilateral grid.
        It supports only flat shading (no outlines), it lacks
        support for log scaling of the axes, and it does not
        have a pyplot wrapper.

        Call signatures::

          ax.pcolorfast(C, **kwargs)
          ax.pcolorfast(xr, yr, C, **kwargs)
          ax.pcolorfast(x, y, C, **kwargs)
          ax.pcolorfast(X, Y, C, **kwargs)

        C is the 2D array of color values corresponding to quadrilateral
        cells. Let (nr, nc) be its shape.  C may be a masked array.

        ``ax.pcolorfast(C, **kwargs)`` is equivalent to
        ``ax.pcolorfast([0,nc], [0,nr], C, **kwargs)``

        *xr*, *yr* specify the ranges of *x* and *y* corresponding to the
        rectangular region bounding *C*.  If::

            xr = [x0, x1]

        and::

            yr = [y0,y1]

        then *x* goes from *x0* to *x1* as the second index of *C* goes
        from 0 to *nc*, etc.  (*x0*, *y0*) is the outermost corner of
        cell (0,0), and (*x1*, *y1*) is the outermost corner of cell
        (*nr*-1, *nc*-1).  All cells are rectangles of the same size.
        This is the fastest version.

        *x*, *y* are 1D arrays of length *nc* +1 and *nr* +1, respectively,
        giving the x and y boundaries of the cells.  Hence the cells are
        rectangular but the grid may be nonuniform.  The speed is
        intermediate.  (The grid is checked, and if found to be
        uniform the fast version is used.)

        *X* and *Y* are 2D arrays with shape (*nr* +1, *nc* +1) that specify
        the (x,y) coordinates of the corners of the colored
        quadrilaterals; the quadrilateral for C[i,j] has corners at
        (X[i,j],Y[i,j]), (X[i,j+1],Y[i,j+1]), (X[i+1,j],Y[i+1,j]),
        (X[i+1,j+1],Y[i+1,j+1]).  The cells need not be rectangular.
        This is the most general, but the slowest to render.  It may
        produce faster and more compact output using ps, pdf, and
        svg backends, however.

        Note that the the column index corresponds to the x-coordinate,
        and the row index corresponds to y; for details, see
        the "Grid Orientation" section below.

        Optional keyword arguments:

          *cmap*: [ *None* | Colormap ]
            A :class:`matplotlib.colors.Colormap` instance from cm. If *None*,
            use rc settings.

          *norm*: [ *None* | Normalize ]
            A :class:`matplotlib.colors.Normalize` instance is used to scale
            luminance data to 0,1. If *None*, defaults to normalize()

          *vmin*/*vmax*: [ *None* | scalar ]
            *vmin* and *vmax* are used in conjunction with norm to normalize
            luminance data.  If either are *None*, the min and max
            of the color array *C* is used.  If you pass a norm instance,
            *vmin* and *vmax* will be *None*.

          *alpha*: ``0 <= scalar <= 1``  or *None*
            the alpha blending value

        Return value is an image if a regular or rectangular grid
        is specified, and a :class:`~matplotlib.collections.QuadMesh`
        collection in the general quadrilateral case.

        RÌ  R:  R9  R;  R<  iÿÿÿÿi   R³  i    i   i   g{®Gáz„?t   pcolorimaget   quadmeshs'   arguments do not match valid signaturess   need 1 argument or 3 argumentsNR%  R   RÆ  t   nearestRÇ  R´  R]  R±  (-   R¯   R±   R?   R   R—   R   R3  RH   R[   Rq   RY   R  R\   R  RY  t   ptpRŠ  t   meanRK   R   Rö  RR  t   float64Rý  Rð  R2  R4  R5  R6  RÙ  Rÿ  Rw   RD  R¼  RÂ  RÎ   Rx   t   PcolorImageR  R7  R8  RÕ  RÉ  R¸  R   (   R-   RD   RE   RÌ  R:  R9  R;  R<  RŽ   R  R  Ra  R^   R_   RÃ  RÄ  R³  R  RA  RÑ  Rñ  R×  t   xlR   t   ybRž  RF   RË  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt
   pcolorfastj  s–    T	
	((			

6	.				
(c         O  s3   |  j  s |  j ƒ  n  t | d <t j |  | | Ž S(   NRÚ  (   R¯   R±   R   t   mcontourt   QuadContourSet(   R-   RD   RE   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRÉ  $  s    	
c         O  s3   |  j  s |  j ƒ  n  t | d <t j |  | | Ž S(   NRÚ  (   R¯   R±   R   Rü  Rý  (   R-   RD   RE   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   contourf+  s    	
c         O  s   | j  | | Ž  S(   N(   t   clabel(   R-   t   CSRD   RE   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRÿ  2  s    c         K  s   t  j |  | � S(   sð  
        Add a table to the current axes.

        Call signature::

          table(cellText=None, cellColours=None,
                cellLoc='right', colWidths=None,
                rowLabels=None, rowColours=None, rowLoc='left',
                colLabels=None, colColours=None, colLoc='center',
                loc='bottom', bbox=None):

        Returns a :class:`matplotlib.table.Table` instance.  For finer
        grained control over tables, use the
        :class:`~matplotlib.table.Table` class and add it to the axes
        with :meth:`~matplotlib.axes.Axes.add_table`.

        Thanks to John Gill for providing the class and table.

        kwargs control the :class:`~matplotlib.table.Table`
        properties:

        %(Table)s
        (   t   mtablet   table(   R-   RE   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR  6  s    c         O  s%   |  j  j |  j t ƒ | | Ž } | S(   sN   
        make a twinx axes of self. This is used for twinx and twiny.
        (   Rù   t   add_axesR  R   (   R-   t   klRE   t   ax2(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   _make_twin_axesQ  s    !c         C  sf   |  j  d |  d t ƒ } | j j ƒ  | j j d ƒ | j j d ƒ |  j j ƒ  | j j t ƒ | S(   s¸  
        Call signature::

          ax = twinx()

        create a twin of Axes for generating a plot with a sharex
        x-axis but independent y axis.  The y-axis of self will have
        ticks on left and the returned axes will have ticks on the
        right.

        .. note::
            For those who are 'picking' artists while using twinx, pick
            events are only called for the artists in the top-most axes.
        RÄ   RÃ   RÙ   (	   R  R   R>   t
   tick_rightt   set_label_positiont   set_offset_positiont	   tick_leftR=   t   set_visible(   R-   R  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   twinxX  s    c         C  sV   |  j  d |  d t ƒ } | j j ƒ  | j j d ƒ |  j j ƒ  | j j t ƒ | S(   s¸  
        Call signature::

          ax = twiny()

        create a twin of Axes for generating a plot with a shared
        y-axis but independent x axis.  The x-axis of self will have
        ticks on bottom and the returned axes will have ticks on the
        top.

        .. note::
            For those who are 'picking' artists while using twiny, pick
            events are only called for the artists in the top-most axes.
        RÅ   RÃ   R×   (   R  R   R=   t   tick_topR  t   tick_bottomR>   R  (   R-   R  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   twinyp  s    c         C  s   |  j  S(   s:   Return a copy of the shared axes Grouper object for x axes(   R£   (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_shared_x_axes‡  s    c         C  s   |  j  S(   s:   Return a copy of the shared axes Grouper object for y axes(   R¤   (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_shared_y_axes‹  s    Rr  RT  R_  c   =      K  s  |  j  s |  j ƒ  n  | } t d } | d4 k rE t d | ƒ ‚ n  |	 d5 k rd t d
 |	 ƒ ‚ n  |
 d6 k rƒ t d |
 ƒ ‚ n  | d k rŸ | rŸ t } n  t | t j ƒ sÂ t | d ƒ rdt j	 | ƒ } | j
 d k rì | j } n7 | j
 d k r| j d | j d ƒ } n t d ƒ ‚ | j d | j d k  r†t j d | j d d d … ƒ q†n" g  | D] } t j	 | ƒ ^ qk} t | ƒ } | d k rÌg  t | ƒ D] } |  j j j ƒ  ^ q«} n3 t j j | ƒ } t | ƒ | k rÿt d ƒ ‚ n  | d k	 rt | t j ƒ s.t | d ƒ r�t j | ƒ } | j
 d k rX| j } q±| j
 d k r€d | j d f | _ q±t d ƒ ‚ n" g  | D] } t j	 | ƒ ^ q–} t | ƒ | k rÒt d ƒ ‚ n  xS t | ƒ D]5 } t | | ƒ t | | ƒ k rßt d ƒ ‚ qßqßWn d g | } |  j j } t j | ƒ pL| d k	 } | s²t j } t j } x8 | D]0 } t | | j ƒ  ƒ } t | | j ƒ  ƒ } qoW| | f } n  t  d | ƒ } g  } | } xÝ t | ƒ D]Ï } t j! | | | d | | | �\ } } | j" t# ƒ } | d k rFt j$ t | ƒ d | j% ƒ } n  | r‚| r‚t j& | ƒ } | j" t# ƒ | | j' ƒ  } n  | rœ| | 7} | | (n  | j( | ƒ qÚW| rþ| rþt j& | ƒ } x3 | D]( } | j" t# ƒ | | d j' ƒ  | (qÏWn  | r§t) d ƒ }  t j* | ƒ r@| d k  r@t) d d d ƒ }  n  | r}g  | D]' } | t j& | ƒ |  j+ ƒ  |  ^ qM} q§g  | D] } | |  j+ ƒ  |  ^ q„} n  g  }! | j, d ƒ r%|  j- ƒ  }" |  j. ƒ  }# |  j/ t0 ƒ |  j1 t0 ƒ t j& | ƒ }$ | d k	 r$t d t d | ƒ ƒ }% n! t | ƒ d k r?d }% n d }% | d k r¤| r¤|% |$ | }& |& }' | d k r•d |% |$ d d | }( n d }( t0 } n+ | d k s¶| rÏ|% |$ }& d7 \ }( }' n  |	 d k sç|	 d k rø|( d |$ 7}( n |	 d	 k r|( |$ 7}( n  |
 d k r/|  j2 }) d }* n |  j3 }) d }* x½ t4 | | ƒ D]¬ \ } }+ | d k r„t j$ t | ƒ t j# ƒ } n  | r—| | }, n | }, |) | d  |( |, |& d  d! d" | d# |+ i | |* 6�}- |! j( |- ƒ | rð| | (n  |( |' 7}( qNW|  j/ |" ƒ |  j1 |# ƒ |  j5 ƒ  n| j, d ƒ r&t j$ d$ t | ƒ d% t j# ƒ } t j$ d$ t | ƒ d% t j# ƒ }. | | d  | d d t | ƒ d d … <| d d t | ƒ d d … <| d d t | ƒ d !d d d … | d t | ƒ d )| r«	|
 d k r2	|  j6 d" d& d' ƒ|  j7 j8 j9 }/ n" |  j: d" d( d' ƒ|  j; j8 j9 }/ | r‰	t j | ƒ }0 t j |0 |0 d k ƒ |/ }1 n
 d |/ }1 |1 |1 |. d <|. d <n t j | ƒ }1 |	 d k sÒ	|	 d! k rï	| d | d | d 8} n) |	 d	 k r
| d | d | d 7} n  | d k }2 g  g  }3 }4 xô | D]ì } |. d |. d <|. d d t | ƒ d !d d d … |. d t | ƒ d )| | |. d d t | ƒ d d … <|. d d t | ƒ d d … <| râ
|1 |. |. |1 k  <n  |
 d k rþ
|. | } }. n  |3 j( | j< ƒ  ƒ |4 j( |. j< ƒ  ƒ q8
W|2 r‚xÀ t= t4 |3 |4 | ƒ ƒ D]4 \ } }. }+ |! j( |  j> | |. d) t d* |+ ƒƒ qGWno xl t= t4 |3 |4 | ƒ ƒ D]R \ } }. }+ d t | ƒ }5 |! j( |  j> | |5  |. |5  d) t0 d+ |+ d, t0 ƒƒ q›W|! j? ƒ  |
 d k r�t | d d- |1 ƒ }6 |  j j@ d } x' | D] } t jA | | d k ƒ } q5Wt | d- |1 ƒ } t |6 | ƒ } | | f |  j _@ q&|
 d k r&t | d d- |1 ƒ }7 |  j jB d }8 x' | D] } t jA | | d k ƒ }9 qÉWt |9 d- |1 ƒ }9 t |7 |9 ƒ }9 |9 |8 f |  j _B q&n  | d k r>d g }: n? tC | ƒ rV| g }: n' tD | ƒ rqtE | ƒ }: n t d. ƒ ‚ t |: ƒ | k  r­|: d g | t |: ƒ 7}: n  x• t4 |! |: ƒ D]„ \ }- }; |- r½|- d }< |< jF | ƒ |; d k	 r|< jG |; ƒ n  |< jH t0 ƒ x/ |- d D]  }< |< jF | ƒ |< jG d/ ƒ qWq½q½W| r·|
 d k r‡|  jI | d d f | d d f g d0 t0 ƒq·|  jI d | d f d | d f g d1 t0 ƒn  | d k rä| d | t jJ d2 |! d ƒ f S| | t jJ d3 |! ƒ f Sd S(8   sª  
        Plot a histogram.

        Compute and draw the histogram of *x*. The return value is a
        tuple (*n*, *bins*, *patches*) or ([*n0*, *n1*, ...], *bins*,
        [*patches0*, *patches1*,...]) if the input contains multiple
        data.

        Multiple data can be provided via *x* as a list of datasets
        of potentially different length ([*x0*, *x1*, ...]), or as
        a 2-D ndarray in which each column is a dataset.  Note that
        the ndarray form is transposed relative to the list form.

        Masked arrays are not supported at present.

        Parameters
        ----------
        x : array_like, shape (n, )
            Input values.

        bins : integer or array_like, optional, default: 10
            If an integer is given, `bins + 1` bin edges are returned,
            consistently with :func:`numpy.histogram` for numpy version >=
            1.3.

            Unequally spaced bins are supported if `bins` is a sequence.

        range : tuple, optional, default: None
            The lower and upper range of the bins. Lower and upper outliers
            are ignored. If not provided, `range` is (x.min(), x.max()). Range
            has no effect if `bins` is a sequence.

            If `bins` is a sequence or `range` is specified, autoscaling
            is based on the specified bin range instead of the
            range of x.

        normed : boolean, optional, default: False
            If `True`, the first element of the return tuple will
            be the counts normalized to form a probability density, i.e.,
            ``n/(len(x)`dbin)``, ie the integral of the histogram will sum to
            1. If *stacked* is also *True*, the sum of the histograms is
            normalized to 1.

        weights : array_like, shape (n, ), optional, default: None
            An array of weights, of the same shape as `x`.  Each value in `x`
            only contributes its associated weight towards the bin count
            (instead of 1).  If `normed` is True, the weights are normalized,
            so that the integral of the density over the range remains 1.

        cumulative : boolean, optional, default : True
            If `True`, then a histogram is computed where each bin gives the
            counts in that bin plus all bins for smaller values. The last bin
            gives the total number of datapoints.  If `normed` is also `True`
            then the histogram is normalized such that the last bin equals 1.
            If `cumulative` evaluates to less than 0 (e.g., -1), the direction
            of accumulation is reversed.  In this case, if `normed` is also
            `True`, then the histogram is normalized such that the first bin
            equals 1.

        histtype : ['bar' | 'barstacked' | 'step' | 'stepfilled'], optional
            The type of histogram to draw.

            - 'bar' is a traditional bar-type histogram.  If multiple data
              are given the bars are aranged side by side.

            - 'barstacked' is a bar-type histogram where multiple
              data are stacked on top of each other.

            - 'step' generates a lineplot that is by default
              unfilled.

            - 'stepfilled' generates a lineplot that is by default
              filled.

        align : ['left' | 'mid' | 'right'], optional, default: 'mid'
            Controls how the histogram is plotted.

                - 'left': bars are centered on the left bin edges.

                - 'mid': bars are centered between the bin edges.

                - 'right': bars are centered on the right bin edges.

        orientation : ['horizontal' | 'vertical'], optional
            If 'horizontal', `~matplotlib.pyplot.barh` will be used for
            bar-type histograms and the *bottom* kwarg will be the left edges.

        rwidth : scalar, optional, default: None
            The relative width of the bars as a fraction of the bin width.  If
            `None`, automatically compute the width. Ignored if `histtype` =
            'step' or 'stepfilled'.

        log : boolean, optional, default : False
            If `True`, the histogram axis will be set to a log scale. If `log`
            is `True` and `x` is a 1D array, empty bins will be filtered out
            and only the non-empty (`n`, `bins`, `patches`) will be returned.

        color : color or array_like of colors, optional, default: None
            Color spec or sequence of color specs, one per dataset.  Default
            (`None`) uses the standard line color sequence.

        label : string, optional, default: ''
            String, or sequence of strings to match multiple datasets.  Bar
            charts yield multiple patches per dataset, but only the first gets
            the label, so that the legend command will work as expected.

        stacked : boolean, optional, default : False
            If `True`, multiple data are stacked on top of each other If
            `False` multiple data are aranged side by side if histtype is
            'bar' or on top of each other if histtype is 'step'

        Returns
        -------
        tuple : (n, bins, patches) or ([n0, n1, ...], bins, [patches0, patches1,...])

        Other Parameters
        ----------------
        kwargs : `~matplotlib.patches.Patch` properties

        See also
        --------
        hist2d : 2D histograms

        Notes
        -----
        Until numpy release 1.5, the underlying numpy histogram function was
        incorrect with `normed`=`True` if bin sizes were unequal.  MPL
        inherited that error.  It is now corrected within MPL when using
        earlier numpy versions.

        Examples
        --------
        .. plot:: mpl_examples/statistics/histogram_demo_features.py

        RÎ  Rr  t
   barstackedRV  t
   stepfilleds   histtype %s is not recognizedRØ   RT  RÙ   s    align kwarg %s is not recognizedR  R_  s&   orientation kwarg %s is not recognizedi    i   i   s   x must be 1D or 2DsX   2D hist input should be nsamples x nvariables;
 this looks transposed (shape is %d x %d)Niÿÿÿÿs+   color kwarg must have one color per datasets   weights must be 1D or 2Ds'   weights should have the same shape as xt   weightsg      ð?g        gš™™™™™é?g      à¿R^  g      à?RÖ   R]  R÷   R�  R#   i   i   R,  Ra  R0  Rj   Ri   RW  RS   gÍÌÌÌÌÌì?s4   invalid label: must be string or sequence of stringsRC  RÝ  RÜ  t   Patchs   Lists of Patches(   s   barR  s   stepR  (   s   lefts   mids   right(   s
   horizontals   vertical(   g        g        (K   R¯   R±   t   __builtins__R   R   R—   RY   t   ndarrayR   R  R\   R
  RÍ  R[   R„  R…  Rq   R   Rv   R>  R6   Rd   R   R   Rd  RÉ  Râ   R‰   R'  t   infRÿ  Rw   Rz  t	   histogramRƒ  Rt   RÍ  Rp   RY  R…  Rx   t   slicet
   is_numlikeR  RM  R  R  R  R   R  Rs  Rr  Rr   R¸  R¸   R=   t   _scalet   baseR¹   R>   R0   t   reversedRS   t   reverseR%  Rg  R(  R   R,  Rc  Râ  R¥   t   set_snapRÕ  R½  (=   R-   R^   R\  RÎ  R=  R  t
   cumulativeRÖ   t   histtypeR]  R  t   rwidthR�  R#   RÆ   t   stackedRE   t	   bin_rangeRè  R`  Rn  R™  t   wit   _saved_boundst	   binsgivenRx  Ry  t   hist_kwargsRn  t   mlastR  t   dbt   slcRÌ   t   _saved_autoscalext   _saved_autoscaleyt   totwidtht   drR‹  t   dwt   boffsett   _barfunct   bottom_kwargR%   RŒ  RN  R_   t   logbaset   ndataRx  RS   t   xvalst   yvalst   splitt   xmin0t   ymin0R{  Rz  Rš  t   lblRð  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   hist‘  sº   �	
	#"+#" 	
)" 

)7*		
			
##G: 
:C(	(
	
**!c	         K  sÜ   | }
 t  d } t j | | d | d |
 d | d | ƒ\ } } } | d k	 rb d | | | k  <n  | d k	 r� d | | | k <n  |  j | | | j |	 � } |  j | d | d ƒ |  j | d | d ƒ | | | | f S(   sY	  
        Make a 2D histogram plot.

        Parameters
        ----------
        x, y: array_like, shape (n, )
            Input values

        bins: [None | int | [int, int] | array_like | [array, array]]

            The bin specification:

                - If int, the number of bins for the two dimensions
                  (nx=ny=bins).

                - If [int, int], the number of bins in each dimension
                  (nx, ny = bins).

                - If array_like, the bin edges for the two dimensions
                  (x_edges=y_edges=bins).

                - If [array, array], the bin edges in each dimension
                  (x_edges, y_edges = bins).

            The default value is 10.

        range : array_like shape(2, 2), optional, default: None
             The leftmost and rightmost edges of the bins along each dimension
             (if not specified explicitly in the bins parameters): [[xmin,
             xmax], [ymin, ymax]]. All values outside of this range will be
             considered outliers and not tallied in the histogram.

        normed : boolean, optional, default: False
             Normalize histogram.

        weights : array_like, shape (n, ), optional, default: None
            An array of values w_i weighing each sample (x_i, y_i).

        cmin : scalar, optional, default: None
             All bins that has count less than cmin will not be displayed and
             these count values in the return value count histogram will also
             be set to nan upon return

        cmax : scalar, optional, default: None
             All bins that has count more than cmax will not be displayed (set
             to none before passing to imshow) and these count values in the
             return value count histogram will also be set to nan upon return

        Returns
        -------
        The return value is ``(counts, xedges, yedges, Image)``.

        Other parameters
        -----------------
        kwargs : :meth:`pcolorfast` properties.

        See also
        --------
        hist : 1D histogram

        Notes
        -----
        Rendering the histogram with a logarithmic color scale is
        accomplished by passing a :class:`colors.LogNorm` instance to
        the *norm* keyword argument.

        Examples
        --------
        .. plot:: mpl_examples/pylab_examples/hist2d_demo.py
        RÎ  R\  R=  R  i    iÿÿÿÿN(   R  RY   t   histogram2dR   Rû  R
  R,  R8  (   R-   R^   R_   R\  RÎ  R=  R  t   cmint   cmaxRE   R%  Rš  t   xedgest   yedgest   pc(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   hist2df!  s    K
i   i   Rã  c      
   K  s]  |  j  s |  j ƒ  n  t j | | | | | | | |	 |
 ƒ	 \ } } t | ƒ f | _ | | 7} |
 d	 t f k rz d } n d } |  j | d t	 j
 | ƒ | � |  j d ƒ |  j d | ƒ |  j t ƒ |  j j \ } } | | } t t	 j
 | ƒ ƒ } | d k rd } n  d | } t	 j t j | ƒ t j | ƒ d | ƒ } |  j | ƒ | | f S(
   s©  
        Plot the power spectral density.

        Call signature::

          psd(x, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none,
              window=mlab.window_hanning, noverlap=0, pad_to=None,
              sides='default', scale_by_freq=None, **kwargs)

        The power spectral density by Welch's average periodogram
        method.  The vector *x* is divided into *NFFT* length
        segments.  Each segment is detrended by function *detrend* and
        windowed by function *window*.  *noverlap* gives the length of
        the overlap between segments.  The :math:`|\mathrm{fft}(i)|^2`
        of each segment :math:`i` are averaged to compute *Pxx*, with a
        scaling to correct for power loss due to windowing.  *Fs* is the
        sampling frequency.

        %(PSD)s

          *noverlap*: integer
            The number of points of overlap between blocks.  The default value
            is 0 (no overlap).

          *Fc*: integer
            The center frequency of *x* (defaults to 0), which offsets
            the x extents of the plot to reflect the frequency range used
            when a signal is acquired and then filtered and downsampled to
            baseband.

        Returns the tuple (*Pxx*, *freqs*).

        For plotting, the power is plotted as
        :math:`10\log_{10}(P_{xx})` for decibels, though *Pxx* itself
        is returned.

        References:
          Bendat & Piersol -- Random Data: Analysis and Measurement
          Procedures, John Wiley & Sons (1986)

        kwargs control the :class:`~matplotlib.lines.Line2D` properties:

        %(Line2D)s

        **Example:**

        .. plot:: mpl_examples/pylab_examples/psd_demo.py
        s   dB/Hzt   dBi
   t	   Frequencys   Power Spectral Density (%s)i    gš™™™™™¹?i   N(   R¯   R±   RÑ  t   psdRq   R[   R   R   R)   RY   R  Ré  Rì  Rñ   Rä   R(  R   Rs   Rv  RO  t   ceilR£  (   R-   R^   t   NFFTt   Fst   FcR>  t   windowt   noverlapt   pad_tot   sidest   scale_by_freqRE   t   pxxt   freqst	   psd_unitsR;  R<  t   intvt   logiRV  R‘  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRG  Á!  s,    4	
	 
	
+c         K  s)  |  j  s |  j ƒ  n  t j | | | | | | | |	 |
 | ƒ
 \ } } t | ƒ f | _ | | 7} |  j | d t j t j	 | ƒ ƒ | � |  j
 d ƒ |  j d ƒ |  j t ƒ |  j j \ } } | | } d t t j | ƒ ƒ } t j t j | ƒ t j | ƒ d | ƒ } |  j | ƒ | | f S(   s™  
        Plot cross-spectral density.

        Call signature::

          csd(x, y, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none,
              window=mlab.window_hanning, noverlap=0, pad_to=None,
              sides='default', scale_by_freq=None, **kwargs)

        The cross spectral density :math:`P_{xy}` by Welch's average
        periodogram method.  The vectors *x* and *y* are divided into
        *NFFT* length segments.  Each segment is detrended by function
        *detrend* and windowed by function *window*.  The product of
        the direct FFTs of *x* and *y* are averaged over each segment
        to compute :math:`P_{xy}`, with a scaling to correct for power
        loss due to windowing.

        Returns the tuple (*Pxy*, *freqs*).  *P* is the cross spectrum
        (complex valued), and :math:`10\log_{10}|P_{xy}|` is
        plotted.

        %(PSD)s

          *noverlap*: integer
            The number of points of overlap between blocks.  The
            default value is 0 (no overlap).

          *Fc*: integer
            The center frequency of *x* (defaults to 0), which offsets
            the x extents of the plot to reflect the frequency range used
            when a signal is acquired and then filtered and downsampled to
            baseband.

        References:
          Bendat & Piersol -- Random Data: Analysis and Measurement
          Procedures, John Wiley & Sons (1986)

        kwargs control the Line2D properties:

        %(Line2D)s

        **Example:**

        .. plot:: mpl_examples/pylab_examples/csd_demo.py

        .. seealso:

            :meth:`psd`
                For a description of the optional parameters.
        i
   RF  s   Cross Spectrum Magnitude (dB)i   (   R¯   R±   RÑ  t   csdRq   R[   R)   RY   R  t   absoluteRé  Rì  Rñ   R   Rä   R(  R   Rs   Rv  RO  RH  R£  (   R-   R^   R_   RI  RJ  RK  R>  RL  RM  RN  RO  RP  RE   t   pxyRR  R;  R<  RT  RV  R‘  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRV  "  s     6	
)
+c      	   K  sŽ   |  j  s |  j ƒ  n  t j | | | | | | | | ƒ \ } } | | 7} |  j | | | � |  j d ƒ |  j d ƒ |  j t ƒ | | f S(   s}  
        Plot the coherence between *x* and *y*.

        Call signature::

          cohere(x, y, NFFT=256, Fs=2, Fc=0, detrend = mlab.detrend_none,
                 window = mlab.window_hanning, noverlap=0, pad_to=None,
                 sides='default', scale_by_freq=None, **kwargs)

        Plot the coherence between *x* and *y*.  Coherence is the
        normalized cross spectral density:

        .. math::

          C_{xy} = \frac{|P_{xy}|^2}{P_{xx}P_{yy}}

        %(PSD)s

          *noverlap*: integer
            The number of points of overlap between blocks.  The
            default value is 0 (no overlap).

          *Fc*: integer
            The center frequency of *x* (defaults to 0), which offsets
            the x extents of the plot to reflect the frequency range used
            when a signal is acquired and then filtered and downsampled to
            baseband.

        The return value is a tuple (*Cxy*, *f*), where *f* are the
        frequencies of the coherence vector.

        kwargs are applied to the lines.

        References:

          * Bendat & Piersol -- Random Data: Analysis and Measurement
            Procedures, John Wiley & Sons (1986)

        kwargs control the :class:`~matplotlib.lines.Line2D`
        properties of the coherence plot:

        %(Line2D)s

        **Example:**

        .. plot:: mpl_examples/pylab_examples/cohere_demo.py
        RF  t	   Coherence(	   R¯   R±   RÑ  t   cohereR)   Ré  Rì  Rñ   R   (   R-   R^   R_   RI  RJ  RK  R>  RL  RM  RN  RO  RP  RE   t   cxyRR  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRZ  ]"  s    3	
i€   c      
   K  sô   |  j  s |  j ƒ  n  t j | | | | | | |
 | | ƒ	 \ } } } d t j | ƒ } t j | ƒ } |	 d k rŒ d t j | ƒ f }	 n  |	 \ } } | | 7} | | | d | d f } |  j	 | | d | | �} |  j
 d ƒ | | | | f S(   sE	  
        Plot a spectrogram.

        Call signature::

          specgram(x, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none,
                   window=mlab.window_hanning, noverlap=128,
                   cmap=None, xextent=None, pad_to=None, sides='default',
                   scale_by_freq=None, **kwargs)

        Compute and plot a spectrogram of data in *x*.  Data are split into
        *NFFT* length segments and the PSD of each section is
        computed.  The windowing function *window* is applied to each
        segment, and the amount of overlap of each segment is
        specified with *noverlap*. The spectrogram is plotted in decibels
        as a colormap (using imshow).

        %(PSD)s

          *noverlap*: integer
            The number of points of overlap between blocks.  The
            default value is 128.

          *Fc*: integer
            The center frequency of *x* (defaults to 0), which offsets
            the y extents of the plot to reflect the frequency range used
            when a signal is acquired and then filtered and downsampled to
            baseband.

          *cmap*:
            A :class:`matplotlib.colors.Colormap` instance; if *None*, use
            default determined by rc

          *xextent*:
            The image extent along the x-axis. xextent = (xmin,xmax)
            The default is (0,max(bins)), where bins is the return
            value from :func:`~matplotlib.mlab.specgram`

          *kwargs*:

            Additional kwargs are passed on to imshow which makes the
            specgram image

          Return value is (*Pxx*, *freqs*, *bins*, *im*):

          - *bins* are the time points the spectrogram is calculated over
          - *freqs* is an array of frequencies
          - *Pxx* is an array of shape `(len(times), len(freqs))` of power
          - *im* is a :class:`~matplotlib.image.AxesImage` instance

        .. note::

            If *x* is real (i.e. non-complex), only the positive
            spectrum is shown.  If *x* is complex, both positive and
            negative parts of the spectrum are shown.  This can be
            overridden using the *sides* keyword argument.

        Also note that while the plot is in dB, the *Pxx* array returned is
        linear in power.

        **Example:**

        .. plot:: mpl_examples/pylab_examples/specgram_demo.py
        g      $@i    iÿÿÿÿR]  RŒ   N(   R¯   R±   RÑ  t   specgramRY   R  t   flipudR   Rh  RÊ  Rº  (   R-   R^   RI  RJ  RK  R>  RL  RM  R9  t   xextentRN  RO  RP  RE   t   PxxRR  R\  t   ZRx  Ry  R]  RË  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR\  �"  s    E	
Rk  c         K  sç  | d# k r0 | d# k r0 t | d ƒ r0 d } n  | d# k rð | d# k rð t j | ƒ } t j | ƒ | k } d | k rš t j d d g d d ƒ| d <n  | j \ } }	 d |	 d	 | d	 d g }
 |  j | d
 d d | d |
 d d | �} n^t | d ƒ ra| j	 ƒ  } | d k r,| j
 } | j } qšt j | j ƒ | k } | j
 | } | j | } n9 t j | ƒ } t j | ƒ | k } t j | ƒ \ } } | d# k r¯d } n  | d# k rÄd } n  t j | | d d d | d | | �} |  j | ƒ | j \ } }	 |  j d d d |	 d	 ƒ |  j d | d	 d d ƒ |  j | ƒ | } |  j j d ƒ |  j j ƒ  |  j j d ƒ |  j j t j d d d d d  d! d g d" t ƒ ƒ |  j j t j d d d d d  d! d g d" t ƒ ƒ | S($   s8	  
        Plot the sparsity pattern on a 2-D array.

        Call signature::

          spy(Z, precision=0, marker=None, markersize=None,
              aspect='equal', **kwargs)

        ``spy(Z)`` plots the sparsity pattern of the 2-D array *Z*.

        If *precision* is 0, any non-zero value will be plotted;
        else, values of :math:`|Z| > precision` will be plotted.

        For :class:`scipy.sparse.spmatrix` instances, there is a
        special case: if *precision* is 'present', any value present in
        the array will be plotted, even if it is identically zero.

        The array will be plotted as it would be printed, with
        the first index (row) increasing down and the second
        index (column) increasing to the right.

        By default aspect is 'equal', so that each array element
        occupies a square space; set the aspect kwarg to 'auto'
        to allow the plot to fill the plot box, or to any scalar
        number to specify the aspect ratio of an array element
        directly.

        Two plotting styles are available: image or marker. Both
        are available for full arrays, but only the marker style
        works for :class:`scipy.sparse.spmatrix` instances.

        If *marker* and *markersize* are *None*, an image will be
        returned and any remaining kwargs are passed to
        :func:`~matplotlib.pyplot.imshow`; else, a
        :class:`~matplotlib.lines.Line2D` object will be returned with
        the value of marker determining the marker type, and any
        remaining kwargs passed to the
        :meth:`~matplotlib.axes.Axes.plot` method.

        If *marker* and *markersize* are *None*, useful kwargs include:

        * *cmap*
        * *alpha*

        .. seealso::

            :func:`~matplotlib.pyplot.imshow`
               For image options.

        For controlling colors, e.g., cyan background and red marks,
        use::

          cmap = mcolors.ListedColormap(['c','r'])

        If *marker* or *markersize* is not *None*, useful kwargs include:

        * *marker*
        * *markersize*
        * *color*

        Useful values for *marker* include:

        * 's'  square (default)
        * 'o'  circle
        * '.'  point
        * ','  pixel

        .. seealso::

            :func:`~matplotlib.pyplot.plot`
               For plotting options
        t   tocooR   R9  R™  Rz   RA   t   binaryg      à¿g      à?RÆ  Rô  Rj  R]  RÇ  Rƒ  t   presenti
   R!   R   R"   t
   markersizeRx  Ry  Rz  R{  gÍÌÌÌÌÌð?R  t   nbinsi	   t   stepsi   i   i   t   integerN(   R   RJ   RY   R  RW  R   t   ListedColormapR[   RÊ  Ra  R
  Rw  RÓ  t   nonzeroR   Re   RÛ  R,  R8  Rž   RJ  t   set_yR=   R  t   set_ticks_positionR5  t   mtickert   MaxNLocatorR   R>   (   R-   R`  t	   precisionR"   Rd  Rj  RE   R-  R  R  R]  RF   R%   R_   R^   Ri  t   marks(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   spyõ"  sZ    J'				

c      	   K  sñ   t  j | ƒ } | j \ } } i d d 6d d 6d d 6} | j | ƒ |  j | | � } |  j j d ƒ |  j j ƒ  |  j j	 d ƒ |  j j
 t j d	 d
 d d d d d g d t ƒ ƒ |  j j
 t j d	 d
 d d d d d g d t ƒ ƒ | S(   sø  
        Plot a matrix or array as an image.

        The matrix will be shown the way it would be printed, with the first
        row at the top.  Row and column numbering is zero-based.

        Parameters
        ----------
        Z : array_like shape (n, m)
            The matrix to be displayed.

        Returns
        -------
        image : `~matplotlib.image.AxesImage`

        Other parameters
        ----------------
        kwargs : `~matplotlib.axes.Axes.imshow` arguments
            Sets `origin` to 'upper', 'interpolation' to 'nearest' and
            'aspect' to equal.

        See also
        --------
        imshow : plot an image

        Examples
        --------
        .. plot:: mpl_examples/pylab_examples/matshow.py

        Rƒ  RÇ  Rô  RÆ  Rk  Rj  gÍÌÌÌÌÌð?R  Re  i	   Rf  i   i   i   i
   Rg  (   RY   R  R[   Râ  RÊ  RJ  Rj  R=   R  Rk  R5  Rl  Rm  R   R>   (   R-   R`  RE   R  R  Rf   RË  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   matshowq#  s"    



c         C  s)   g  |  j  ƒ  D] } | j ƒ  r | ^ q S(   N(   RÖ  R2  (   R-   RÓ   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   get_default_bbox_extra_artists¢#  s    c   
      C  s…  g  } |  j  ƒ  s d S|  j ƒ  } | rM | rM | |  | ƒ } |  j | ƒ n
 |  j ƒ  | j |  j | ƒ ƒ |  j j  ƒ  r˜ | j |  j j | ƒ ƒ n  |  j j  ƒ  rÃ | j |  j j | ƒ ƒ n  |  j j  ƒ  rî | j |  j j | ƒ ƒ n  |  j	 j
 | ƒ } | r| j | ƒ n  |  j j
 | ƒ } | r>| j | ƒ n  t j j g  | D]* } | j d k sr| j d k rN| ^ qNƒ }	 |	 S(   s¬  
        Return the tight bounding box of the axes.
        The dimension of the Bbox in canvas coordinate.

        If *call_axes_locator* is *False*, it does not call the
        _axes_locator attribute, which is necessary to get the correct
        bounding box. ``call_axes_locator==False`` can be used if the
        caller is only intereted in the relative size of the tightbbox
        compared to the axes bbox.
        i    N(   R2  R   R  R°  Rx   RÕ   RJ  RK  RL  R=   t   get_tightbboxR>   R˜   R™   R  R‹  RŒ  (
   R-   RN  t   call_axes_locatorR,  R  R  t   bb_xaxist   bb_yaxisRc  t   _bbox(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRs  ¦#  s0    
	:c         C  sq   xj |  j  |  j f D]V } | j ƒ  d k rV | j } | j t j | j | j ƒ ƒ q | j t j	 ƒ  ƒ q Wd S(   s(   Add autoscaling minor ticks to the axes.R�  N(
   R=   R>   R2  R  R6  Rl  t
   LogLocatorR  t   subst   AutoMinorLocator(   R-   R*  R   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   minorticks_onÔ#  s
    	"c         C  s0   |  j  j t j ƒ  ƒ |  j j t j ƒ  ƒ d S(   s!   Remove minor ticks from the axes.N(   R=   R6  Rl  t   NullLocatorR>   (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   minorticks_offÝ#  s    c         O  s   t  j |  | | Ž S(   N(   t   mtrit
   tricontour(   R-   RD   RE   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR  â#  s    c         O  s   t  j |  | | Ž S(   N(   R~  t   tricontourf(   R-   RD   RE   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR€  æ#  s    c         O  s   t  j |  | | Ž S(   N(   R~  t	   tripcolor(   R-   RD   RE   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR�  ê#  s    c         O  s   t  j |  | | Ž d  S(   N(   R~  t   triplot(   R-   RD   RE   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR‚  î#  s    (ü   R‚   Rƒ   R„   RA   R'  t   GrouperR£   R¤   RŠ   R   R   R.   R3   RÕ   Rª   R¦   Rè   Rö   Rü   Rý   Rþ   Rÿ   R   RÞ   R   R  R  R  R§   R  R  R  R¨   R±   Ra  R,   Rb  Rd  Rf  Rž   Rp  Rm  Rr  R    R~  R€  R°  Rº  R»  R¾  R¿  RÀ  RÂ  RÄ  RÅ  RÆ  RÇ  RÌ  RÍ  RÎ  RÐ  RÙ  RÛ  RÚ  Rñ  Rï  Rú  Rü  R½   RÕ  R  R  R  R  R  R  R  R·  R  R  R  R  R  R  R  R!  R¸  R   R>  RZ  R[  R\  R]  R^  R_  R`  R   t   dedent_interpdRñ   Rq  Ru  R~  R¶  Rµ  R  R€  R�  R‚  Rt  RŽ  R+  R,  R‚  R‘   R’   R“   R¸   R�  R’  R”  R–  R˜  Rœ  R�  Rž  Ru  R�  R7  R8  Rƒ  R¹   R¢  R£  R¤  R¥  R¦  R§  Rª  R«  R­  R®  R±  R²  R³  Rµ  R¶   R·  R·   R¿  RÀ  RÐ  RÒ  R´   RÖ  R  RÚ  RÜ  Rß  Rä  Rå  Ré  Rê  Rì  R   Rò  Rô  Rö  Rø  Rù  t   dedentR	  R  R%  R)   R)  R1  R3  R4  R6  RÑ  t   detrend_noneR5  RL  RO  RP  RV  Rr  Rs  Rx  R�  R   Rf  R#  R@  RY   Rö  R€  R‚  R†  Rƒ  R„  t   quiverkey_docRŠ  R‡  t
   quiver_docRŒ  R‹  R’  R‘  R—  RS   R·  R¾  RÊ  t   staticmethodRÒ  RÕ  Rï  Rû  RÉ  Rü  Rý  t   contour_docRþ  Rÿ  RÊ  R  R  R  R  R  R  R=  RD  t   window_hanningRG  RV  RZ  R\  Rp  Rq  Rr  Rs  R{  R}  R  R~  t   TriContourSett   tricontour_docR€  R�  R‚  (    (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR…   K  st  	€				
		(					!							€					;						‘	I															-							+											9		)>z										'	X'L								Z							[													
			G							5		R??77WY	§‹H=44?	W	Ï	"ÿ H-	W		¯	ÿ J	ÿ _©			ÿ ½$				3Šm	‰:ÿ 	�º									ÿ ÒYMI=	T	{	1	.							(   t   GridSpect   SubplotSpect   SubplotBasec           B  sƒ   e  Z d  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z d „  Z RS(   s¶   
    Base class for subplots, which are :class:`Axes` instances with
    additional methods to facilitate generating and manipulating a set
    of :class:`Axes` within a figure.
    c   	      O  s®  | |  _  t | ƒ d k r­ t | d t ƒ r> | d |  _ q„y2 t t | d ƒ ƒ } t t | ƒ \ } } } Wn t k
 r� t d ƒ ‚ n Xt	 | | ƒ | d |  _ n× t | ƒ d k rq| \ } } } t | ƒ } t | ƒ } t | t
 ƒ rNt | ƒ d k rNg  | D] } t | ƒ ^ q} t	 | | ƒ | d d | d !|  _ q„t	 | | ƒ t | ƒ d |  _ n t d | f ƒ ‚ |  j ƒ  |  j j |  | |  j | � d S(   s  
        *fig* is a :class:`matplotlib.figure.Figure` instance.

        *args* is the tuple (*numRows*, *numCols*, *plotNum*), where
        the array of subplots in the figure has dimensions *numRows*,
        *numCols*, and where *plotNum* is the number of the subplot
        being created.  *plotNum* starts at 1 in the upper left
        corner and increases to the right.


        If *numRows* <= *numCols* <= *plotNum* < 10, *args* can be the
        decimal integer *numRows* * 100 + *numCols* * 10 + *plotNum*.
        i   i    s4   Single argument to subplot must be a 3-digit integeri   i   s"   Illegal argument(s) to subplot: %sN(   Rù   Rq   R—   R�  t   _subplotspecR   R   t   mapR   RŽ  R‡   t   update_paramst   _axes_classR.   t   figbox(	   R-   RÀ   RD   RE   R   t   rowst   colst   numRn  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR.   ý#  s,    	!(#
c         C  s`   d „  } g  |  j  j ƒ  D] } | | ƒ r | ^ q d } t ƒ  | f |  j ƒ  g } t | ƒ S(   Nc         S  s   t  |  t ƒ o t  |  t ƒ S(   N(   t
   issubclassR…   R�  (   R%   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRÏ  /$  s   i    (   t	   __class__t   mrot!   _PicklableSubplotClassConstructorR/   R‡   (   R-   t   not_subplotbaseR%   t
   axes_classRW  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt
   __reduce__-$  s    	2c         C  s/   |  j  ƒ  j ƒ  \ } } } } | | | d f S(   s"   get the subplot geometry, eg 2,2,3i   (   t   get_subplotspect   get_geometry(   R-   R–  R—  t   num1t   num2(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR¡  7$  s    c         C  s8   t  | | ƒ | d |  _ |  j ƒ  |  j |  j ƒ d S(   s2   change subplot geometry, e.g., from 1,1,1 to 2,2,3i   N(   RŽ  R‘  R“  R  R•  (   R-   t   numrowst   numcolsR˜  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   change_geometry=$  s    
c         C  s   |  j  S(   s8   get the SubplotSpec instance associated with the subplot(   R‘  (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR   C$  s    c         C  s   | |  _  d S(   s8   set the SubplotSpec instance associated with the subplotN(   R‘  (   R-   t   subplotspec(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   set_subplotspecG$  s    c         C  s@   |  j  ƒ  j |  j d t ƒ\ |  _ |  _ |  _ |  _ |  _ d S(   s0   update the subplot position from fig.subplotparst
   return_allN(	   R   R  Rù   R   R•  t   rowNumt   colNumRÏ  RÐ  (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR“  K$  s    c         C  s   |  j  d k S(   Ni    (   R«  (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   is_first_colR$  s    c         C  s   |  j  d k S(   Ni    (   Rª  (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   is_first_rowU$  s    c         C  s   |  j  |  j d k S(   Ni   (   Rª  RÏ  (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   is_last_rowX$  s    c         C  s   |  j  |  j d k S(   Ni   (   R«  RÐ  (   R-   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   is_last_col[$  s    c         C  sd   |  j  ƒ  } |  j ƒ  } x! |  j ƒ  D] } | j | ƒ q% Wx! |  j ƒ  D] } | j | ƒ qI Wd S(   sÑ   
        set the visible property on ticklabels so xticklabels are
        visible only if the subplot is in the last row and yticklabels
        are visible only if the subplot is in the first column
        N(   R®  R¬  R˜  R  R¦  (   R-   t   lastrowt   firstcolRÆ   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   label_outer_$  s    c         O  sp   d d l  m } |  j ƒ  f | } | |  j | | Ž \ } } } t | ƒ |  j | | Ž } |  j j | ƒ | S(   sN   
        make a twinx axes of self. This is used for twinx and twiny.
        iÿÿÿÿ(   t   process_projection_requirements(   t   matplotlib.projectionsR³  R   Rù   t   subplot_class_factoryt   add_subplot(   R-   R  RE   R³  t   projection_classRN   R  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR  m$  s    (   R‚   Rƒ   R„   R.   RŸ  R¡  R¦  R   R¨  R“  R¬  R­  R®  R¯  R²  R  (    (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyR�  ö#  s   	0	
										c         C  sg   |  d  k r t }  n  t j |  ƒ } | d  k rc t d |  j t |  f i |  d 6ƒ } | t |  <n  | S(   Ns	   %sSubplotR”  (   R   R…   t   _subplot_classesRu   t   typeR‚   R�  (   Rž  t	   new_class(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRµ  ~$  s    		Rœ  c           B  s   e  Z d  Z d „  Z RS(   s¬   
    This stub class exists to return the appropriate subplot
    class when __call__-ed with an axes class. This is purely to
    allow Pickling of Axes and Subplots.
    c         C  s"   t  ƒ  } t | ƒ } | | _ | S(   N(   Rœ  Rµ  Rš  (   R-   Rž  t   subplot_instancet   subplot_class(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRG   š$  s    		(   R‚   Rƒ   R„   RG   (    (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyRœ  ”$  s   t   Subplot(p   t
   __future__R    R   Rv  R„  t   operatorR   R4   t   numpyRY   R   RÈ  R   t   matplotlib.artistRÓ   R•   R   t   matplotlib.axisRº  RÚ   t   matplotlib.cbookR'  t   matplotlib.collectionsRÊ   Rý  t   matplotlib.colorsR   R   t   matplotlib.contourRÉ  Rü  t   matplotlib.datest   datesRî  R   t   matplotlib.font_managerRE  t   matplotlib.imageR³  RD  t   matplotlib.legendRP  RD  t   matplotlib.linesRÉ   R   t   matplotlib.markerst   markersR.  t   matplotlib.mlabRÑ  t   matplotlib.pathRè  Rã  t   matplotlib.patchesRÌ   Rl   t   matplotlib.spinesR©   R  t   matplotlib.quiverRŠ  Rƒ  t   matplotlib.scaleR‹   R’   t   matplotlib.stackplotRŒ  R‹  t   matplotlib.streamplotR’  R‘  t   matplotlib.tableR  R  t   matplotlib.textR   RH  t   matplotlib.tickert   tickerRl  t   matplotlib.transformst
   transformsR˜   t   matplotlib.trit   triR~  t   matplotlib.containerR   R   R   R   R   R,  R   R'   RS  R(   R–   R…   t   matplotlib.gridspecRŽ  R�  R�  R¸  R   Rµ  R½  Rœ  t   interpdRâ  t   kwdoc(    (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/axes.pyt   <module>   s¬   					
	T¾ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ Ê…	