ó
±éRc           @  sØ  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
 Z
 d d l
 m Z d d l m Z m Z 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 d d l
 m Z d d l m Z d d l m Z d d l m Z m Z m  Z  m! Z! d d l m" Z" m# Z# m$ Z$ m% Z% d „  Z& d e f d „  ƒ  YZ' d f  d „  ƒ  YZ( e' j) Z* e j+ Z, e' j- Z- e j. Z/ e j0 j1 d e
 j2 e' ƒ ƒ e j3 e' j4 ƒ d S(   sn   
This module contains all the 2D line class which can draw with a
variety of line styles, markers and colors.
iÿÿÿÿ(   t   divisiont   print_functionN(   t   ma(   t   verbose(   t   Artist(   t   iterablet   is_string_liket
   is_numliket	   ls_mapper(   t   colorConverter(   t   Path(   t   Bboxt   TransformedPatht   IdentityTransform(   t   rcParams(   t   allow_rasterization(   t	   docstring(   t   MarkerStyle(   t   TICKLEFTt	   TICKRIGHTt   TICKUPt   TICKDOWN(   t	   CARETLEFTt
   CARETRIGHTt   CARETUPt	   CARETDOWNc         C  s�  t  | ƒ d k  rF t j |  | d | | d | d k ƒ \ } | S| d  | d  } } | d | | d | } }	 | d |	 d }
 |  | | | | |	 |
 } | d k | d k @} |  | d | | d | d k } | | d  | d B@} | | | | | |	 } } |  | d | | d | d k } | | @} | j ƒ  j ƒ  \ } | j ƒ  j ƒ  \ } t j | | f ƒ S(   s�   
    Determine if any line segments are within radius of a
    point. Returns the list of line segments that are within that
    radius.
    i   iÿÿÿÿi   i    (   t   lent   npt   nonzerot   ravelt   concatenate(   t   cxt   cyt   xt   yt   radiust   rest   xrt   yrt   dxt   dyt   Lnorm_sqt   ut
   candidatest
   point_hitst   pxt   pyt	   line_hitst   pointst   lines(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   segment_hits   s     0$$
t   Line2Dc           B  sw  e  Z d  Z i d d 6d d 6d d 6d d 6d	 d
 6d	 d 6d	 d 6Z Z i d d 6d d 6d d 6d d 6Z i d d 6Z i  Z e j e ƒ e j e ƒ e j	 ƒ  e j	 ƒ  Z
 e j Z e j Z e j Z d Z dy Z dz Z d „  Z d{ d{ d{ 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% „  Z d& „  Z d' „  Z d( „  Z d) „  Z d* „  Z e  j j e _ d+ „  Z! d, „  Z" e# d- „ Z$ d{ d. „ Z% d/ „  Z& d0 „  Z' d1 „  Z( e) d2 „  ƒ Z* d3 „  Z+ d4 „  Z, d5 „  Z- d6 „  Z. d7 „  Z/ d8 „  Z0 d9 „  Z1 d: „  Z2 e# d; „ Z3 d< „  Z4 d= „  Z5 d> „  Z6 e7 d? „ Z8 e7 d@ „ Z9 e7 dA „ Z: dB „  Z; dC „  Z< dD „  Z= dE „  Z> dF „  Z? dG „  Z@ dH „  ZA eB jC dI „  ƒ ZD dJ „  ZE dK „  ZF dL „  ZG dM „  ZH dN „  ZI dO „  ZJ dP „  ZK dQ „  ZL dR „  ZM dS „  ZN dT „  ZO dU „  ZP dV „  ZQ dW „  ZR dX „  ZS dY „  ZT dZ „  ZU e# d[ „ ZV e# d\ „ ZW e# d] „ ZX d^ „  ZY d_ „  ZZ d` „  Z[ da „  Z\ db „  Z] dc „  Z^ dd „  Z_ de „  Z` df „  Za dg „  Zb dh „  Zc di „  Zd dj „  Ze dk „  Zf dl „  Zg dm „  Zh e# dn „ Zi do „  Zj dp „  Zk dq „  Zl dr „  Zm ds „  Zn dt „  Zo du „  Zp dv „  Zq dw „  Zr dx „  Zs RS(|   s  
    A line - the line can have both a solid linestyle connecting all
    the vertices, and a marker at each vertex.  Additionally, the
    drawing of the solid line is influenced by the drawstyle, eg one
    can create "stepped" lines in various styles.


    t   _draw_solidt   -t   _draw_dasheds   --t   _draw_dash_dots   -.t   _draw_dottedt   :t   _draw_nothingt   Nonet    t    t   _draw_linest   defaultt   _draw_steps_mids	   steps-midt   _draw_steps_pres	   steps-pret   _draw_steps_posts
   steps-postt   stepsi   t   buttt   roundt
   projectingt   mitert   bevelc         C  sÜ   |  j  d k r d |  j  St |  d ƒ r‚ t |  j ƒ d k r‚ d |  j d |  j d |  j d |  j d |  j d |  j d f St |  d ƒ rÔ d d j g  t |  j |  j ƒ D] \ } } d	 | | f ^ q° ƒ Sd
 Sd  S(   NR=   s
   Line2D(%s)t   _xi   s#   Line2D((%g,%g),(%g,%g),...,(%g,%g))i    iÿÿÿÿt   ,s   (%g,%g)s   Line2D()(   t   _labelt   hasattrR   RI   t   _yt   joint   zip(   t   selfR!   R"   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   __str__w   s    $#	7t   nonet   fulli   c         K  sÔ  t  j |  ƒ t | ƒ s( t d ƒ ‚ n  t | ƒ sC t d ƒ ‚ n  | d k r\ t d } n  | d k ru t d } n  | d k rŽ t d } n  | d k r§ t d } n  | d k rÀ t d } n  | d k rÙ t d } n  | d k rò t d	 } n  | d k rt d
 } n  | d k r$t d } n  | d k r=t d } n  | d k rRd } n  |  j | ƒ |  j | ƒ |  j | ƒ |  j	 | ƒ |  j
 | ƒ |  j | ƒ |  j | ƒ |  j | ƒ t ƒ  |  _ |  j | ƒ |  j | ƒ |  j | ƒ |  j | ƒ d |  _ |  j |
 ƒ |  j | ƒ |  j |	 ƒ |  j | ƒ |  j | ƒ d |  _ |  j | ƒ | |  _ d |  _ t |  j ƒ rŠ|  j |  _ n  t  j! g  ƒ |  _" t  j! g  ƒ |  _# t$ |  _% t$ |  _& |  j' | | ƒ d S(   sª  
        Create a :class:`~matplotlib.lines.Line2D` instance with *x*
        and *y* data in sequences *xdata*, *ydata*.

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

        %(Line2D)s

        See :meth:`set_linestyle` for a decription of the line styles,
        :meth:`set_marker` for a description of the markers, and
        :meth:`set_drawstyle` for a description of the draw styles.

        s   xdata must be a sequences   ydata must be a sequences   lines.linewidths   lines.linestyles   lines.markers   lines.colors   lines.markersizes   lines.antialiaseds   lines.dash_capstyles   lines.dash_joinstyles   lines.solid_capstyles   lines.solid_joinstyleR?   i    N((   R   t   __init__R   t   RuntimeErrorR;   R   t   set_dash_capstylet   set_dash_joinstylet   set_solid_capstylet   set_solid_joinstylet   set_linestylet   set_drawstylet   set_linewidtht	   set_colorR   t   _markert
   set_markert   set_markeveryt   set_antialiasedt   set_markersizet   _dashSeqt   set_markerfacecolort   set_markerfacecoloraltt   set_markeredgecolort   set_markeredgewidtht   set_fillstylet   verticalOffsett   updatet
   pickradiust
   ind_offsetR   t   _pickerR   t   asarrayt   _xorigt   _yorigt   Truet	   _invalidxt	   _invalidyt   set_data(   RP   t   xdatat   ydatat	   linewidtht	   linestylet   colort   markert
   markersizet   markeredgewidtht   markeredgecolort   markerfacecolort   markerfacecoloraltt	   fillstylet   antialiasedt   dash_capstylet   solid_capstylet   dash_joinstylet   solid_joinstyleRk   t	   drawstylet	   markeveryt   kwargs(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyRT   …   sr    "							c         C  s?  t  |  j ƒ r |  j |  | ƒ St |  j ƒ s= t d ƒ ‚ n  |  j sO |  j r\ |  j ƒ  n  t |  j	 ƒ d k r{ t
 i  f S|  j ƒ  } | j ƒ  \ } } | j | ƒ } | j } | d d … d f } | d d … d f } |  j d k rt j d ƒ |  j } n |  j j d |  j } t j d d ƒ }	 zv |  j d k r…| | j d
 | | j d
 }
 t j t j |
 | d
 ƒ ƒ \ } n t | j | j | | | ƒ } Wd t j |	 �  X| |  j 7} t
 r |  j d k r t d |  j d | j | j ƒ t d | ƒ t d | ƒ t d | ƒ n  t | ƒ d k t d | ƒ f S(   s.  
        Test whether the mouse event occurred on the line.  The pick
        radius determines the precision of the location test (usually
        within five points of the value).  Use
        :meth:`~matplotlib.lines.Line2D.get_pickradius` or
        :meth:`~matplotlib.lines.Line2D.set_pickradius` to view or
        modify it.

        Returns *True* if any values are within the radius along with
        ``{'ind': pointlist}``, where *pointlist* is the set of points
        within the radius.

        TODO: sort returned indices by distance
        s    pick radius should be a distancei    Ni   s,   no figure set when check if mouse is on lineg      R@t   allt   ignoreR;   i   R=   s   Checking linet   att   xtt   ytt   ind(   s   NoneN(    t   callablet	   _containsR   Rk   t
   ValueErrorRs   Rr   t   recacheR   t   _xyt   Falset   _get_transformed_patht   get_transformed_path_and_affinet   transform_patht   verticest   figureR;   t   warningst   warnt   dpiR   t   seterrt
   _linestyleR!   R"   R   t
   less_equalR2   Rl   RK   t   printt   dict(   RP   t
   mouseeventt   transformed_patht   patht   affinet   xyRŒ   R�   t   pixelst   olderrflagst   dRŽ   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   containsï   sB    
	 %"c         C  s   |  j  S(   s1   return the pick radius used for containment tests(   Rk   (   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   get_pickradius9  s    c         C  s   | |  _  d S(   sc   Sets the pick radius used for containment tests

        ACCEPTS: float distance in points
        N(   Rk   (   RP   R©   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   set_pickradius=  s    c         C  s   |  j  j ƒ  S(   s-   
        return the marker fillstyle
        (   R^   t   get_fillstyle(   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyR­   D  s    c         C  s   |  j  j | ƒ d S(   sæ   
        Set the marker fill style; 'full' means fill the whole marker.
        'none' means no filling; other options are for half-filled markers.

        ACCEPTS: ['full' | 'left' | 'right' | 'bottom' | 'top' | 'none']
        N(   R^   Rh   (   RP   t   fs(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyRh   J  s    c         C  s   | |  _  d S(   s   
        Set the markevery property to subsample the plot when using
        markers.  e.g., if ``markevery=5``, every 5-th marker will be
        plotted.  *every* can be

        None
            Every point will be plotted

        an integer N
            Every N-th marker will be plotted starting with marker 0

        A length-2 tuple of integers
            every=(start, N) will start at point start and plot every N-th
            marker

        ACCEPTS: None | integer | (startind, stride)

        N(   t
   _markevery(   RP   t   every(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyR`   S  s    c         C  s   |  j  S(   s   return the markevery setting(   R¯   (   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   get_markeveryh  s    c         C  s.   t  | ƒ r | |  _ n	 | |  _ | |  _ d S(   s—   Sets the event picker details for the line.

        ACCEPTS: float distance in points or callable pick function
        ``fn(artist, event)``
        N(   R�   R�   Rk   Rm   (   RP   t   p(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt
   set_pickerl  s    	c         C  s†   t  d d g d d g g ƒ } |  j ƒ  j } | j | |  j ƒ  ƒ d t ƒ|  j r‚ |  j d |  j j	 d } | j
 | ƒ } n  | S(   Ni    RŠ   g      R@g      à?(   R   t   get_transformt	   transformt   update_from_data_xyt
   get_xydataRq   R^   t   _markersizeR™   Rœ   t   padded(   RP   t   renderert   bboxt   trans_data_to_xyt   ms(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   get_window_extentx  s    	c         C  st   t  j |  | ƒ | j d  k	 r@ | j j j d |  j ƒ |  _ n  | j d  k	 rp | j j j d |  j ƒ |  _	 n  d  S(   Nt   units(
   R   t   set_axest   xaxisR;   t	   callbackst   connectt   recache_alwayst   _xcidt   yaxist   _ycid(   RP   t   ax(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyRÀ   ƒ  s    c         G  sO   t  | ƒ d k r% | d \ } } n | \ } } |  j | ƒ |  j | ƒ d S(   sb   
        Set the x and y data

        ACCEPTS: 2D array (rows are x, y) or two 1D arrays
        i   i    N(   R   t	   set_xdatat	   set_ydata(   RP   t   argsR!   R"   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyRt   �  s
    c         C  s   |  j  d t ƒ d  S(   Nt   always(   R’   Rq   (   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyRÄ   ›  s    c         C  s2  | s |  j  ro |  j |  j ƒ } t j |  j ƒ rK t j | t j ƒ } n t j | t j ƒ } | j ƒ  } n	 |  j	 } | s‡ |  j
 rç |  j |  j ƒ } t j |  j ƒ rÃ t j | t j ƒ } n t j | t j ƒ } | j ƒ  } n	 |  j } t | ƒ d k r3t | ƒ d k r3| t j | j t j ƒ } n  t | ƒ d k rvt | ƒ d k rv| t j | j t j ƒ } n  t | ƒ t | ƒ k r�t d ƒ ‚ n  | j t | ƒ d f ƒ } | j t | ƒ d f ƒ } t j | ƒ sñt j | ƒ rt j | | f d ƒ |  _ n t j | | f d ƒ |  _ |  j d  d  … d f |  _	 |  j d  d  … d f |  _ t |  _ |  j r×t | ƒ d k r×|  j | ƒ r×|  j j d k r×|  j j ƒ  d k r×|  j d  k r×t |  _ n  t |  d ƒ rõ|  j j  } n d } t! |  j d  | ƒ |  _ d  |  _" t |  _  t |  _
 d  S(   Ni   s'   xdata and ydata must be the same lengthi    id   t   rectilineart   lineart   _path(#   Rr   t   convert_xunitsRo   R   t   isMaskedArrayRn   R   t   float_R   RI   Rs   t   convert_yunitsRp   RM   R   t   onest   shapeRU   t   reshapeR   R“   R”   t	   _subslicet   axest
   _is_sortedt   namet
   get_xscaleR¯   R;   Rq   RL   RÏ   t   _interpolation_stepsR
   t   _transformed_path(   RP   RÌ   t   xconvR!   t   yconvR"   t   interpolation_steps(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyR’   ž  sP    		$$	*		c         C  sS   | d k	 r. t |  j | d d … f ƒ } n	 |  j } t | |  j ƒ  ƒ |  _ d S(   s¯   
        Puts a TransformedPath instance at self._transformed_path,
        all invalidation of the transform is then handled by the
        TransformedPath instance.
        N(   R;   R
   R“   RÏ   R   R´   RÝ   (   RP   t   subsliceRÏ   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   _transform_pathÓ  s    "	c         C  s#   |  j  d k r |  j ƒ  n  |  j  S(   sk   
        Return the :class:`~matplotlib.transforms.TransformedPath` instance
        of this line.
        N(   RÝ   R;   Râ   (   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyR•   à  s    c         C  s&   t  j |  | ƒ t |  _ t |  _ d S(   s‹   
        set the Transformation instance used by this artist

        ACCEPTS: a :class:`matplotlib.transforms.Transform` instance
        N(   R   t   set_transformRq   Rr   Rs   (   RP   t   t(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyRã   é  s    	c         C  s8   t  | ƒ d k  r d St j | d | d d !d k ƒ S(   s   return true if x is sortedi   i   i    iÿÿÿÿ(   R   R   t   alltrue(   RP   R!   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyRÙ   ó  s    c   #   	   C  sŠ  |  j  ƒ  s d S|  j s" |  j r/ |  j ƒ  n  d |  _ |  j rÑ |  j rÑ |  j j ƒ  \ } } |  j j	 | g d ƒ \ } |  j j	 | g d ƒ \ } t
 t | d d ƒ | d ƒ } | j |  _ |  j | ƒ n  |  j ƒ  } | j d |  j ƒ  ƒ | j ƒ  } |  j | ƒ |  j ƒ  }	 | j |	 ƒ | j |	 d ƒ | j |  j ƒ | j |  j ƒ |  j ƒ  rw|  j }
 |  j } n |  j }
 |  j } | j | ƒ | j  |
 ƒ | j! |  j" ƒ  ƒ |  j# ƒ  d k	 rÞ| j% |  j# ƒ  Œ  n  |  j& j' |  j( d ƒ } | d k rØ| j) ƒ  \ } } t* | j+ ƒ rØt, |  | ƒ |  _- |  j. j' |  j/ d	 ƒ } t, |  | ƒ } |  j0 ƒ  r¹|  j r¹| j1 ƒ  } xR |  j0 ƒ  D]( } | j2 | ƒ } | | | | | ƒ qŠWqÕ| | | | | j1 ƒ  ƒ qØn  |  j3 ro| j ƒ  } |  j | ƒ |  j4 ƒ  } |  j4 d
 t5 ƒ } |  j6 ƒ  } t7 | ƒ r_| j8 ƒ  d k r_| j d ƒ | j | ƒ n | j | ƒ | j |  j9 ƒ |  j3 } | j: ƒ  \ } } t* | j+ ƒ rb|  j; ƒ  } | d k	 r<t< | ƒ rÙ| \ } } n d | } } | j= d k	 r| j= | d | … } n d } | j+ | d | … } t> | | ƒ } n | } | j? ƒ  } t@ | ƒ tA k r{| jB |  jC ƒ | k } n  | j! | ƒ | j | jD ƒ  ƒ | j  | jE ƒ  ƒ | jF ƒ  } | jG ƒ  } | jB |  jC ƒ }  | jH ƒ  d k rü| jI |  ƒ } n | j d ƒ | d k	 r)| j | d ƒ n  |  j0 ƒ  rz| j1 ƒ  } xX |  j0 ƒ  D]% } | jJ | | | | | | | ƒ qNWn" | jJ | | | | | j1 ƒ  | ƒ | jK ƒ  }! |! rb| d k	 rÎ| j | d ƒ n  | jL ƒ  }" |" jI |  ƒ }" |  j0 ƒ  r:| j1 ƒ  } xX |  j0 ƒ  D]% } | jJ | | |! |" | | | ƒ qWq_| jJ | |! |" | | j1 ƒ  | ƒ qbn  | jM ƒ  n  | jM ƒ  | jN d ƒ d S(   s7   draw the Line with `renderer` unless visiblity is FalseNi    t   leftt   righti   t   line2di   R:   R>   t   altRR   RJ   (O   t   get_visibleRs   Rr   R’   Rl   R×   RØ   t
   get_xboundRI   t   searchsortedt   slicet   maxt   startRâ   R•   t
   open_groupt   get_gidt   new_gct   _set_gc_clipt   _get_rgba_ln_colort   set_foregroundt	   set_alphaRa   t   _antialiasedR\   t
   _linewidtht	   is_dashedt   _dashcapstylet   _dashjoinstylet   _solidcapstylet   _solidjoinstylet   set_joinstylet   set_capstylet   set_snapt   get_snapt   get_sketch_paramsR;   t   set_sketch_paramst   _lineStylest   getRž   R–   R   R˜   t   getattrt	   _lineFunct
   drawStylest
   _drawstylet   get_path_effectst   frozent   get_proxy_rendererR^   t   _get_rgba_faceRq   t   get_markeredgecolorR   t   lowert   _markeredgewidtht!   get_transformed_points_and_affineR±   R   t   codesR
   t   get_snap_thresholdt   typet   floatt   points_to_pixelsR¸   t   get_joinstylet   get_capstylet   get_pathR´   t
   get_markert   scalet   draw_markerst   get_alt_patht   get_alt_transformt   restoret   close_group(#   RP   Rº   t   x0t   x1t   i0t   i1Rá   t   transf_patht   gct   ln_color_rgbat   capRN   t   funcnamet   tpathR¥   t   drawFunct   affine_frozent   pet   pe_renderert   rgbaFacet   rgbaFaceAltt	   edgecolorRz   R‡   t   startindt   strideR  R˜   t
   subsampledt   snapt   marker_patht   marker_transt   wt   alt_marker_patht   alt_marker_trans(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   drawù  sÜ    	 					
c         C  s   |  j  S(   N(   R÷   (   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   get_antialiased‡  s    c         C  s   |  j  S(   N(   t   _color(   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt	   get_colorŠ  s    c         C  s   |  j  S(   N(   R	  (   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   get_drawstyle�  s    c         C  s   |  j  S(   N(   Rž   (   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   get_linestyle�  s    c         C  s   |  j  S(   N(   Rø   (   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   get_linewidth“  s    c         C  s   |  j  j ƒ  S(   N(   R^   R  (   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyR  –  s    c         C  st   |  j  } t | ƒ rl | d k rl |  j j ƒ  d k r= |  j S|  j j ƒ  rb |  j ƒ  d k rb d S|  j Sn | Sd  S(   Nt   autot   .RJ   RR   t   k(   RC  RJ   (   t   _markeredgecolorR   R^   R  R=  t	   is_filledR­   (   RP   t   mec(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyR  ™  s    	!
c         C  s   |  j  S(   N(   R  (   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   get_markeredgewidth¥  s    c         C  sa   | r |  j  } n	 |  j } t | ƒ rY | j ƒ  d k rY |  j ƒ  d k rO d S|  j Sn | Sd  S(   NRB  RR   (   t   _markerfacecoloraltt   _markerfacecolorR   R  R­   R=  (   RP   Ré   t   fc(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   _get_markerfacecolor¨  s    	
c         C  s   |  j  d t ƒ S(   NRé   (   RL  R”   (   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   get_markerfacecolor¶  s    c         C  s   |  j  d t ƒ S(   NRé   (   RL  Rq   (   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   get_markerfacecoloralt¹  s    c         C  s   |  j  S(   N(   R¸   (   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   get_markersize¼  s    c         C  s"   |  j  d | ƒ |  j d | ƒ f S(   sb   
        Return the xdata, ydata.

        If *orig* is *True*, return the original data.
        t   orig(   t	   get_xdatat	   get_ydata(   RP   RP  (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   get_data¿  s    c         C  s*   | r |  j  S|  j r# |  j ƒ  n  |  j S(   s|   
        Return the xdata.

        If *orig* is *True*, return the original data, else the
        processed data.
        (   Ro   Rr   R’   RI   (   RP   RP  (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyRQ  Ç  s
    	c         C  s*   | r |  j  S|  j r# |  j ƒ  n  |  j S(   s|   
        Return the ydata.

        If *orig* is *True*, return the original data, else the
        processed data.
        (   Rp   Rs   R’   RM   (   RP   RP  (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyRR  Ô  s
    	c         C  s&   |  j  s |  j r |  j ƒ  n  |  j S(   se   
        Return the :class:`~matplotlib.path.Path` object associated
        with this line.
        (   Rs   Rr   R’   RÏ   (   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyR  á  s    c         C  s&   |  j  s |  j r |  j ƒ  n  |  j S(   s<   
        Return the *xy* data as a Nx2 numpy array.
        (   Rs   Rr   R’   R“   (   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyR·   ê  s    c         C  s   | |  _  d S(   sk   
        True if line should be drawin with antialiased rendering

        ACCEPTS: [True | False]
        N(   R÷   (   RP   t   b(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyRa   ò  s    c         C  s   | |  _  d S(   sR   
        Set the color of the line

        ACCEPTS: any matplotlib color
        N(   R=  (   RP   Ry   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyR]   ú  s    c         C  s   | |  _  d S(   sQ  
        Set the drawstyle of the plot

        'default' connects the points with lines. The steps variants
        produce step-plots. 'steps' is equivalent to 'steps-pre' and
        is maintained for backward-compatibility.

        ACCEPTS: ['default' | 'steps' | 'steps-pre' | 'steps-mid' |
                  'steps-post']
        N(   R	  (   RP   R†   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyR[     s    c         C  s   | |  _  d S(   sV   
        Set the line width in points

        ACCEPTS: float value in points
        N(   Rø   (   RP   R8  (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyR\     s    c         C  sÏ   xb |  j  D]W } | j | ƒ r
 |  j | ƒ t | ƒ t | ƒ k rW | t | ƒ } n d } Pq
 q
 W| |  j k r­ | t k r� t | } q­ t j d | t | ƒ f ƒ n  | d k rÂ d } n  | |  _	 d S(   s   
        Set the linestyle of the line (also accepts drawstyles)


        ================    =================
        linestyle           description
        ================    =================
        ``'-'``             solid
        ``'--'``            dashed
        ``'-.'``            dash_dot
        ``':'``             dotted
        ``'None'``          draw nothing
        ``' '``             draw nothing
        ``''``              draw nothing
        ================    =================

        'steps' is equivalent to 'steps-pre' and is maintained for
        backward-compatibility.

        .. seealso::

            :meth:`set_drawstyle`
               To set the drawing style (stepping) of the plot.

        ACCEPTS: [``'-'`` | ``'--'`` | ``'-.'`` | ``':'`` | ``'None'`` |
                  ``' '`` | ``''``]
        and any drawstyle in combination with a linestyle, e.g., ``'steps--'``.
        R5   s   Unrecognized line style %s, %sR<   R=   R;   N(   R<   R=   (
   t   drawStyleKeyst
   startswithR[   R   R  R   R   t   reportR  Rž   (   RP   Rx   t   ds(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyRZ     s    		c         C  s   |  j  j | ƒ d S(   sÈ   
        Set the line marker

        Parameters
        -----------

        marker: marker style
            See `~matplotlib.markers` for full description of possible
            argument

        N(   R^   R_   (   RP   Rz   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyR_   H  s    c         C  s"   | d k r d } n  | |  _ d S(   sR   
        Set the marker edge color

        ACCEPTS: any matplotlib color
        RB  N(   R;   RE  (   RP   t   ec(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyRf   W  s    	c         C  s&   | d k r t d } n  | |  _ d S(   s]   
        Set the marker edge width in points

        ACCEPTS: float value in points
        s   lines.markeredgewidthN(   R;   R   R  (   RP   t   ew(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyRg   a  s    c         C  s"   | d k r d } n  | |  _ d S(   sS   
        Set the marker face color.

        ACCEPTS: any matplotlib color
        RB  N(   R;   RJ  (   RP   RK  (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyRd   k  s    	c         C  s"   | d k r d } n  | |  _ d S(   s]   
        Set the alternate marker face color.

        ACCEPTS: any matplotlib color
        RB  N(   R;   RI  (   RP   RK  (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyRe   v  s    	c         C  s   | |  _  d S(   sG   
        Set the marker size in points

        ACCEPTS: float
        N(   R¸   (   RP   t   sz(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyRb   �  s    c         C  s   | |  _  t |  _ d S(   sH   
        Set the data np.array for x

        ACCEPTS: 1D array
        N(   Ro   Rq   Rr   (   RP   R!   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyRÉ   ‰  s    	c         C  s   | |  _  t |  _ d S(   sH   
        Set the data np.array for y

        ACCEPTS: 1D array
        N(   Rp   Rq   Rs   (   RP   R"   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyRÊ   ’  s    	c         C  sH   | d k s t | ƒ d k r. |  j d ƒ n |  j d ƒ | |  _ d S(   sè   
        Set the dash sequence, sequence of dashes with on off ink in
        points.  If seq is empty or if seq = (None, None), the
        linestyle will be set to solid.

        ACCEPTS: sequence of on/off ink in points
        i    R5   s   --N(   NN(   R;   R   RZ   Rc   (   RP   t   seq(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt
   set_dashes›  s    c         C  s   |  j  | | | | ƒ d  S(   N(   R  (   RP   Rº   R&  R¤   t   trans(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyR>   ©  s    c         C  s  |  j  } t j d t | ƒ d d f t j ƒ } | d  d  … d f | d  d … d f | d d  d … d f <| d d  d … d f <| d  d  … d f | d d  … d f | d d  d … d f <| d d d … d f <t | ƒ } | j |  j ƒ  ƒ } |  j	 | | | t
 ƒ  ƒ d  S(   Ni   i   i    iÿÿÿÿ(   R“   R   t   zerosR   R   RÒ   R
   t   transformedR´   R  R   (   RP   Rº   R&  R¤   R^  R˜   RC   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyRA   ¬  s    	)SSc         C  s  |  j  } t j d t | ƒ d d f t j ƒ } | d  d  … d f | d d  … d f | d  d  d … d f <| d d d … d f <| d  d  … d f | d  d … d f | d d  d … d f <| d d  d … d f <t | ƒ } | j |  j ƒ  ƒ } |  j	 | | | t
 ƒ  ƒ d  S(   Ni   i   i    iÿÿÿÿ(   R“   R   R_  R   R   RÒ   R
   R`  R´   R  R   (   RP   Rº   R&  R¤   R^  R˜   RC   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyRB   ·  s    	)SSc         C  s]  |  j  } t j d t | ƒ d f t j ƒ } d | d  d … d f | d d  … d f | d d d … d f <d | d  d … d f | d d  … d f | d d  d … d f <| d | d <| d | d	 <| d  d  … d f | d  d  … d f | d d  d … d f <| d d  d … d f <t | ƒ } | j |  j ƒ  ƒ } |  j	 | | | t
 ƒ  ƒ d  S(
   Ni   g      à?iÿÿÿÿi    i   (   i    i    (   i    i    (   iÿÿÿÿi    (   iÿÿÿÿi    (   R“   R   R_  R   R   RÒ   R
   R`  R´   R  R   (   RP   Rº   R&  R¤   R^  R˜   RC   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyR@   Â  s    	%AASc         C  s$   | j  d ƒ | j | | | ƒ d  S(   Nt   solid(   RZ   t	   draw_path(   RP   Rº   R&  R¤   R^  (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyR4   Ð  s    c         C  sI   | j  d ƒ |  j d  k	 r2 | j d |  j ƒ n  | j | | | ƒ d  S(   Nt   dashedi    (   RZ   Rc   R;   R]  Rb  (   RP   Rº   R&  R¤   R^  (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyR6   Ô  s    c         C  s$   | j  d ƒ | j | | | ƒ d  S(   Nt   dashdot(   RZ   Rb  (   RP   Rº   R&  R¤   R^  (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyR7   Û  s    c         C  s$   | j  d ƒ | j | | | ƒ d  S(   Nt   dotted(   RZ   Rb  (   RP   Rº   R&  R¤   R^  (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyR8   ß  s    c         C  sì   t  j |  | ƒ | j |  _ | j |  _ | j |  _ | j |  _ | j |  _ | j |  _ | j |  _ | j	 |  _	 | j
 |  _
 | j |  _ | j |  _ | j |  _ | j |  _ | j |  _ t | j j ƒ  | j j ƒ  ƒ |  _ | j |  _ d S(   s"   copy properties from other to selfN(   R   t   update_fromRž   Rø   R=  R¸   RJ  RI  RE  R  Rc   Rú   Rû   Rü   Rý   R   R^   R  R­   R	  (   RP   t   other(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyRf  ã  s$    c         C  sL   |  j  d | ƒ } t | ƒ r9 | j ƒ  d k r9 d  } n t j | ƒ } | S(   NRé   RR   (   RL  R   R  R;   R	   t   to_rgb(   RP   Ré   t	   facecolort   rgbFace(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   _get_rgb_faceù  s
    	c         C  sR   |  j  d | ƒ } t | ƒ r9 | j ƒ  d k r9 d  } n t j | |  j ƒ } | S(   NRé   RR   (   RL  R   R  R;   R	   t   to_rgbat   _alpha(   RP   Ré   Ri  R/  (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyR    s
    	c         C  sI   |  j  } t | ƒ r0 | j ƒ  d k r0 d  } n t j | |  j ƒ } | S(   NRR   (   R=  R   R  R;   R	   Rl  Rm  (   RP   Ré   t   ln_colort   rgba_ln(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyRô   	  s
    		c         C  s   |  j  | ƒ d S(   s   alias for set_antialiasedN(   Ra   (   RP   t   val(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   set_aa  s    c         C  s   |  j  | ƒ d S(   s   alias for set_colorN(   R]   (   RP   Rp  (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   set_c  s    c         C  s   |  j  | ƒ d S(   s   alias for set_linestyleN(   RZ   (   RP   Rp  (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   set_ls  s    c         C  s   |  j  | ƒ d S(   s   alias for set_linewidthN(   R\   (   RP   Rp  (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   set_lw  s    c         C  s   |  j  | ƒ d S(   s   alias for set_markeredgecolorN(   Rf   (   RP   Rp  (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   set_mec"  s    c         C  s   |  j  | ƒ d S(   s   alias for set_markeredgewidthN(   Rg   (   RP   Rp  (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   set_mew&  s    c         C  s   |  j  | ƒ d S(   s   alias for set_markerfacecolorN(   Rd   (   RP   Rp  (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   set_mfc*  s    c         C  s   |  j  | ƒ d S(   s    alias for set_markerfacecoloraltN(   Re   (   RP   Rp  (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt
   set_mfcalt.  s    c         C  s   |  j  | ƒ d S(   s   alias for set_markersizeN(   Rb   (   RP   Rp  (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   set_ms2  s    c         C  s
   |  j  ƒ  S(   s   alias for get_antialiased(   R<  (   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   get_aa6  s    c         C  s
   |  j  ƒ  S(   s   alias for get_color(   R>  (   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   get_c:  s    c         C  s
   |  j  ƒ  S(   s   alias for get_linestyle(   R@  (   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   get_ls>  s    c         C  s
   |  j  ƒ  S(   s   alias for get_linewidth(   RA  (   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   get_lwB  s    c         C  s
   |  j  ƒ  S(   s   alias for get_markeredgecolor(   R  (   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   get_mecF  s    c         C  s
   |  j  ƒ  S(   s   alias for get_markeredgewidth(   RH  (   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   get_mewJ  s    c         C  s
   |  j  ƒ  S(   s   alias for get_markerfacecolor(   RM  (   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   get_mfcN  s    c         C  s
   |  j  ƒ  S(   s    alias for get_markerfacecoloralt(   RN  (   RP   Ré   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt
   get_mfcaltR  s    c         C  s
   |  j  ƒ  S(   s   alias for get_markersize(   RO  (   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   get_msV  s    c         C  sL   | j  ƒ  } | |  j k r? t d | f d |  j f ƒ ‚ n  | |  _ d S(   si   
        Set the join style for dashed linestyles
        ACCEPTS: ['miter' | 'round' | 'bevel']
        s    set_dash_joinstyle passed "%s";
s   valid joinstyles are %sN(   R  t	   validJoinR‘   Rû   (   RP   t   s(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyRW   Z  s
    c         C  sL   | j  ƒ  } | |  j k r? t d | f d |  j f ƒ ‚ n  | |  _ d S(   sh   
        Set the join style for solid linestyles
        ACCEPTS: ['miter' | 'round' | 'bevel']
        s!   set_solid_joinstyle passed "%s";
s   valid joinstyles are %sN(   R  Rƒ  R‘   Rý   (   RP   R„  (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyRY   e  s
    c         C  s   |  j  S(   s:   
        Get the join style for dashed linestyles
        (   Rû   (   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   get_dash_joinstylep  s    c         C  s   |  j  S(   s9   
        Get the join style for solid linestyles
        (   Rý   (   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   get_solid_joinstylev  s    c         C  sL   | j  ƒ  } | |  j k r? t d | f d |  j f ƒ ‚ n  | |  _ d S(   sm   
        Set the cap style for dashed linestyles

        ACCEPTS: ['butt' | 'round' | 'projecting']
        s   set_dash_capstyle passed "%s";
s   valid capstyles are %sN(   R  t   validCapR‘   Rú   (   RP   R„  (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyRV   |  s
    c         C  sL   | j  ƒ  } | |  j k r? t d | f d |  j f ƒ ‚ n  | |  _ d S(   sm   
        Set the cap style for solid linestyles

        ACCEPTS: ['butt' | 'round' |  'projecting']
        s    set_solid_capstyle passed "%s";
s   valid capstyles are %sN(   R  R‡  R‘   Rü   (   RP   R„  (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyRX   ‰  s
    c         C  s   |  j  S(   s9   
        Get the cap style for dashed linestyles
        (   Rú   (   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   get_dash_capstyle–  s    c         C  s   |  j  S(   s8   
        Get the cap style for solid linestyles
        (   Rü   (   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   get_solid_capstyleœ  s    c         C  s   |  j  d k S(   s    return True if line is dashstyles   --s   -.R9   (   s   --s   -.R9   (   Rž   (   RP   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyRù   ¢  s    (   RD   s   roundRF   (   s   miters   roundRH   N(t   t   __name__t
   __module__t   __doc__t
   lineStylesR  t   _drawStyles_lt   _drawStyles_sR  Rj   t   keysRU  R   t   markerst   filled_markerst
   fillstylest
   fillStylest   zorderR‡  Rƒ  RQ   R;   RT   Rª   R«   R¬   R­   Rh   R`   R±   R³   R¾   RÀ   R   Rt   RÄ   R”   R’   Râ   R•   Rã   RÙ   R   R;  R<  R>  R?  R@  RA  R  R  RH  RL  RM  RN  RO  Rq   RS  RQ  RR  R  R·   Ra   R]   R[   R\   RZ   R   t   dedent_interpdR_   Rf   Rg   Rd   Re   Rb   RÉ   RÊ   R]  R>   RA   RB   R@   R4   R6   R7   R8   Rf  Rk  R  Rô   Rq  Rr  Rs  Rt  Ru  Rv  Rw  Rx  Ry  Rz  R{  R|  R}  R~  R  R€  R�  R‚  RW   RY   R…  R†  RV   RX   Rˆ  R‰  Rù   (    (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyR3   I   s  

				X	J												5			
	Ž																			1	
	
																																											t   VertexSelectorc           B  s)   e  Z d  Z d „  Z d „  Z d „  Z RS(   sý  
    Manage the callbacks to maintain a list of selected vertices for
    :class:`matplotlib.lines.Line2D`. Derived classes should override
    :meth:`~matplotlib.lines.VertexSelector.process_selected` to do
    something with the picks.

    Here is an example which highlights the selected verts with red
    circles::

        import numpy as np
        import matplotlib.pyplot as plt
        import matplotlib.lines as lines

        class HighlightSelected(lines.VertexSelector):
            def __init__(self, line, fmt='ro', **kwargs):
                lines.VertexSelector.__init__(self, line)
                self.markers, = self.axes.plot([], [], fmt, **kwargs)

            def process_selected(self, ind, xs, ys):
                self.markers.set_data(xs, ys)
                self.canvas.draw()

        fig = plt.figure()
        ax = fig.add_subplot(111)
        x, y = np.random.rand(2, 30)
        line, = ax.plot(x, y, 'bs-', picker=5)

        selector = HighlightSelected(line)
        plt.show()

    c         C  s‘   t  | d ƒ s t d ƒ ‚ n  | j ƒ  d k r? t d ƒ ‚ n  | j |  _ | |  _ |  j j j |  _ |  j j d |  j	 ƒ |  _
 t ƒ  |  _ d S(   sê   
        Initialize the class with a :class:`matplotlib.lines.Line2D`
        instance.  The line should already be added to some
        :class:`matplotlib.axes.Axes` instance and should have the
        picker property set.
        RØ   s'   You must first add the line to the Axess2   You must first set the picker property of the linet
   pick_eventN(   RL   RU   t
   get_pickerR;   RØ   t   lineR™   t   canvast   mpl_connectt   onpickt   cidt   setRŽ   (   RP   Rš  (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyRT   Ç  s    	c         C  s   d S(   sã   
        Default "do nothing" implementation of the
        :meth:`process_selected` method.

        *ind* are the indices of the selected vertices.  *xs* and *ys*
        are the coordinates of the selected vertices.
        N(    (   RP   RŽ   t   xst   ys(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   process_selectedÜ  s    c         C  s©   | j  |  j k	 r d SxC | j D]8 } | |  j k rH |  j j | ƒ q  |  j j | ƒ q  Wt |  j ƒ } | j ƒ  |  j j ƒ  \ } } |  j | | | | | ƒ d S(   s=   When the line is picked, update the set of selected indicies.N(	   t   artistRš  RŽ   t   removet   addt   listt   sortRS  R¢  (   RP   t   eventt   iRŽ   Ru   Rv   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyR�  æ  s    
(   RŠ  R‹  RŒ  RT   R¢  R�  (    (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyR—  §  s   		
(5   RŒ  t
   __future__R    R   Rš   t   numpyR   R   t
   matplotlibR   R£  R   t   cbookR   R   R   R   t   colorsR	   R¤   R
   t
   transformsR   R   R   R   R   R   t   matplotlib.markersR   R   R   R   R   R   R   R   R   R2   R3   R—  R  R�  R‘  t   lineMarkersR  R“  R”  t   interpdRj   t   kwdocR–  RT   (    (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/lines.pyt   <module>   s<   """	*ÿ ÿ ÿ ÿ bP				