ó
±éRc           @  sc  d  Z  d d l m Z m Z d d l Z d d l Z d d l m Z d d l m	 Z	 d d l
 j Z d d l
 m Z d d l m Z m Z d d l m Z d d	 l m Z d d
 l m Z m Z m Z d d l m Z m Z d d l j Z d d l m Z m Z m Z d d l m Z m  Z  d d l! m" Z" d d l
 m# Z# d d l$ m% Z% d d l& m' Z' e( d „ Z) d „  Z* e j+ j, d d ƒ d „  Z- d e f d „  ƒ  YZ. e j+ j, d e j/ e. ƒ ƒ e j0 e. j1 ƒ d e. f d „  ƒ  YZ2 e j+ j, d e j/ e2 ƒ ƒ d e3 f d „  ƒ  YZ4 d e3 f d „  ƒ  YZ5 d e. e5 f d „  ƒ  YZ6 e j+ j, d e6 j1 j  ƒ d S(    s)   
Classes for including text in a figure.
iÿÿÿÿ(   t   divisiont   print_functionN(   t   cbook(   t   rcParams(   t   Artist(   t   is_string_liket   maxdict(   t	   docstring(   t   FontProperties(   t   bbox_artistt   YAArrowt   FancyBboxPatch(   t   FancyArrowPatcht	   Rectangle(   t   Affine2Dt   Bboxt	   Transform(   t   BboxBaset   BboxTransformTo(   t   Line2D(   t   allow_rasterization(   t   RendererBase(   t   TextPathc         K  s-   | d k	 r |  j | ƒ n  |  j | ƒ |  S(   sE   Return an override dict.  See :func:`~pyplot.text' docstring for infoN(   t   Nonet   update(   t   overridet   fontdictt   kwargs(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   _process_text_args   s    c         C  s>   |  d k r d } n! |  d k r* d } n t |  ƒ } | d S(   sy   
    Return the text angle as float.

    *rotation* may be 'horizontal', 'vertical', or a numeric value in degrees.
    t
   horizontalg        t   verticalg     €V@ih  N(   R   N(   R   t   float(   t   rotationt   angle(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   get_rotation(   s    		t   Textsý  
    ========================== ================================================
    Property                   Value
    ========================== ================================================
    alpha                      float or None
    animated                   [True | False]
    backgroundcolor            any matplotlib color
    bbox                       rectangle prop dict plus key 'pad' which is a
                               pad in points
    clip_box                   a matplotlib.transform.Bbox instance
    clip_on                    [True | False]
    color                      any matplotlib color
    family                     ['serif' | 'sans-serif' | 'cursive' |
                                'fantasy' | 'monospace']
    figure                     a matplotlib.figure.Figure instance
    fontproperties             a matplotlib.font_manager.FontProperties
                               instance
    horizontalalignment or ha  ['center' | 'right' | 'left']
    label                      any string
    linespacing                float
    lod                        [True | False]
    multialignment             ['left' | 'right' | 'center' ]
    name or fontname           string eg,
                               ['Sans' | 'Courier' | 'Helvetica' ...]
    position                   (x,y)
    rotation                   [ angle in degrees 'vertical' | 'horizontal'
    rotation_mode              [ None | 'anchor']
    size or fontsize           [size in points | relative size eg 'smaller',
                                                                  'x-large']
    style or fontstyle         [ 'normal' | 'italic' | 'oblique']
    text                       string
    transform                  a matplotlib.transform transformation instance
    variant                    ['normal' | 'small-caps']
    verticalalignment or va    ['center' | 'top' | 'bottom' | 'baseline']
    visible                    [True | False]
    weight or fontweight       ['normal' | 'bold' | 'heavy' | 'light' |
                                'ultrabold' | 'ultralight']
    x                          float
    y                          float
    zorder                     any number
    ========================== ===============================================
    c         C  sR  g  } g  } t  j |  j ƒ  ƒ } t j ƒ  j | ƒ } |  j | ƒ \ } } } x† | D]~ \ }	 }
 } } |
 \ } } | j | | f ƒ \ } } | | 8} | | | | } } | j | | g ƒ | j | | g ƒ qV Wt	 | ƒ t	 | ƒ } } t
 | ƒ | t
 | ƒ | } } t j ƒ  j | ƒ } | j | | f ƒ \ } } | | | | f S(   s®   
    Calculate the bounding box of the text. Unlike
    :meth:`matplotlib.text.Text.get_extents` method, The bbox size of
    the text before the rotation is calculated.
    (   t   npt   deg2radR"   t   mtransformsR   t   rotatet   _get_layoutt   transform_pointt   extendt   mint   max(   t   textt   renderert   projected_xst   projected_yst   thetat   trt   _t   partst   dt   tt   wht   xt   yt   wt   ht   xt1t   yt1t   xt2t   yt2t   xt_boxt   yt_boxt   w_boxt   h_boxt   x_boxt   y_box(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   _get_textboxl   s"    
!c           B  sÒ  e  Z d  Z d Z e d ƒ Z d „  Z d d d dN d d dN dN dN dN dN 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 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) „  Z* d* „  Z+ d+ „  Z, d, „  Z- d- „  Z. d. „  Z/ dN dN d/ „ Z0 d0 „  Z1 d1 „  Z2 d2 „  Z3 d3 „  Z4 d4 „  Z5 d5 „  Z6 d6 „  Z7 d7 „  Z8 d8 „  Z9 d9 „  Z: d: „  Z; d; „  Z< d< „  Z= d= „  Z> d> „  Z? d? „  Z@ d@ „  ZA dA „  ZB dB „  ZC dC „  ZD dD „  ZE dE „  ZF dF „  ZG dG „  ZH dH „  ZI dI „  ZJ dJ „  ZK eL dK „  ƒ ZM dL „  ZN dM „  ZO RS(O   sK   
    Handle storing and drawing of text in window or data coordinates.
    i   i2   c         C  s    d |  j  |  j t |  j ƒ f S(   Ns   Text(%g,%g,%s)(   t   _xt   _yt   reprt   _text(   t   self(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   __str__—   s    i    t    t   baselinet   leftc         K  s
  t  j |  ƒ | | |  _ |  _ | d k r9 t d } n  | d k rQ t ƒ  } n t | ƒ rl t | ƒ } n  |  j | ƒ |  j	 | ƒ | |  _
 | |  _ | |  _ |	 |  _ | |  _ d |  _ d |  _ d |  _ |
 d k rã d }
 n  |
 |  _ |  j | ƒ |  j | ƒ d S(   s•   
        Create a :class:`~matplotlib.text.Text` instance at *x*, *y*
        with string *text*.

        Valid kwargs are
        %(Text)s
        s
   text.colorg333333ó?N(   R   t   __init__RG   RH   R   R   R   R   t   set_textt	   set_colort   _verticalalignmentt   _horizontalalignmentt   _multialignmentt	   _rotationt   _fontpropertiest   _bboxt   _bbox_patcht	   _renderert   _linespacingt   set_rotation_modeR   (   RK   R8   R9   R-   t   colort   verticalalignmentt   horizontalalignmentt   multialignmentt   fontpropertiesR    t   linespacingt   rotation_modeR   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRP   š   s.    										c         C  s#   t  t |  ƒ j ƒ  } d  | d <| S(   NRZ   (   t   superR#   t   __getstate__R   (   RK   R5   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRe   É   s    
c         C  s
  t  |  j ƒ r |  j |  | ƒ S|  j ƒ  s; |  j d k rE t i  f S|  j ƒ  j \ } } } } | | | | } } | j | j	 } }	 | | k oŸ | k n o½ | |	 k o» | k n }
 i  } |  j
 r |  j
 j | ƒ \ } } |
 pð | }
 | | d <n  |
 | f S(   sÏ   Test whether the mouse event occurred in the patch.

        In the case of text, a hit is true anywhere in the
        axis-aligned bounding-box containing the text.

        Returns True or False.
        t
   bbox_patchN(   t   callablet	   _containst   get_visibleRZ   R   t   Falset   get_window_extentt   boundsR8   R9   RY   t   contains(   RK   t
   mouseeventt   lt   bR:   R;   t   rR6   R8   R9   t   insidet   cattrt   patch_insidet   patch_cattr(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRm   Ï   s    
8	c         C  s+   |  j  ƒ  \ } } |  j ƒ  j | | f ƒ S(   sD   get the (possibly unit converted) transformed x, y in display coords(   t   get_positiont   get_transformR)   (   RK   R8   R9   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   _get_xy_displayí   s    c         C  s!   |  j  d  k	 r |  j  S|  j Sd  S(   N(   RU   R   RT   (   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   _get_multialignmentò   s    c         C  s   t  |  j ƒ S(   s)   return the text angle as float in degrees(   R"   RV   (   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR"   ø   s    c         C  s>   | d k s | d k r$ | |  _ n t d t | ƒ ƒ ‚ d S(   s1  
        set text rotation mode. If "anchor", the un-rotated text
        will first aligned according to their *ha* and
        *va*, and then will be rotated with the alignement
        reference point as a origin. If None (default), the text will be
        rotated first then will be aligned.
        t   anchort   defaults   Unknown rotation_mode : %sN(   s   anchors   default(   R   t   _rotation_modet
   ValueErrorRI   (   RK   t   m(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR\   ü   s    c         C  s   |  j  S(   s   get text rotation mode(   R|   (   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   get_rotation_mode	  s    c         C  sz   t  j |  | ƒ | j |  _ | j |  _ | j |  _ | j |  _ | j j ƒ  |  _ | j |  _ | j	 |  _	 | j
 |  _
 d S(   s"   Copy properties from other to selfN(   R   t   update_fromt   _colorRU   RS   RT   RW   t   copyRV   t   _pickerR[   (   RK   t   other(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR€     s    c   1        s[  |  j  ƒ  } | |  j k r& |  j | Sg  } d \ } } d \ } } d \ } }	 |  j ƒ  j d ƒ }
 t j t |
 ƒ d f ƒ } t j t |
 ƒ d f ƒ } |  j ƒ  rê d d l m	 } t
 ˆ  | ƒ rØ ‡  f d †  } qó ‡  f d †  } n	 ˆ  j } | d	 |  j d
 t ƒ\ } } } | | |  j } d } x÷ t |
 ƒ D]é \ } } |  j | ƒ \ } } | rƒ| | |  j d
 | ƒ\ } } } n d \ } } } t | | ƒ } t | | ƒ } | | f | | <| | | } | t | | | |  j ƒ 8} | | | | f | | <| | 8} t | | ƒ } | } q8W| d d } | d d | d d } | | }	 | | } t ƒ  j |  j ƒ  ƒ } t j t |
 ƒ d f ƒ } | d d … d d … f | (t |
 ƒ d k rX|  j ƒ  } | d k r| d d … d f c | d | d d … d f d 7<qX| d k rX| d d … d f c | | d d … d f 7<qXn  t j | | f | | f | | f | | f g t j ƒ }  |  d d … d f c | 8<| j |  ƒ }! |! d d … d f }" |! d d … d f }# |" j ƒ  |" j ƒ  } } |# j ƒ  |# j ƒ  } } | | } | | }	 |  j }$ |  j }% |  j ƒ  }& |& d k rð|$ d k ru| | d }' n |$ d k rŽ| | }' n | }' |% d k r±| |	 d } q´|% d k rÊ| |	 } q´|% d k rç| |	 | } q´| } nÄ |  d \ }( }) |  d \ }* }+ |$ d k r-|( |* d }' n |$ d k rB|* }' n |( }' |% d k re|) |+ d } n4 |% d k rz|+ } n |% d k r“|+ | } n |) } | j |' | f ƒ \ }' } | |' 8} | | 8} t j | | | |	 ƒ }, | j | ƒ }- |- |' | f 8}- |- d d … d f |- d d … d f }. }/ |, t  |
 | |. |/ ƒ | f }0 |0 |  j | <|0 S(   s³   
        return the extent (bbox) of the text together with
        multile-alignment information. Note that it returns a extent
        of a rotated text when necessary.
        g        s   
i   i   iÿÿÿÿ(   t   MixedModeRendererc            s   t  j ˆ  j |  | Ž S(   N(   R   t   get_text_width_height_descentRZ   (   t   klR   (   R.   (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR†   0  s    c            s   t  j ˆ  |  | Ž S(   N(   R   R†   (   R‡   R   (   R.   (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR†   5  s    t   lpt   ismathi    i   i   Nt   centerg       @t   rightRz   t   topRN   (   g        g        (   g        g        (   g        g        (   i    i    i    (!   t   get_prop_tupt   _cachedt   get_textt   splitR$   t   zerost   lent   get_path_effectst!   matplotlib.backends.backend_mixedR…   t
   isinstanceR†   RW   Rj   R[   t	   enumeratet   is_math_textR,   R   t
   rotate_degR"   Ry   t   arrayt   float_t	   transformR+   RT   RS   R   R)   R   t   from_boundst   zip(1   RK   R.   t   keyt   horizLayoutt   thisxt   thisyt   xmint   ymint   widtht   heightt   linest   whsR…   R†   t   tmpt   lp_ht   lp_blt   offsetyRN   t   it   linet
   clean_lineR‰   R:   R;   R5   t   descentt   ymaxt   xmaxt   Mt   offsetLayoutt   malignt   cornersHorizt   cornersRotatedt   txst   tyst   halignt   valignRc   t   offsetxt   xmin1t   ymin1t   xmax1t   ymax1t   bboxt   xyst   xst   yst   ret(    (   R.   sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR(     sÊ    			



;6'

					

-c         C  s—   | d k	 r� d | k r� | j ƒ  } | j d ƒ } | j d d ƒ } t d d d d | d | d t j ƒ  | �|  _ d |  _ n d |  _ | |  _ d S(   s«  
        Draw a bounding box around self.  rectprops are any settable
        properties for a rectangle, eg facecolor='red', alpha=0.5.

          t.set_bbox(dict(facecolor='red', alpha=0.5))

        If rectprops has "boxstyle" key. A FancyBboxPatch
        is initialized with rectprops and will be drawn. The mutation
        scale of the FancyBboxPath is set to the fontsize.

        ACCEPTS: rectangle prop dict
        t   boxstylet   bbox_transmuterg        g      ð?R›   N(   g        g        (   R   R‚   t   popR   R&   t   IdentityTransformRY   RX   (   RK   t	   rectpropst   propsRÅ   RÆ   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   set_bbox¾  s    			c         C  s   |  j  S(   sk   
        Return the bbox Patch object. Returns None if the the
        FancyBboxPatch is not made.
        (   RY   (   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   get_bbox_patchâ  s    c         C  s  |  j  r|  j ƒ  } t |  j |  j ƒ ƒ } t |  j |  j ƒ ƒ } | j | | f ƒ \ } } t |  | ƒ \ } } } } |  j  j	 d d | | ƒ t
 j |  j ƒ  ƒ }	 t j ƒ  j |	 ƒ }
 |
 j | | | | ƒ }
 |  j  j |
 ƒ | j |  j ƒ  ƒ } |  j  j | ƒ n  d S(   sÇ   
        Update the location and the size of the bbox. This method
        should be used when the position and size of the bbox needs to
        be updated before actually drawing the bbox.
        g        N(   RY   Rw   R   t   convert_xunitsRG   t   convert_yunitsRH   R)   RF   t
   set_boundsR$   R%   R"   R&   R   R'   t	   translatet   set_transformt   points_to_pixelst   get_sizet   set_mutation_scale(   RK   R.   t   transt   posxt   posyRD   RE   RB   RC   R1   R2   t   fontsize_in_pixel(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   update_bbox_position_sizeé  s    	c         C  sÁ   t  |  | ƒ \ } } } } |  j j d d | | ƒ t j |  j ƒ  ƒ } t j ƒ  j | ƒ }	 |	 j	 | | | | ƒ }	 |  j j
 |	 ƒ | j |  j ƒ  ƒ }
 |  j j |
 ƒ |  j j | ƒ d S(   sX    Update the location and the size of the bbox
        (FancyBoxPatch), and draw
        g        N(   RF   RY   RÏ   R$   R%   R"   R&   R   R'   RÐ   RÑ   RÒ   RÓ   RÔ   t   draw(   RK   R.   RÖ   R×   RD   RE   RB   RC   R1   R2   RØ   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt
   _draw_bbox  s    c         C  sî  | d k	 r | |  _ n  |  j ƒ  s( d S|  j ƒ  j ƒ  d k rD d S| j d |  j ƒ  ƒ |  j | ƒ \ } } } |  j ƒ  } t	 |  j
 |  j ƒ ƒ } t	 |  j |  j ƒ ƒ } | j | | f ƒ \ } } | j ƒ  \ } }	 |  j rú |  j | | | ƒ n  | j ƒ  }
 |
 j |  j ƒ  ƒ |
 j |  j ƒ  ƒ |
 j |  j ƒ |  j |
 ƒ |  j rht |  | |  j ƒ n  |  j ƒ  } x\| D]T\ } } } } t j | ƒ s{t j | ƒ r³q{n  | | } | | } | j ƒ  rà|	 | } n  |  j  | ƒ \ } } |  j! ƒ  rrxË |  j! ƒ  D]] } t" d rC| j# | |
 | | | |  j$ | ƒ q| j% | |
 | | | |  j$ | d | ƒqWq{t" d r¤| j# |
 | | | |  j$ | d |  ƒq{| j% |
 | | | |  j$ | d | d |  ƒq{W|
 j& ƒ  | j' d ƒ d S(   sI   
        Draws the :class:`Text` object to the given *renderer*.
        NRM   R-   s   text.usetexR‰   t   mtext((   R   RZ   Ri   R�   t   stript
   open_groupt   get_gidR(   Rw   R   RÍ   RG   RÎ   RH   R)   t   get_canvas_width_heightRY   RÛ   t   new_gct   set_foregroundt	   get_colort	   set_alphat	   get_alphat   set_urlt   _urlt   _set_gc_clipRX   R	   R"   R$   t   isfinitet   flipyR—   R“   R   t   draw_texRW   t	   draw_textt   restoret   close_group(   RK   R.   RÀ   t   infoR¯   RÕ   RÖ   R×   t   canvaswt   canvasht   gcR!   R­   R7   R8   R9   R®   R‰   t   path_effect(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRÚ     s^    		 




c         C  s   |  j  S(   s   Return the color of the text(   R�   (   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRã   [  s    c         C  s   |  j  S(   s7   Return the :class:`~font_manager.FontProperties` object(   RW   (   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   get_fontproperties_  s    c         C  s
   |  j  ƒ  S(   s   alias for get_fontproperties(   Rô   (   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   get_font_propertiesc  s    c         C  s   |  j  j ƒ  S(   s5   Return the list of font families used for font lookup(   RW   t
   get_family(   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRö   g  s    c         C  s
   |  j  ƒ  S(   s   alias for get_family(   Rö   (   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   get_fontfamilyk  s    c         C  s   |  j  j ƒ  S(   s   Return the font name as string(   RW   t   get_name(   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRø   o  s    c         C  s   |  j  j ƒ  S(   s   Return the font style as string(   RW   t	   get_style(   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRù   s  s    c         C  s   |  j  j ƒ  S(   s   Return the font size as integer(   RW   t   get_size_in_points(   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRÓ   w  s    c         C  s   |  j  j ƒ  S(   s#   Return the font variant as a string(   RW   t   get_variant(   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRû   {  s    c         C  s
   |  j  ƒ  S(   s   alias for get_variant(   Rû   (   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   get_fontvariant  s    c         C  s   |  j  j ƒ  S(   s'   Get the font weight as string or number(   RW   t
   get_weight(   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRý   ƒ  s    c         C  s
   |  j  ƒ  S(   s   alias for get_name(   Rø   (   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   get_fontname‡  s    c         C  s
   |  j  ƒ  S(   s   alias for get_style(   Rù   (   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   get_fontstyle‹  s    c         C  s
   |  j  ƒ  S(   s   alias for get_size(   RÓ   (   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   get_fontsize�  s    c         C  s
   |  j  ƒ  S(   s   alias for get_weight(   Rý   (   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   get_fontweight“  s    c         C  s   |  j  j ƒ  S(   s*   Get the font stretch as a string or number(   RW   t   get_stretch(   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR  —  s    c         C  s
   |  j  ƒ  S(   s   alias for get_stretch(   R  (   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   get_fontstretch›  s    c         C  s
   |  j  ƒ  S(   s!   alias for get_horizontalalignment(   t   get_horizontalalignment(   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   get_haŸ  s    c         C  s   |  j  S(   sq   
        Return the horizontal alignment as string.  Will be one of
        'left', 'center' or 'right'.
        (   RT   (   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR  £  s    c         C  s:   t  |  j |  j ƒ ƒ } t  |  j |  j ƒ ƒ } | | f S(   s5   Return the position of the text as a tuple (*x*, *y*)(   R   RÍ   RG   RÎ   RH   (   RK   R8   R9   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRv   ª  s    c         C  sd   |  j  ƒ  \ } } | | |  j ƒ  |  j |  j |  j t |  j ƒ |  j |  j |  j	 j
 t |  j ƒ f S(   sô   
        Return a hashable tuple of properties.

        Not intended to be human readable, but useful for backends who
        want to cache derived information about text (eg layouts) and
        need to know if the text has changed.
        (   Rv   R�   R�   RS   RT   t   hashRW   RV   R|   t   figuret   dpit   idRZ   (   RK   R8   R9   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR�   °  s    c         C  s   |  j  S(   s   Get the text as string(   RJ   (   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR�   À  s    c         C  s
   |  j  ƒ  S(   s&   alias for :meth:`getverticalalignment`(   t   get_verticalalignment(   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   get_vaÄ  s    c         C  s   |  j  S(   s{   
        Return the vertical alignment as string.  Will be one of
        'top', 'center', 'bottom' or 'baseline'.
        (   RS   (   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR
  È  s    c         C  s2  |  j  ƒ  s t j ƒ  S| d k	 r= |  j j } | |  j _ n  |  j ƒ  j ƒ  d k r} |  j ƒ  \ } } t j	 | | d d ƒ S| d k	 r• | |  _
 n  |  j
 d k r³ t d ƒ ‚ n  |  j |  j
 ƒ \ } } } |  j ƒ  \ }	 }
 |  j ƒ  j |	 |
 f ƒ \ }	 }
 | j |	 |
 ƒ } | d k	 r.| |  j _ n  | S(   so  
        Return a :class:`~matplotlib.transforms.Bbox` object bounding
        the text, in display units.

        In addition to being used internally, this is useful for
        specifying clickable regions in a png file on a web page.

        *renderer* defaults to the _renderer attribute of the text
        object.  This is not assigned until the first execution of
        :meth:`draw`, so you must use this kwarg if you want
        to call :meth:`get_window_extent` prior to the first
        :meth:`draw`.  For getting web page regions, it is
        simpler to call the method after saving the figure.

        *dpi* defaults to self.figure.dpi; the renderer dpi is
        irrelevant.  For the web application, if figure.dpi is not
        the value used when saving the figure, then the value that
        was used must be specified as the *dpi* argument.
        RM   i    s%   Cannot get window extent w/o rendererN(   Ri   R   t   unitR   R  R  R�   RÝ   Rx   Rœ   RZ   t   RuntimeErrorR(   Rv   Rw   R)   t
   translated(   RK   R.   R  t   dpi_origt   txt   tyRÀ   Rï   R¯   R8   R9   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRk   Ï  s&    
!c         C  sG   |  j  d k r* t d | d | ƒ |  _  n |  j  j t d | ƒ ƒ d S(   sâ   
        Set the background color of the text by updating the bbox.

        .. seealso::

            :meth:`set_bbox`
               To change the position of the bounding box.

        ACCEPTS: any matplotlib color
        t	   facecolort	   edgecolorN(   RX   R   t   dictR   (   RK   R]   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   set_backgroundcolorú  s    c         C  s;   y t  | ƒ Wn t k
 r- t | ƒ } n X| |  _ d S(   s]   
        Set the foreground color of the text

        ACCEPTS: any matplotlib color
        N(   R  t	   TypeErrort   tupleR�   (   RK   R]   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRR   
  s
    c         C  s   |  j  | ƒ d S(   s!   alias for set_horizontalalignmentN(   t   set_horizontalalignment(   RK   t   align(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   set_ha  s    c         C  s8   d } | | k r+ t  d t | ƒ ƒ ‚ n  | |  _ d S(   sj   
        Set the horizontal alignment to one of

        ACCEPTS: [ 'center' | 'right' | 'left' ]
        RŠ   R‹   RO   s&   Horizontal alignment must be one of %sN(   s   centers   rights   left(   R}   t   strRT   (   RK   R  t   legal(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR    s
    c         C  s   |  j  | ƒ d S(   s   alias for set_verticalalignmentN(   t   set_multialignment(   RK   R  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   set_ma'  s    c         C  s8   d } | | k r+ t  d t | ƒ ƒ ‚ n  | |  _ d S(   s1  
        Set the alignment for multiple lines layout.  The layout of the
        bounding box of all the lines is determined bu the horizontalalignment
        and verticalalignment properties, but the multiline text within that
        box can be

        ACCEPTS: ['left' | 'right' | 'center' ]
        RŠ   R‹   RO   s&   Horizontal alignment must be one of %sN(   s   centers   rights   left(   R}   R  RU   (   RK   R  R  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR  +  s
    	c         C  s   | |  _  d S(   sŽ   
        Set the line spacing as a multiple of the font size.
        Default is 1.2.

        ACCEPTS: float (multiple of font size)
        N(   R[   (   RK   t   spacing(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   set_linespacing:  s    c         C  s   |  j  j | ƒ d S(   s¨  
        Set the font family.  May be either a single string, or a list
        of strings in decreasing priority.  Each string may be either
        a real font name or a generic font class name.  If the latter,
        the specific font names will be looked up in the
        :file:`matplotlibrc` file.

        ACCEPTS: [FONTNAME | 'serif' | 'sans-serif' | 'cursive' | 'fantasy' |
                  'monospace' ]
        N(   RW   t
   set_family(   RK   t   fontname(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR!  C  s    c         C  s   |  j  j | ƒ d S(   sv   
        Set the font variant, either 'normal' or 'small-caps'.

        ACCEPTS: [ 'normal' | 'small-caps' ]
        N(   RW   t   set_variant(   RK   t   variant(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR#  P  s    c         C  s   |  j  | ƒ S(   s   alias for set_variant(   R#  (   RK   R$  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   set_fontvariantX  s    c         C  s   |  j  | ƒ S(   s   alias for set_family(   R!  (   RK   R"  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   set_name\  s    c         C  s   |  j  | ƒ d S(   s   alias for set_familyN(   R!  (   RK   R"  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   set_fontname`  s    c         C  s   |  j  j | ƒ d S(   sZ   
        Set the font style.

        ACCEPTS: [ 'normal' | 'italic' | 'oblique']
        N(   RW   t	   set_style(   RK   t	   fontstyle(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR(  d  s    c         C  s   |  j  | ƒ S(   s   alias for set_style(   R(  (   RK   R)  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   set_fontstylel  s    c         C  s   |  j  j | ƒ d S(   s  
        Set the font size.  May be either a size string, relative to
        the default font size, or an absolute font size in points.

        ACCEPTS: [size in points | 'xx-small' | 'x-small' | 'small' |
                  'medium' | 'large' | 'x-large' | 'xx-large' ]
        N(   RW   t   set_size(   RK   t   fontsize(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR+  p  s    c         C  s   |  j  | ƒ S(   s   alias for set_size(   R+  (   RK   R,  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   set_fontsizez  s    c         C  s   |  j  j | ƒ d S(   s.  
        Set the font weight.

        ACCEPTS: [a numeric value in range 0-1000 | 'ultralight' | 'light' |
                  'normal' | 'regular' | 'book' | 'medium' | 'roman' |
                  'semibold' | 'demibold' | 'demi' | 'bold' | 'heavy' |
                  'extra bold' | 'black' ]
        N(   RW   t
   set_weight(   RK   t   weight(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR.  ~  s    	c         C  s   |  j  | ƒ S(   s   alias for set_weight(   R.  (   RK   R/  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   set_fontweight‰  s    c         C  s   |  j  j | ƒ d S(   sR  
        Set the font stretch (horizontal condensation or expansion).

        ACCEPTS: [a numeric value in range 0-1000 | 'ultra-condensed' |
                  'extra-condensed' | 'condensed' | 'semi-condensed' |
                  'normal' | 'semi-expanded' | 'expanded' | 'extra-expanded' |
                  'ultra-expanded' ]
        N(   RW   t   set_stretch(   RK   t   stretch(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR1  �  s    	c         C  s   |  j  | ƒ S(   s   alias for set_stretch(   R1  (   RK   R2  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   set_fontstretch˜  s    c         C  s&   |  j  | d ƒ |  j | d ƒ d S(   sQ   
        Set the (*x*, *y*) position of the text

        ACCEPTS: (x,y)
        i    i   N(   t   set_xt   set_y(   RK   t   xy(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   set_positionœ  s    c         C  s   | |  _  d S(   sJ   
        Set the *x* position of the text

        ACCEPTS: float
        N(   RG   (   RK   R8   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR4  ¥  s    c         C  s   | |  _  d S(   sJ   
        Set the *y* position of the text

        ACCEPTS: float
        N(   RH   (   RK   R9   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR5  ­  s    c         C  s   | |  _  d S(   sq   
        Set the rotation of the text

        ACCEPTS: [ angle in degrees | 'vertical' | 'horizontal' ]
        N(   RV   (   RK   t   s(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   set_rotationµ  s    c         C  s   |  j  | ƒ d S(   s   alias for set_verticalalignmentN(   t   set_verticalalignment(   RK   R  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   set_va½  s    c         C  s8   d } | | k r+ t  d t | ƒ ƒ ‚ n  | |  _ d S(   sk   
        Set the vertical alignment

        ACCEPTS: [ 'center' | 'top' | 'bottom' | 'baseline' ]
        RŒ   t   bottomRŠ   RN   s$   Vertical alignment must be one of %sN(   s   topR<  s   centers   baseline(   R}   R  RS   (   RK   R  R  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR:  Á  s
    c         C  s   d | f |  _  d S(   s±   
        Set the text string *s*

        It may contain newlines (``\n``) or math in LaTeX syntax.

        ACCEPTS: string or anything printable with '%s' conversion.
        s   %sN(   RJ   (   RK   R8  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRQ   Î  s    c         C  s\   t  d r) |  d k r d }  n  |  d f St j |  ƒ rB |  t f S|  j d d ƒ t f Sd S(   sS  
        Returns a cleaned string and a boolean flag.
        The flag indicates if the given string *s* contains any mathtext,
        determined by counting unescaped dollar signs. If no mathtext
        is present, the cleaned string has its dollar signs unescaped.
        If usetex is on, the flag always has the value "TeX".
        s   text.usetext    s   \ t   TeXs   \$t   $N(   R   R   R—   t   Truet   replaceRj   (   R8  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR—   Ø  s    
	

c         C  s.   t  | ƒ r t | ƒ } n  | j ƒ  |  _ d S(   sÝ   
        Set the font properties that control the text.  *fp* must be a
        :class:`matplotlib.font_manager.FontProperties` object.

        ACCEPTS: a :class:`matplotlib.font_manager.FontProperties` instance
        N(   R   R   R‚   RW   (   RK   t   fp(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   set_fontpropertiesí  s    c         C  s   |  j  | ƒ d S(   s   alias for set_fontpropertiesN(   RC  (   RK   RB  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   set_font_propertiesø  s    N(P   t   __name__t
   __module__t   __doc__t   zorderR   RŽ   RL   R   RP   Re   Rm   Rx   Ry   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  Rv   R�   R�   R  R
  Rk   R  RR   R  R  R  R  R   R!  R#  R%  R&  R'  R(  R*  R+  R-  R.  R0  R1  R3  R7  R4  R5  R9  R;  R:  RQ   t   staticmethodR—   RC  RD  (    (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR#   �   s¤   		&									¥	$			F																								+																
													
	t   TextWithDashc           B  s  e  Z d  Z d Z  d „  Z d d d d d d d d d d d d d d d d „ Z d	 „  Z 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 d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   sb  
    This is basically a :class:`~matplotlib.text.Text` with a dash
    (drawn with a :class:`~matplotlib.lines.Line2D`) before/after
    it. It is intended to be a drop-in replacement for
    :class:`~matplotlib.text.Text`, and should behave identically to
    it when *dashlength* = 0.0.

    The dash always comes between the point specified by
    :meth:`~matplotlib.text.Text.set_position` and the text. When a
    dash exists, the text alignment arguments (*horizontalalignment*,
    *verticalalignment*) are ignored.

    *dashlength* is the length of the dash in canvas units.
    (default = 0.0).

    *dashdirection* is one of 0 or 1, where 0 draws the dash after the
    text and 1 before.  (default = 0).

    *dashrotation* specifies the rotation of the dash, and should
    generally stay *None*. In this case
    :meth:`~matplotlib.text.TextWithDash.get_dashrotation` returns
    :meth:`~matplotlib.text.Text.get_rotation`.  (I.e., the dash takes
    its rotation from the text's rotation). Because the text center is
    projected onto the dash, major deviations in the rotation cause
    what may be considered visually unappealing results.
    (default = *None*)

    *dashpad* is a padding length to add (or subtract) space
    between the text and the dash, in canvas units.
    (default = 3)

    *dashpush* "pushes" the dash and text away from the point
    specified by :meth:`~matplotlib.text.Text.set_position` by the
    amount in canvas units.  (default = 0)

    .. note::

        The alignment of the two objects is based on the bounding box
        of the :class:`~matplotlib.text.Text`, as obtained by
        :meth:`~matplotlib.artist.Artist.get_window_extent`.  This, in
        turn, appears to depend on the font metrics as given by the
        rendering backend. Hence the quality of the "centering" of the
        label text with respect to the dash varies depending on the
        backend used.

    .. note::

        I'm not sure that I got the
        :meth:`~matplotlib.text.TextWithDash.get_window_extent` right,
        or whether that's sufficient for providing the object bounding
        box.

    t   textwithdashc         C  s    d |  j  |  j t |  j ƒ f S(   Ns   TextWithDash(%g,%g,%s)(   RG   RH   RI   RJ   (   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRL   8  s    i    RM   RŠ   g        i   c         C  sÈ   t  j |  d | d | d | d | d | d | d | d | d	 |	 d
 |
 ƒ
t d | | f d | | f d d d d ƒ |  _ t | ƒ |  _ t | ƒ |  _ | |  _ | |  _ | |  _	 | |  _
 | |  _ d  S(   NR8   R9   R-   R]   R^   R_   R`   Ra   R    Rb   t   xdatat   ydatat   kt	   linestylet   -(   R#   RP   R   t   dashlineR   t   _dashxt   _dashyt   _dashlengtht   _dashdirectiont   _dashrotationt   _dashpadt	   _dashpush(   RK   R8   R9   R-   R]   R^   R_   R`   Ra   R    Rb   t
   dashlengtht   dashdirectiont   dashrotationt   dashpadt   dashpush(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRP   ;  s$    $				c         C  s:   t  |  j |  j ƒ ƒ } t  |  j |  j ƒ ƒ } | | f S(   s5   Return the position of the text as a tuple (*x*, *y*)(   R   RÍ   RR  RÎ   RS  (   RK   R8   R9   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRv   f  s    c         C  sc   g  t  j |  ƒ D] } | ^ q } | j |  j |  j |  j |  j |  j |  j |  j	 g ƒ t
 | ƒ S(   sô   
        Return a hashable tuple of properties.

        Not intended to be human readable, but useful for backends who
        want to cache derived information about text (eg layouts) and
        need to know if the text has changed.
        (   R#   R�   R*   RG   RH   RT  RU  RV  RW  RX  R  (   RK   t   pRÊ   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR�   l  s
    "c         C  sF   |  j  | ƒ t j |  | ƒ |  j ƒ  d k rB |  j j | ƒ n  d S(   sP   
        Draw the :class:`TextWithDash` object to the given *renderer*.
        g        N(   t   update_coordsR#   RÚ   t   get_dashlengthRQ  (   RK   R.   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRÚ   z  s    c   !      C  sû  |  j  ƒ  \ } } |  j ƒ  } | d k rA | | |  _ |  _ d S|  j ƒ  } |  j ƒ  } |  j ƒ  } |  j ƒ  } t | ƒ }	 t	 j
 |	 d | d }
 t	 j |
 ƒ t	 j |
 ƒ } } |  j ƒ  } | j | | f ƒ } t	 j | | g ƒ } | | | } | | | | } | j ƒ  } | j t | ƒ ƒ \ } } | j t | ƒ ƒ \ } } |  j j | | f | | f ƒ t j |  d | ƒ} | j | j } } | d k r¯| } d } na | d k rÊd } | } nF | | } | } | | } | | k sý| | k  r| } | | } n  t	 j | | g ƒ d } | d | t	 j t	 j | | ƒ ƒ 9} | | d d | } | j t | ƒ ƒ \ } }  | |  |  _ |  _ t j |  d | ƒ} | j ƒ  |  _ |  j j t	 j | g ƒ t ƒ t j |  d ƒ t j |  d ƒ d S(   sò   
        Computes the actual *x*, *y* coordinates for text based on the
        input *x*, *y* and the *dashlength*. Since the rotation is
        with respect to the actual canvas's coordinates we need to map
        back and forth.
        g        Ng     €f@i   R.   i   RŠ   (    Rv   R`  RG   RH   t   get_dashrotationt   get_dashdirectiont   get_dashpadt   get_dashpushR"   R$   t   pit   cost   sinRw   R)   R™   t   invertedR  RQ  t   set_dataR#   Rk   R¤   R¥   t   sqrtt   dott   frozent   _twd_window_extentt   update_from_data_xyRj   R  R:  (!   RK   R.   t   dashxt   dashyRY  R[  RZ  R\  R]  R!   R1   t	   cos_thetat	   sin_thetaR›   t   cxyt   cdt   c1t   c2t   inverset   x1t   y1t   x2t   y2t   weR:   R;   t   dxt   dyt	   tan_thetat   cwdt   cwt   newxt   newy(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR_  ƒ  sZ    		

'c         C  s=   |  j  | ƒ |  j ƒ  d k r2 t j |  d | ƒS|  j Sd S(   so  
        Return a :class:`~matplotlib.transforms.Bbox` object bounding
        the text, in display units.

        In addition to being used internally, this is useful for
        specifying clickable regions in a png file on a web page.

        *renderer* defaults to the _renderer attribute of the text
        object.  This is not assigned until the first execution of
        :meth:`draw`, so you must use this kwarg if you want
        to call :meth:`get_window_extent` prior to the first
        :meth:`draw`.  For getting web page regions, it is
        simpler to call the method after saving the figure.
        g        R.   N(   R_  R`  R#   Rk   Rm  (   RK   R.   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRk   ×  s    c         C  s   |  j  S(   s-   
        Get the length of the dash.
        (   RT  (   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR`  ì  s    c         C  s   | |  _  d S(   sT   
        Set the length of the dash.

        ACCEPTS: float (canvas units)
        N(   RT  (   RK   t   dl(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   set_dashlengthò  s    c         C  s   |  j  S(   sO   
        Get the direction dash.  1 is before the text and 0 is after.
        (   RU  (   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRb  ú  s    c         C  s   | |  _  d S(   s  
        Set the direction of the dash following the text.
        1 is before the text and 0 is after. The default
        is 0, which is what you'd want for the typical
        case of ticks below and on the left of the figure.

        ACCEPTS: int (1 is before, 0 is after)
        N(   RU  (   RK   t   dd(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   set_dashdirection   s    	c         C  s$   |  j  d k r |  j ƒ  S|  j  Sd S(   s:   
        Get the rotation of the dash in degrees.
        N(   RV  R   R"   (   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRa    s    
c         C  s   | |  _  d S(   s\   
        Set the rotation of the dash, in degrees

        ACCEPTS: float (degrees)
        N(   RV  (   RK   t   dr(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   set_dashrotation  s    c         C  s   |  j  S(   sW   
        Get the extra spacing between the dash and the text, in canvas units.
        (   RW  (   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRc    s    c         C  s   | |  _  d S(   s®   
        Set the "pad" of the TextWithDash, which is the extra spacing
        between the dash and the text, in canvas units.

        ACCEPTS: float (canvas units)
        N(   RW  (   RK   t   dp(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   set_dashpad"  s    c         C  s   |  j  S(   sr   
        Get the extra spacing between the dash and the specified text
        position, in canvas units.
        (   RX  (   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRd  +  s    c         C  s   | |  _  d S(   sÅ   
        Set the "push" of the TextWithDash, which
        is the extra spacing between the beginning
        of the dash and the specified position.

        ACCEPTS: float (canvas units)
        N(   RX  (   RK   RŠ  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   set_dashpush2  s    c         C  s&   |  j  | d ƒ |  j | d ƒ d S(   sd   
        Set the (*x*, *y*) position of the :class:`TextWithDash`.

        ACCEPTS: (x, y)
        i    i   N(   R4  R5  (   RK   R6  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR7  <  s    c         C  s   t  | ƒ |  _ d S(   s\   
        Set the *x* position of the :class:`TextWithDash`.

        ACCEPTS: float
        N(   R   RR  (   RK   R8   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR4  E  s    c         C  s   t  | ƒ |  _ d S(   s\   
        Set the *y* position of the :class:`TextWithDash`.

        ACCEPTS: float
        N(   R   RS  (   RK   R9   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR5  M  s    c         C  s$   t  j |  | ƒ |  j j | ƒ d S(   s®   
        Set the :class:`matplotlib.transforms.Transform` instance used
        by this artist.

        ACCEPTS: a :class:`matplotlib.transforms.Transform` instance
        N(   R#   RÑ   RQ  (   RK   R6   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRÑ   U  s    c         C  s   |  j  S(   s0   return the figure instance the artist belongs to(   R  (   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt
   get_figure_  s    c         C  s$   t  j |  | ƒ |  j j | ƒ d S(   s~   
        Set the figure instance the artist belong to.

        ACCEPTS: a :class:`matplotlib.figure.Figure` instance
        N(   R#   t
   set_figureRQ  (   RK   t   fig(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRŽ  c  s    N(   RE  RF  RG  RL   R   RP   Rv   R�   RÚ   R_  Rk   R`  R…  Rb  R‡  Ra  R‰  Rc  R‹  Rd  RŒ  R7  R4  R5  RÑ   R�  RŽ  (    (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRJ     sJ   5							T												
					
	t
   OffsetFromc           B  s8   e  Z d  d „ Z d „  Z d „  Z d „  Z d „  Z RS(   t   pointsc         C  s#   | |  _  | |  _ |  j | ƒ d  S(   N(   t   _artistt
   _ref_coordt   set_unit(   RK   t   artistt	   ref_coordR  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRP   p  s    		c         C  s   | d k s t  ‚ | |  _ d  S(   NR‘  t   pixels(   R‘  R—  (   t   AssertionErrort   _unit(   RK   R  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR”  u  s    c         C  s   |  j  S(   N(   R™  (   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   get_unity  s    c         C  s-   |  j  ƒ  } | d k r d S| j d ƒ Sd  S(   NR—  g      ð?(   Rš  RÒ   (   RK   R.   R  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt
   _get_scale|  s    c         C  s1  t  |  j t ƒ rh |  j j | ƒ } | j \ } } } } |  j \ } } | | | | | | }	 }
 n• t  |  j t ƒ rÁ |  j j \ } } } } |  j \ } } | | | | | | }	 }
 n< t  |  j t ƒ rñ |  j j |  j ƒ \ }	 }
 n t	 d ƒ ‚ |  j
 | ƒ } t ƒ  j | | ƒ j |	 |
 ƒ } | S(   Ns   unknown type(   R•   R’  R   Rk   Rl   R“  R   R   R)   R  R›  R   t   scaleRÐ   (   RK   R.   RÀ   Ro   Rp   R:   R;   t   xft   yfR8   R9   t   scR2   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   __call__ƒ  s      !(   RE  RF  RP   R”  Rš  R›  R   (    (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR�  o  s
   			t   _AnnotationBasec           B  st   e  Z d d  d d d „ Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d e d
 „ Z RS(   t   datac         C  sr   | d  k r | } n  | d  k r* | } n  | \ } } |  _ | |  _ | |  _ | |  _ |  j | ƒ d  |  _ d  S(   N(   R   t   xytextR6  t   xycoordst
   textcoordst   set_annotation_clipt
   _draggable(   RK   R6  R£  R¤  R¥  t   annotation_clipR8   R9   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRP   ™  s    					c   
      C  sÌ   t  | t ƒ r | \ } } n | | } } | d k rO t |  j | ƒ ƒ } n  | d k rs t |  j | ƒ ƒ } n  | d k r• |  j | | | | ƒ S|  j | | ƒ } | j | | f ƒ \ } }	 | |	 f S(   NR¢  s   axes pointss
   axes pixels   figure pointss   figure pixel(   s   axes pointss
   axes pixels   figure pointss   figure pixel(   R•   R  R   RÍ   RÎ   t   _get_xy_legacyt   _get_xy_transformR)   (
   RK   R.   R8   R9   R8  t   s1t   s2R2   Rx  Ry  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   _get_xy«  s    c         C  s_  t  | t ƒ rb | \ } } d d l m } |  j | | ƒ } |  j | | ƒ } | | | ƒ } | St | ƒ rµ | | ƒ } t  | t ƒ r“ t | ƒ St  | t ƒ r¦ | St	 d ƒ ‚ n  t  | t
 ƒ rÝ | j | ƒ }	 t |	 ƒ St  | t ƒ rö t | ƒ St  | t ƒ r	| St | ƒ s+t	 d | f ƒ ‚ n  | d k rA|  j j S| d k r}d d l m }
 |
 j ƒ  } | |  j j } | S| j ƒ  } t | ƒ d k r®t d	 | ƒ ‚ n  d \ } } | \ } } | d
 k rá|  j j } n | d k rü|  j j } n  | d  k	 r| j d  } n | d k r6|  j | ƒ } n  | d  k	 rK| \ } } d d l m } | d k r•|  j j ƒ  d } | ƒ  j | | ƒ } n¦ | d k r­| ƒ  } nŽ | d k rô|  j ƒ  } | |  j j ƒ  d } | ƒ  j | | ƒ } nG | d k r+| j d \ } } | ƒ  j | | ƒ } n t d	 | ƒ ‚ | j | | ƒ St d	 | ƒ ‚ d  S(   Niÿÿÿÿ(   t   blended_transform_factorys   unknown return type ...s   unknown coordinate type : %sR¢  t   polar(   t	   PolarAxesi   s    %s is not a recognized coodinateR  t   axest   offset(   R   R‘  g      R@R—  R,  t   fraction(   NN(   R•   R  t   matplotlib.transformsR®  Rª  Rg   R   R   R   R  R   Rk   R   R±  t	   transDatat   matplotlib.projectionsR°  t   PolarTransformR�   R’   R}   R   R  RÀ   Rl   t   _get_ref_xyR   t   get_dpiRœ  RÓ   RÐ   (   RK   R.   R8  R«  R¬  R®  t   tr1t   tr2R2   RÀ   R°  RÕ   t   s_t   bbox0t   xy0t	   bbox_nameR  t   ref_xt   ref_yR   t   dppR,  R:   R;   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRª  ½  s|    



c   
      C  s,  t  |  j t ƒ rÉ |  j \ } } t | ƒ rC | j ƒ  d d k se t | ƒ rt | j ƒ  d d k rt t d ƒ ‚ n  |  j \ } } |  j | | | | ƒ \ } } |  j | | | | ƒ \ } }	 | |	 f St |  j ƒ r |  j j ƒ  d d k r t d ƒ ‚ n( |  j \ } } |  j | | | |  j ƒ Sd S(   sy   
        return x, y (in display coordinate) that is to be used for a reference
        of any offset coordinate
        i    R²  s+   xycoords should not be an offset coordinateN(   R•   R¤  R  R   R�   R}   R6  R­  (
   RK   R.   R«  R¬  R8   R9   Rx  Ry  Rz  R{  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR¸    s    ""
c         C  s  | j  ƒ  } d	 \ } } | \ } }	 | d k r? |  j j } n | d k rZ |  j j } n  |	 d k r| |  j j ƒ  d }
 n |	 d k r‘ d }
 n  | j \ } } } } | d k  rÃ | | |
 } n | | |
 } | d k  rî | | |
 } n | | |
 } | | f S(
   s‚   
        only used when s in ['axes points', 'axes pixel', 'figure points',
                             'figure pixel'].
        R  R±  R‘  g      R@R—  i   i    N(   NN(   R�   R   R  RÀ   R±  R¹  t   extents(   RK   R.   R8   R9   R8  R¼  R½  R¾  R¿  R  RŸ  Ro   Rp   Rq   R6   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR©  3  s&    	c         C  s   | |  _  d S(   sK  
        set *annotation_clip* attribute.

          * True: the annotation will only be drawn when self.xy is inside
                  the axes.
          * False: the annotation will always be drawn regardless of its
                   position.
          * None: the self.xy will be checked only if *xycoords* is "data"
        N(   t   _annotation_clip(   RK   Rp   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR¦  R  s    
c         C  s   |  j  S(   s   
        Return *annotation_clip* attribute.
        See :meth:`set_annotation_clip` for the meaning of return values.
        (   RÄ  (   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   get_annotation_clip^  s    c         C  s(   |  j  \ } } |  j | | | |  j ƒ S(   s5   Return the pixel position of the the annotated point.(   R6  R­  R¤  (   RK   R.   R8   R9   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   _get_position_xye  s    c         C  sJ   |  j  ƒ  } | s- | d k rF |  j d k rF |  j j | ƒ sF t Sn  t S(   sb   
        given the xy pixel coordinate, check if the annotation need to
        be drawn.
        R¢  N(   RÅ  R   R¤  R±  t   contains_pointRj   R@  (   RK   R.   t   xy_pixelRp   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt	   _check_xyj  s
    !c         C  s‘   d d l  m } |  j d k	 } | d k r5 | } n  | rb |  j d k rŠ | |  | ƒ |  _ qŠ n( |  j d k	 r� |  j j ƒ  n  d |  _ |  j S(   sc  
        Set the draggable state -- if state is

          * None : toggle the current state

          * True : turn draggable on

          * False : turn draggable off

        If draggable is on, you can drag the annotation on the canvas with
        the mouse.  The DraggableAnnotation helper instance is returned if
        draggable is on.
        iÿÿÿÿ(   t   DraggableAnnotationN(   t   matplotlib.offsetboxRÊ  R§  R   t
   disconnect(   RK   t   statet   use_blitRÊ  t   is_draggable(    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt	   draggabley  s    
	N(   RE  RF  R   RP   R­  Rª  R¸  R©  R¦  RÅ  RÆ  RÉ  Rj   RÐ  (    (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyR¡  ˜  s   		U	!					t
   Annotationc           B  st   e  Z d  Z d „  Z e j d
 d d
 d
 d
 d „ ƒ Z d „  Z d „  Z	 d „  Z
 d „  Z d „  Z e d	 „  ƒ Z RS(   sç   
    A :class:`~matplotlib.text.Text` class to make annotating things
    in the figure, such as :class:`~matplotlib.figure.Figure`,
    :class:`~matplotlib.axes.Axes`,
    :class:`~matplotlib.patches.Rectangle`, etc., easier.
    c         C  s(   d |  j  d |  j  d t |  j ƒ f S(   Ns   Annotation(%g,%g,%s)i    i   (   R6  RI   RJ   (   RK   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRL      s    
R¢  c         K  s½   t  j |  | d | d | d | d | ƒ|  j \ }	 }
 t j |  |	 |
 | | � | |  _ d
 |  _ | r° d | k r° |  j j ƒ  } | j d d ƒ |  _	 t
 d d | � |  _ n	 d
 |  _ d
 S(   sá  
        Annotate the *x*, *y* point *xy* with text *s* at *x*, *y*
        location *xytext*.  (If *xytext* = *None*, defaults to *xy*,
        and if *textcoords* = *None*, defaults to *xycoords*).

        *arrowprops*, if not *None*, is a dictionary of line properties
        (see :class:`matplotlib.lines.Line2D`) for the arrow that connects
        annotation to the point.

        If the dictionary has a key *arrowstyle*, a FancyArrowPatch
        instance is created with the given dictionary and is
        drawn. Otherwise, a YAArow patch instance is created and
        drawn. Valid keys for YAArow are


        =========   ===========================================================
        Key         Description
        =========   ===========================================================
        width       the width of the arrow in points
        frac        the fraction of the arrow length occupied by the head
        headwidth   the width of the base of the arrow head in points
        shrink      oftentimes it is convenient to have the arrowtip
                    and base a bit away from the text and point being
                    annotated.  If *d* is the distance between the text and
                    annotated point, shrink will shorten the arrow so the tip
                    and base are shink percent of the distance *d* away from
                    the endpoints.  ie, ``shrink=0.05 is 5%%``
        ?           any key for :class:`matplotlib.patches.polygon`
        =========   ===========================================================


        Valid keys for FancyArrowPatch are


        ===============  ======================================================
        Key              Description
        ===============  ======================================================
        arrowstyle       the arrow style
        connectionstyle  the connection style
        relpos           default is (0.5, 0.5)
        patchA           default is bounding box of the text
        patchB           default is None
        shrinkA          default is 2 points
        shrinkB          default is 2 points
        mutation_scale   default is text size (in points)
        mutation_aspect  default is 1.
        ?                any key for :class:`matplotlib.patches.PathPatch`
        ===============  ======================================================


        *xycoords* and *textcoords* are strings that indicate the
        coordinates of *xy* and *xytext*.

        =================   ===================================================
        Property            Description
        =================   ===================================================
        'figure points'     points from the lower left corner of the figure
        'figure pixels'     pixels from the lower left corner of the figure
        'figure fraction'   0,0 is lower left of figure and 1,1 is upper right
        'axes points'       points from lower left corner of axes
        'axes pixels'       pixels from lower left corner of axes
        'axes fraction'     0,0 is lower left of axes and 1,1 is upper right
        'data'              use the coordinate system of the object being
                            annotated (default)
        'offset points'     Specify an offset (in points) from the *xy* value

        'polar'             you can specify *theta*, *r* for the annotation,
                            even in cartesian plots.  Note that if you
                            are using a polar axes, you do not need
                            to specify polar for the coordinate
                            system since that is the native "data" coordinate
                            system.
        =================   ===================================================

        If a 'points' or 'pixels' option is specified, values will be
        added to the bottom-left and if negative, values will be
        subtracted from the top-right.  e.g.::

          # 10 points to the right of the left border of the axes and
          # 5 points below the top border
          xy=(10,-5), xycoords='axes points'

        You may use an instance of
        :class:`~matplotlib.transforms.Transform` or
        :class:`~matplotlib.artist.Artist`. See
        :ref:`plotting-guide-annotation` for more details.


        The *annotation_clip* attribute contols the visibility of the
        annotation when it goes outside the axes area. If True, the
        annotation will only be drawn when the *xy* is inside the
        axes. If False, the annotation will always be drawn regardless
        of its position.  The default is *None*, which behave as True
        only if *xycoords* is"data".

        Additional kwargs are Text properties:

        %(Text)s

        R£  R¤  R¥  R¨  t
   arrowstylet   relposg      à?i    i   N(   g      à?g      à?(   i    i    (   i   i   (   R¡  RP   R£  R#   t
   arrowpropsR   t   arrowR‚   RÇ   t   _arrow_relposR   t   arrow_patch(   RK   R8  R6  R£  R¤  R¥  RÔ  R¨  R   R8   R9   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRP   ¥  s    m				c         C  sX   t  j |  | ƒ \ } } |  j d  k	 rN |  j j | ƒ \ } } | pH | } n  | | f S(   N(   R#   Rm   RÕ  R   (   RK   t   eventRm   t   tinfot   in_arrowR3   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRm   &  s
    c         C  sX   |  j  d  k	 r" |  j  j | ƒ n  |  j d  k	 rD |  j j | ƒ n  t j |  | ƒ d  S(   N(   RÕ  R   RŽ  R×  R   (   RK   R�  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRŽ  /  s
    c         C  s#   |  j  | ƒ } |  j | | ƒ d S(   sQ   "Update the pixel positions of the annotated point and the
        text.
        N(   RÆ  t   _update_position_xytext(   RK   R.   RÈ  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   update_positions7  s    c   #      C  s—  |  j  \ } } |  j | | | |  j ƒ \ |  _ |  _ | \ } } |  j |  j } } | | } } |  j r“| | }	 }
 |  j | ƒ j \ } } } } | | } | | } d | | } d | | } |  j j ƒ  } |  j	 rï|  j
 } |  j | ƒ } | j | j | d } | j | j | d } |  j	 j | | f | | f ƒ | j d |  j ƒ  ƒ } | j | ƒ } |  j	 j | ƒ d | k r¤|  j	 j | j d ƒ ƒ q�|  j rÃ|  j	 j |  j ƒ q�|  j } | d	 k rái  } n  | j ƒ  } | j d d ƒ } | j | ƒ } |  j ƒ  j ƒ  d k r:|  j	 j d	 ƒ d	 S|  j | ƒ } | j \ } } } } | | d
 8} | | d
 8} | | 7} | | 7} t d | | f d | d | ƒ } | j t j ƒ  ƒ | j t ƒ | j  | ƒ |  j	 j | ƒ q“g  | | | f D] } t! | |	 ƒ | f ^ qÿ} | j" ƒ  | d \ } } g  | | | f D] } t! | |
 ƒ | f ^ qK} | j" ƒ  | d \ } } | j d d ƒ } t# j$ | |
 | |	 ƒ } t% j& | |
 | |	 ƒ } | | t# j' | ƒ } | | t# j( | ƒ } | j d d ƒ }  | j d d ƒ }! | j d d ƒ }" t) |  j* |	 | |
 | f | | | | f d |  d |! d |" | �|  _+ |  j+ j, |  j- ƒ  ƒ n  d	 S(   sW   Update the pixel positions of the annotation text and the arrow
        patch.
        g      à?i    i   t   mutation_scalet   patchAt   padi   RM   Ng       @R6  R¤   R¥   t   shrinkg        t	   headwidthi   t   fracgš™™™™™¹?(.   R£  R­  R¥  RG   RH   RÔ  Rk   Rl   R‚   R×  RÖ  t   x0R¤   t   y0R¥   t   set_positionsRÇ   RÓ   RÒ   RÔ   t
   set_patchARY   RX   R   R�   RÝ   R   RÑ   R&   RÈ   t   set_clip_onRj   R   t   abst   sortt   matht   atan2R$   t   hypotRf  Rg  R
   R  RÕ  t   set_clip_boxt   get_clip_box(#   RK   R.   RÈ  R8   R9   t   ox0t   oy0t   ox1t   oy1Rã  Rä  Ro   Rp   R:   R;   Rq   R6   t   xct   ycR5   RÓ  RÀ   RÝ  RÊ   Rß  t   valt   dsuR3   Rà  R1   R}  R~  R¤   Rá  Râ  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRÛ  >  sŠ    	

					

	2
2
	%c         C  sæ   t  |  j t ƒ s d S|  j râ |  j |  j } } t |  | ƒ \ } } } } |  j j d d | | ƒ t j	 |  j
 ƒ  ƒ } t j ƒ  j | ƒ }	 |	 j | | | | ƒ }	 |  j j |	 ƒ | j |  j ƒ  ƒ }
 |  j j |
 ƒ n  d S(   sÇ   
        Update the location and the size of the bbox. This method
        should be used when the position and size of the bbox needs to
        be updated before actually drawing the bbox.
        Ng        (   R•   R×  R   RY   RG   RH   RF   RÏ   R$   R%   R"   R&   R   R'   RÐ   RÑ   RÒ   RÓ   RÔ   (   RK   R.   RÖ   R×   RD   RE   RB   RC   R1   R2   RØ   (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRÙ   ¯  s    		c         C  s(  | d k	 r | |  _ n  |  j ƒ  s( d S|  j | ƒ } |  j | | ƒ sM d S|  j | | ƒ |  j | ƒ |  j d k	 r¿ |  j j d k r¬ |  j d k	 r¬ |  j |  j _ n  |  j j	 | ƒ n  |  j
 d k	 r|  j
 j d k r|  j d k	 r|  j |  j
 _ n  |  j
 j	 | ƒ n  t j	 |  | ƒ d S(   sN   
        Draw the :class:`Annotation` object to the given *renderer*.
        N(   R   RZ   Ri   RÆ  RÉ  RÛ  RÙ   RÕ  R  RÚ   R×  R#   (   RK   R.   RÈ  (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRÚ   Ç  s$    !!N(   RE  RF  RG  RL   R   t   dedent_interpdR   RP   Rm   RŽ  RÜ  RÛ  RÙ   R   RÚ   (    (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyRÑ  ™  s   	{					q	(7   RG  t
   __future__R    R   Rê  t   numpyR$   t
   matplotlibR   R   t   matplotlib.artistR•  R   t   matplotlib.cbookR   R   R   t   matplotlib.font_managerR   t   matplotlib.patchesR	   R
   R   R   R   R´  t
   transformsR&   R   R   R   R   R   t   matplotlib.linesR   R   t   matplotlib.backend_basesR   t   matplotlib.textpathR   R   R   R"   t   interpdR   RF   R#   t   kwdocR÷  RP   RJ  t   objectR�  R¡  RÑ  (    (    (    sI   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/text.pyt   <module>   sN   	)		#ÿ ÿ ÿ pÿ m)ÿ ÿ N