
 m[c           @` s  d  Z  d d l m Z m Z m Z m Z d d l Z d d l Z d d l Z d d l	 Z	 d d l
 m
 Z
 d d l Z d d l Z d d l m Z d d l m Z m Z d d l m Z m Z m 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 d d l 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, m- Z- m. Z. d d l+ m/ Z0 d d l1 m2 Z2 m3 Z3 d d l4 m5 Z5 d d l m6 Z6 d d l7 m8 Z8 m9 Z9 d d l m: Z: d d l; m< Z< m= Z= d d l> Z? d d l@ mA ZA d d lB mC ZC d d lD mE ZE mF ZF d d lG mH ZH mI ZI mJ ZJ mK ZK d d lL mM ZM mN ZN mO ZO mP ZP d  d! lQ mR ZR mS ZS mT ZT mU ZU mV ZV mW ZW mX ZX mY ZY mZ ZZ m[ Z[ m\ Z\ m] Z] m^ Z^ m_ Z_ m` Z` ma Za mb Zb mc Zc md Zd d d" le mf Zf d#   Zg eg   ef   \ ah ai aj ak d am en ao d$   Zp d%   Zq e jr js Zs e jt e. ju  d d ev d&   Zu d'   Zw d(   Zx d)   Zy d*   Zz d+   Z{ d,   Z| e jt e j}  d-    Z} e jt e j'  d d d.   Z' e jt e j~  d/    Z~ d0   Z d1   Z e j e0  d2    Z/ d  d3 d4 d5  Z d d d d d ev e en d6  Z d7   Z d8   Z d9   Z d:   Z d;   Z d<   Z e jt e j  d=    Z e jt e j  d>    Z d?   Z d@   Z dA   Z e jt e j  dB    Z e jt e j  dC    Z e jt e j  dD    Z e jt e j  dE    Z e jt e j  dF    Z e jt e j  dG    Z dH   Z dI Z e dJ dK e d dL   Z e dJ dK e dM    Z e dJ dK e dN    Z d dO  Z d dP  Z dQ   Z dR   Z dS   Z d  d  en en ev d d dT  Z d  d  d dU  Z d dV  Z d dW  Z dX   Z d dY  Z dZ d d d d[  Z d d\  Z d]   Z d^   Z d_   Z d`   Z da   Z db   Z e j dc    Z e j dd    Z de   Z df   Z dg   Z dh   Z di   Z dj   Z dk   Z dl   Z e dm  dn    Z do   Z dp   Z d d d dq  Z e j j e _  d d dr  Z ds   Z e jt e!  dt    Z  e jt e#  du    Z" d dv  Z dw   Z d d dx d dy dz d ev ev d{ 	 Z d|   Z e e2 j  d d d d} d~   Z ep   e e2 j  d d d   Z e e2 j  d d d d d d d d   Z e e2 j  d d   Z e e2 j  d d d  d d   Z e e2 j  d d  d d   Z e e2 j  d d d  d d   Z e e2 j  d d  d d   Z e e2 j  d    Z e e2 j  d    Z e e2 j  d d d   Z e e2 j  d d d d d d d d d d d d d d d d d d d d d d ev en d d d d   Z e e2 j  d d4 d e6 j e6 j d d d d d d d   Z e e2 j  d    Z e e2 j  d    Z e e2 j  d    Z e e2 j  d d d d d d d d d d d d d   Z e e2 j  d d d d d d en en en en en d  d d d d   Z e e2 j  d d  d  d d d d d d   Z e e2 j  d    Z e e2 j  d d en d d d d   Z e e2 j  d d d en d d d   Z e e2 j  d d3 d d d d d d d d d d d e? j d en d d d   Z e e2 j  d d d d en d d d d d en d d en d d d d   Z e e2 j  d d en d d d d d d   Z e e2 j  d d d d d d   Z e e2 j  d d d d d d d d d d d  d d d d d d d   Z e e2 j  d    Z e e2 j  d d d d d d d d d   Z e e2 j  d    Z e e2 j  d    Z e e2 j  d d d d d d d d   Z e e2 j  d d d d d en d d d ev d d d en en d d d   Z e e2 j  d    Z e e2 j  d d ev en d d d   Z e e2 j  d d d d d d d d d d d d d   Z e e2 j  d    Z e e2 j  d    Z e e2 j  d d d d d d d d d d d d d d   Z e e2 j  d    Z e e2 j  d    Z e e2 j  d d d d d d d d d d d d d d d d d d   Z e e2 j  d    Z e e2 j  d    Z e e2 j  d    Z e e2 j  d  d d d d d  d d d d d d d d d d   Z e e2 j  d    Z e e2 j  d    Z e e2 j  d    Z e e2 j  d    Z e e2 j  d ev d en ev en d3 d d d d 
  Z e e2 j  d d d d d d   Z e e2 j  ev e6 j ev d d d d   Z e e2 j  d    Z e jt e2 j  d    Z e jt e2 j  d d d d   Z e jt e2 j d    Ze jt e2 j d    Ze jt e2 j  d en d   Z e jt e2 j d    Ze jt e2 j d    Ze jt e2 j d d d   Ze jt e2 j d d   Ze jt e2 j d    Ze jt e2 j ev d 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d   Zd   Zd   Zd   Ze   d S(   u  
`matplotlib.pyplot` is a state-based interface to matplotlib. It provides
a MATLAB-like way of plotting.

pyplot is mainly intended for interactive plots and simple cases of programmatic
plot generation::

    import numpy as np
    import matplotlib.pyplot as plt

    x = np.arange(0, 5, 0.1)
    y = np.sin(x)
    plt.plot(x, y)

The object-oriented API is recommended for more complex plots.
i    (   t   absolute_importt   divisiont   print_functiont   unicode_literalsN(   t   cycler(   t   style(   t   _pylab_helperst   interactive(   t   dedentt   silent_listt
   is_numlike(   t   _string_to_bool(   t
   deprecatedt   warn_deprecated(   t	   docstring(   t   FigureCanvasBase(   t   Figuret	   figaspect(   t   GridSpec(   t   imread(   t   imsave(   t   rcParamst   rcParamsDefaultt   get_backend(   t
   rc_context(   t   interactive_bk(   t   getpt   gett   Artist(   t   setp(   t   Axest   Subplot(   t	   PolarAxes(   t   mlab(   t   get_scale_docst   get_scale_names(   t   cm(   t   get_cmapt   register_cmap(   t	   Normalize(   t   Line2D(   t   Textt
   Annotation(   t   Polygont	   Rectanglet   Circlet   Arrow(   t   SubplotToolt   Buttont   Slidert   Widgeti   (   t
   TickHelpert	   Formattert   FixedFormattert   NullFormattert   FuncFormattert   FormatStrFormattert   ScalarFormattert   LogFormattert   LogFormatterExponentt   LogFormatterMathtextt   Locatort   IndexLocatort   FixedLocatort   NullLocatort   LinearLocatort
   LogLocatort   AutoLocatort   MultipleLocatort   MaxNLocator(   t   pylab_setupc          C` s  t  d }  t  d s! |  t k r% d St  d j d  } d t j k r |  d k r d d l } | j j   rd d | t  d <qn5d	 t j k r |  d
 k r d d l } | j	 j
 j   sd t  d <qn d t j k r|  d k rd d l } | j j
 j   sd t  d <qn d t j k r|  d k rd t j k r`d d l m } | j } n d d l } | j } |   j   rd d | t  d <qn d t j k r|  d k rn  d S(   u    If rcParams['backend_fallback'] is true, check to see if the
        current backend is compatible with the current running event
        loop, and if not switches to a compatible one.
    u   backendu   backend_fallbackNu   Aggu   wxu   WXu   WXAggi    u   PyQt4.QtCoreu   Qt4Aggu   qt4Aggu   PyQt5.QtCoreu   Qt5Aggu   qt5Aggu   gtku   GTKu   GTKAggu   GTKCairou   gi(   t   GObjectu   Tkinteru   TkAgg(   u   WXu   WXAgg(   u   GTKu   GTKAggu   GTKCairo(   R   t   _interactive_bkt   endswitht   syst   modulest   wxt   Appt   IsMainLoopRunningt   PyQt4.QtGuit   QtGuit   qAppt
   startingUpt   PyQt5.QtWidgetst	   QtWidgetst   gi.repositoryRG   t   MainLoopt   gobjectt
   is_running(   t   backendt   is_agg_backendRL   t   PyQt4t   PyQt5RG   t   mlRW   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   _backend_selectionJ   s6    
	c          C` s  d t  f d     Y}  y d t j k r d d l m } |   } | d k rY |     n  t rc d Sd   } y | j j d |  Wn t	 k
 r | j
 |  n X| a t a d d	 l m } | j t    } | r | j |  q n t a Wn t |  f k
 rt a n Xd S(
   u   
    Install a repl display hook so that any stale figure are automatically
    redrawn when control is returned to the repl.

    This works with IPython terminals and kernels,
    as well as vanilla python shells.
    t   _NotIPythonc           B` s   e  Z RS(    (   t   __name__t
   __module__(    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR_      s   u   IPythoni    (   t   get_ipythonNc           S` s   t  j   r t   n  d  S(   N(   t
   matplotlibt   is_interactivet   draw_all(    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   post_execute   s    u   post_execute(   t   backend2gui(   t	   ExceptionRJ   RK   t   IPythonRb   t   Nonet   _IP_REGISTEREDt   eventst   registert   AttributeErrort   register_post_executet   Falset   _INSTALL_FIG_OBSERVERt   IPython.core.pylabtoolsRg   R   R   t
   enable_guit   Truet   ImportError(   R_   Rb   t   ipRf   Rg   t   ipython_gui_name(    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   install_repl_displayhooky   s.    		
c          C` sr   t  r_ d d l m }  |    } y | j j d t   Wn t k
 rU t d   n Xd a  n  t rn t	 a n  d S(   u  
    Uninstalls the matplotlib display hook.

    .. warning

       Need IPython >= 2 for this to work.  For IPython < 2 will raise a
       ``NotImplementedError``

    .. warning

       If you are using vanilla python and have installed another
       display hook this will reset ``sys.displayhook`` to what ever
       function was there when matplotlib installed it's displayhook,
       possibly discarding your changes.
    i    (   Rb   u   post_executeu*   Can not unregister events in IPython < 2.0N(
   Rk   Ri   Rb   Rl   t
   unregisterRn   t   NotImplementedErrorRj   Rq   Rp   (   Rb   Rv   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   uninstall_repl_displayhook   s    		c         C` s+   |  d  k r t   }  n  |  j | d | S(   Nt   include_self(   Rj   t   gcft   findobj(   t   ot   matchR|   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR~      s    c         C` sL   t  d  t j |  d t d t d d l m } |   \ a a a	 a
 d S(   u   
    Switch the default backend.  This feature is **experimental**, and
    is only expected to work switching to an image backend.  e.g., if
    you have a bunch of PostScript scripts that you want to run from
    an interactive ipython session, you may want to switch to the PS
    backend before running them to avoid having a bunch of GUI windows
    popup.  If you try to interactively switch from one GUI backend to
    another, you will explode.

    Calling this command will close all open windows.
    u   allt   warnt   forcei    (   RF   N(   t   closeRc   t   useRp   Rt   t   matplotlib.backendsRF   t   _backend_modt   new_figure_managert   draw_if_interactivet   _show(   t
   newbackendRF   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   switch_backend   s    
c          O` s   t  |  |   S(   uL  
    Display a figure.
    When running in ipython with its pylab mode, display all
    figures and return to the ipython prompt.

    In non-interactive mode, display all figures and block until
    the figures have been closed; in interactive mode it has no
    effect unless figures were created prior to a change from
    non-interactive to interactive mode (not recommended).  In
    that case it displays the figures but does not block.

    A single experimental keyword argument, *block*, may be
    set to True or False to override the blocking behavior
    described above.
    (   R   (   t   argst   kw(    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   show   s    c           C` s
   t  j   S(   u,   
    Return status of interactive mode.
    (   Rc   Rd   (    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   isinteractive   s    c           C` s   t  j t  t   d S(   u   Turn interactive mode off.N(   Rc   R   Rp   R{   (    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   ioff  s    c           C` s   t  j t  t   d S(   u   Turn interactive mode on.N(   Rc   R   Rt   Rx   (    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   ion  s    c         C` sk   t  j j   } | d k	 rZ | j } | j j r= | j   n  t d t	  | j
 |   n t j |   d S(   u  
    Pause for *interval* seconds.

    If there is an active figure, it will be updated and displayed before the
    pause, and the GUI event loop (if any) will run during the pause.

    This can be used for crude animation.  For more complex animation, see
    :mod:`matplotlib.animation`.

    Notes
    -----
    This function is experimental; its behavior may be changed or extended in a
    future release.
    t   blockN(   R   t   Gcft
   get_activeRj   t   canvast   figuret   stalet	   draw_idleR   Rp   t   start_event_loopt   timet   sleep(   t   intervalt   managerR   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   pause  s    	c          O` s   t  j |  |   d  S(   N(   Rc   t   rc(   R   t   kwargs(    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR   -  s    c         C` s   t  j |  |  S(   N(   Rc   R   (   R   t   fname(    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR   2  s    c           C` s$   t  j   t  j   r  t   n  d  S(   N(   Rc   t
   rcdefaultsRd   Re   (    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR   7  s    
c           C` s   t    j   S(   u  
    Get the current colorable artist.  Specifically, returns the
    current :class:`~matplotlib.cm.ScalarMappable` instance (image or
    patch collection), or *None* if no images or patch collections
    have been defined.  The commands :func:`~matplotlib.pyplot.imshow`
    and :func:`~matplotlib.pyplot.figimage` create
    :class:`~matplotlib.image.Image` instances, and the commands
    :func:`~matplotlib.pyplot.pcolor` and
    :func:`~matplotlib.pyplot.scatter` create
    :class:`~matplotlib.collections.Collection` instances.  The
    current image is an attribute of the current axes, or the nearest
    earlier axes in the current figure that contains an image.
    (   R}   t   _gci(    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   gciA  s    c         C` s   t    j |   d S(   u  
    Set the current image.  This image will be the target of colormap
    commands like :func:`~matplotlib.pyplot.jet`,
    :func:`~matplotlib.pyplot.hot` or
    :func:`~matplotlib.pyplot.clim`).  The current image is an
    attribute of the current axes.
    N(   t   gcat   _sci(   t   im(    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   sciR  s    c          O` s   t  |  |   S(   N(   t   _setp(   R   R   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR   _  s    id   i   c         C` s   t  d r t d   n  d d l m } t i d d d g d 6d	 d
 6|  | | f d 6| j d d d d  g d 6d d 6d d 6d d 6d d 6t d 6t d 6d d 6d d 6d d  6d d! 6d d" 6 S(#   u  
    Turns on `xkcd <https://xkcd.com/>`_ sketch-style drawing mode.
    This will only have effect on things drawn after this function is
    called.

    For best results, the "Humor Sans" font should be installed: it is
    not included with matplotlib.

    Parameters
    ----------
    scale : float, optional
        The amplitude of the wiggle perpendicular to the source line.
    length : float, optional
        The length of the wiggle along the line.
    randomness : float, optional
        The scale factor by which the length is shrunken or expanded.

    Notes
    -----
    This function works by a number of rcParams, so it will probably
    override others you have set before.

    If you want the effects of this function to be temporary, it can
    be used as a context manager, for example::

        with plt.xkcd():
            # This figure will be in XKCD-style
            fig1 = plt.figure()
            # ...

        # This figure will be in regular style
        fig2 = plt.figure()
    u   text.usetexu3   xkcd mode is not compatible with text.usetex = Truei    (   t   patheffectsu   xkcdu
   Humor Sansu   Comic Sans MSu   font.familyg      ,@u	   font.sizeu   path.sketcht	   linewidthi   t
   foregroundu   wu   path.effectsg      ?u   axes.linewidthg       @u   lines.linewidthu   whiteu   figure.facecolorg        u   grid.linewidthu	   axes.gridu   axes.unicode_minusu   blacku   axes.edgecolori   u   xtick.major.sizei   u   xtick.major.widthu   ytick.major.sizeu   ytick.major.width(   R   t   RuntimeErrorRc   R   R   t
   withStrokeRp   (   t   scalet   lengtht
   randomnessR   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   xkcdd  s(    "
c         ` s  | d k r t d } n  | d k r2 t d } n  | d k rK t d } n  | d k rd t d } n  t   }	 |	 r t |	  d n d }
 d } |  d k r |
 }  nz t |  t j  r|  } t   } | | k r | d k r t j	 d  n  |
 }  q| j
 |  } |	 | }  n t |   }  t j j |       d k rrt d	 } | d k r{t |	  | k r{t j	 d
 | t  n  t   j   d k rd } n  t |  d | d | d | d | d | d | |   | r  j |    j j j |  n    f d   }   j j d |  } |   _ t j j      j j } |  | _ t j   r]t   n  t rrt  | _! qrn  | r  j j j"   n    j j S(   u  
    Creates a new figure.

    Parameters
    ----------

    num : integer or string, optional, default: none
        If not provided, a new figure will be created, and the figure number
        will be incremented. The figure objects holds this number in a `number`
        attribute.
        If num is provided, and a figure with this id already exists, make
        it active, and returns a reference to it. If this figure does not
        exists, create it and returns it.
        If num is a string, the window title will be set to this figure's
        `num`.

    figsize : tuple of integers, optional, default: None
        width, height in inches. If not provided, defaults to rc
        figure.figsize.

    dpi : integer, optional, default: None
        resolution of the figure. If not provided, defaults to rc figure.dpi.

    facecolor :
        the background color. If not provided, defaults to rc figure.facecolor.

    edgecolor :
        the border color. If not provided, defaults to rc figure.edgecolor.

    frameon : bool, optional, default: True
        If False, suppress drawing the figure frame.

    FigureClass : class derived from matplotlib.figure.Figure
        Optionally use a custom Figure instance.

    clear : bool, optional, default: False
        If True and the figure already exists, then it is cleared.

    Returns
    -------
    figure : Figure
        The Figure instance returned will also be passed to new_figure_manager
        in the backends, which allows to hook custom Figure classes into the
        pylab interface. Additional kwargs will be passed to the figure init
        function.

    Notes
    -----
    If you are creating many figures, make sure you explicitly call "close"
    on the figures you are not using, because this will enable pylab
    to properly clean up the memory.

    rcParams defines the default values, which can be modified in the
    matplotlibrc file

    u   figure.figsizeu
   figure.dpiu   figure.facecoloru   figure.edgecolori   u    u   allu(   close('all') closes all existing figuresu   figure.max_open_warningu   More than %d figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam `figure.max_open_warning`).u   psiH   t   figsizet   dpit	   facecolort	   edgecolort   frameont   FigureClassc         ` s   t  j j    d  S(   N(   R   R   t
   set_active(   t   event(   t
   figManager(    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   make_active  s    u   button_press_eventN(#   Rj   R   t   get_fignumst   maxt
   isinstancet   sixt   string_typest   get_figlabelst   warningsR   t   indext   intR   R   t   get_fig_managert   lent   RuntimeWarningR   t   lowerR   t   set_window_titleR   R   t	   set_labelt   mpl_connectt   _cidgcfR   t   numberRc   Rd   R   Rq   t   _auto_draw_if_interactivet   stale_callbackt   clear(   t   numR   R   R   R   R   R   R   R   t   allnumst   next_numt   figLabelt	   allLabelst   inumt   max_open_warningR   t   cidt   fig(    (   R   s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR     sn    C				
				
c         C` s6   | r2 t  j   r2 |  j j   r2 |  j j   n  d S(   u   
    This is an internal helper function for making sure that auto-redrawing
    works as intended in the plain python repl.

    Parameters
    ----------
    fig : Figure
        A figure object which is assumed to be associated with a canvas
    N(   Rc   Rd   R   t	   is_savingR   (   R   t   val(    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR   6  s    
"c          C` s0   t  j j   }  |  d k	 r% |  j j St   Sd S(   u&   Get a reference to the current figure.N(   R   R   R   Rj   R   R   (   R   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR}   D  s    
c         C` s   t  j j |   p |  t   k S(   N(   R   R   t
   has_fignumR   (   R   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   fignum_existsM  s    c           C` s   t  t j j  S(   u)   Return a list of existing figure numbers.(   t   sortedR   R   t   figs(    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR   Q  s    c          C` sE   t  j j   }  |  j d d    g  |  D] } | j j j   ^ q) S(   u(   Return a list of existing figure labels.t   keyc         S` s   |  j  S(   N(   R   (   t   m(    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   <lambda>Y  s    (   R   R   t   get_all_fig_managerst   sortR   R   t	   get_label(   t   figManagersR   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR   V  s    c          C` s8   t  j j   }  |  d  k r4 t   t  j j   }  n  |  S(   N(   R   R   R   Rj   R}   (   R   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   get_current_fig_manager]  s
    c         C` s   t    j j |  |  S(   N(   R   R   R   (   t   st   func(    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   connecte  s    c         C` s   t    j j |   S(   N(   R   R   t   mpl_disconnect(   R   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt
   disconnectj  s    c          G` sg  t  |   d k rG t j j   } | d k r1 d St j j | j  nt  |   d k rW|  d } | d k r t j j   qct | t	 j
  r t j j |  qct | d  r t j j | j  qct | t	 j  rt   } | | k rTt   | j |  } t j j |  qTqct | t  r>t j j |  qct d t |    n t d   d S(   uA  
    Close a figure window.

    ``close()`` by itself closes the current figure

    ``close(fig)`` closes the `.Figure` instance *fig*

    ``close(num)`` closes the figure number *num*

    ``close(name)`` where *name* is a string, closes figure with that label

    ``close('all')`` closes all the figure windows
    i    Ni   u   allu   intu&   Unrecognized argument type %s to closeu   close takes 0 or 1 arguments(   R   R   R   R   Rj   t   destroyR   t   destroy_allR   R   t   integer_typest   hasattrR   R   R   R   R   R   t   destroy_figt	   TypeErrort   type(   R   R   t   argR   R   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR   o  s,    
	c           C` s   t    j   d S(   u#   
    Clear the current figure.
    N(   R}   t   clf(    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR     s    c           C` s   t    j j   d S(   u+  Redraw the current figure.

    This is used to update a figure that has been altered, but not
    automatically re-drawn.  If interactive mode is on (:func:`.ion()`), this
    should be only rarely needed, but there may be ways to modify the state of
    a figure without marking it as `stale`.  Please report these cases as
    bugs.

    A more object-oriented alternative, given any
    :class:`~matplotlib.figure.Figure` instance, :attr:`fig`, that
    was created using a :mod:`~matplotlib.pyplot` function, is::

        fig.canvas.draw_idle()
    N(   R   R   R   (    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   draw  s    c          O` s,   t    } | j |  |   } | j j   | S(   N(   R}   t   savefigR   R   (   R   R   R   t   res(    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR     s    	c          O` s   t    j |  |   S(   u   
    Blocking call to interact with the figure.

    This will wait for *n* clicks from the user and return a list of the
    coordinates of each click.

    If *timeout* is negative, does not timeout.
    (   R}   t   ginput(   R   R   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR     s    
c          O` s   t    j |  |   S(   u  
    Blocking call to interact with the figure.

    This will wait for *n* key or mouse clicks from the user and
    return a list containing True's for keyboard clicks and False's
    for mouse clicks.

    If *timeout* is negative, does not timeout.
    (   R}   t   waitforbuttonpress(   R   R   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR     s    c          O` s   t    j |  |   S(   N(   R}   t   text(   R   R   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   figtext  s    c          O` s   t    j |  |   S(   N(   R}   t   suptitle(   R   R   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR     s    c          O` s   t    j |  |   S(   N(   R}   t   figimage(   R   R   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR     s    c          O` s   t    j |  |   S(   u  
    Place a legend in the figure.

    *labels*
      a sequence of strings

    *handles*
      a sequence of :class:`~matplotlib.lines.Line2D` or
      :class:`~matplotlib.patches.Patch` instances

    *loc*
      can be a string or an integer specifying the legend
      location

    A :class:`matplotlib.legend.Legend` instance is returned.

    Examples
    --------

    To make a legend from existing artists on every axes::

      figlegend()

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

      figlegend( (line1, line2, line3),
                 ('label1', 'label2', 'label3'),
                 'upper right' )

    .. seealso::

       :func:`~matplotlib.pyplot.legend`

    (   R}   t   legend(   R   R   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt	   figlegend  s    #u   pyplot.hold is deprecated.
    Future behavior will be consistent with the long-time default:
    plot commands add elements without first clearing the
    Axes and/or Figure.u   2.0t   messagec         C` s_   t    } | j   } |  d k	 r0 t |   }  n  |  | _ |  | _ | j }  t d d |  d S(   u  
    Set the hold state.  If *b* is None (default), toggle the
    hold state, else set the hold state to boolean value *b*::

      hold()      # toggle hold
      hold(True)  # hold is on
      hold(False) # hold is off

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

    u   axest   holdN(   R}   R   Rj   t   boolt   _holdR   (   t   bR   t   ax(    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR    s    				c           C` s
   t    j S(   u5   
    Return the hold status of the current axes.
    (   R   R  (    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   ishold7  s    c         O` s5   t    } | j } t | _ |  | |   | | _ d S(   u   
    Call a function with hold(True).

    Calls::

      func(*args, **kwargs)

    with ``hold(True)`` and then restores the hold state.

    N(   R   R  Rt   (   R   R   R   R  t   h(    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   over?  s
    			c         K` si   |  d k r t d |  St |  t  rL t d d d |  } t |  | S|  } t   j | |  Sd S(   uv  
    Add an axes to the current figure and make it the current axes.

    Parameters
    ----------
    arg : None or 4-tuple or Axes
        The exact behavior of this function depends on the type:

        - *None*: A new full window axes is added using
          ``subplot(111, **kwargs)``
        - 4-tuple of floats *rect* = ``[left, bottom, width, height]``.
          A new axes is added with dimensions *rect* in normalized
          (0, 1) units using `~.Figure.add_axes` on the current figure.
        - `~matplotlib.axes.Axes`: This is equivalent to `.pyplot.sca`.
          It sets the current axes to *arg*. Note: This implicitly
          changes the current figure to the parent of *arg*.

          .. note:: The use of an Axes as an argument is deprecated and will be
                    removed in v3.0. Please use `.pyplot.sca` instead.

    Other Parameters
    ----------------
    **kwargs :
        For allowed keyword arguments see `.pyplot.subplot` and
        `.Figure.add_axes` respectively. Some common keyword arguments are
        listed below:

        ========= =========== =================================================
        kwarg     Accepts     Description
        ========= =========== =================================================
        facecolor color       the axes background color
        frameon   bool        whether to display the frame
        sharex    otherax     share x-axis with *otherax*
        sharey    otherax     share y-axis with *otherax*
        polar     bool        whether to use polar axes
        aspect    [str | num] ['equal', 'auto'] or a number.  If a number, the
                              ratio of y-unit/x-unit in screen-space.  See also
                              `~.Axes.set_aspect`.
        ========= =========== =================================================

    Returns
    -------
    axes : Axes
        The created or activated axes.

    Examples
    --------
    Creating a new full window axes::

        >>> plt.axes()

    Creating a new axes with specified dimensions and some kwargs::

        >>> plt.axes((left, bottom, width, height), facecolor='w')

    io   u   2.2R  u`   Using pyplot.axes(ax) with ax an Axes argument is deprecated. Please use pyplot.sca(ax) instead.N(   Rj   t   subplotR   R   R   t   scaR}   t   add_axes(   R   R   R  t   rect(    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   axesT  s    :	
c         C` s,   |  d k r t   }  n  t   j |   d S(   u   
    Remove the given `Axes` *ax* from the current figure. If *ax* is *None*,
    the current axes is removed. A KeyError is raised if the axes doesn't exist.
    N(   Rj   R   R}   t   delaxes(   R  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR    s    c         C` sl   t  j j   } xJ | D]B } |  | j j j k r t  j j |  | j j j |   d Sq Wt d   d S(   uj   
    Set the current Axes instance to *ax*.

    The current Figure is updated to the parent of *ax*.
    Nu1   Axes instance argument was not found in a figure.(	   R   R   R   R   R   R  R   R  t
   ValueError(   R  t   managersR   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR    s    c          K` s   t    j |    S(   u  
    Get the current :class:`~matplotlib.axes.Axes` instance on the
    current figure matching the given keyword args, or create one.

    Examples
    --------
    To get the current polar axes on the current figure::

        plt.gca(projection='polar')

    If the current axes doesn't exist, or isn't a polar one, the appropriate
    axes will be created and then returned.

    See Also
    --------
    matplotlib.figure.Figure.gca : The figure's gca method.
    (   R}   R   (   R   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR     s    c          O` s   t  |   d k r d }  n  t  |   d k rP t |  d t  rP t j d  n  t   } | j |  |   } | j } g  } xE | j D]: } | | k r q n  | j	 | j  r | j
 |  q q Wx | D] } t |  q W| S(   uY	  
    Return a subplot axes at the given grid position.

    Call signature::

       subplot(nrows, ncols, index, **kwargs)

    In the current figure, create and return an `~matplotlib.axes.Axes`,
    at position *index* of a (virtual) grid of *nrows* by *ncols* axes.
    Indexes go from 1 to ``nrows * ncols``, incrementing in row-major order.

    If *nrows*, *ncols* and *index* are all less than 10, they can also be
    given as a single, concatenated, three-digit number.

    For example, ``subplot(2, 3, 3)`` and ``subplot(233)`` both create an
    `matplotlib.axes.Axes` at the top right corner of the current figure,
    occupying half of the figure height and a third of the figure width.

    .. note::

       Creating a subplot will delete any pre-existing subplot that overlaps
       with it beyond sharing a boundary::

          import matplotlib.pyplot as plt
          # plot a line, implicitly creating a subplot(111)
          plt.plot([1,2,3])
          # now create a subplot which represents the top plot of a grid
          # with 2 rows and 1 column. Since this subplot will overlap the
          # first, the plot (and its axes) previously created, will be removed
          plt.subplot(211)
          plt.plot(range(12))
          plt.subplot(212, facecolor='y') # creates 2nd subplot with yellow background

       If you do not want this behavior, use the
       :meth:`~matplotlib.figure.Figure.add_subplot` method or the
       :func:`~matplotlib.pyplot.axes` function instead.

    Keyword arguments:

      *facecolor*:
        The background color of the subplot, which can be any valid
        color specifier.  See :mod:`matplotlib.colors` for more
        information.

      *polar*:
        A boolean flag indicating whether the subplot plot should be
        a polar projection.  Defaults to *False*.

      *projection*:
        A string giving the name of a custom projection to be used
        for the subplot. This projection must have been previously
        registered. See :mod:`matplotlib.projections`.

    .. seealso::

        :func:`~matplotlib.pyplot.axes`
            For additional information on :func:`axes` and
            :func:`subplot` keyword arguments.

        :file:`gallery/pie_and_polar_charts/polar_scatter.py`
            For an example

    **Example:**

    .. plot:: gallery/subplots_axes_and_figures/subplot.py

    i    i   i   i   ub   The subplot index argument to subplot() appears to be a boolean. Did you intend to use subplots()?(   i   i   i   (   R   R   R  R   R   R}   t   add_subplott   bboxR  t   fully_overlapst   appendR  (   R   R   R   t   aR  t   byebyet   otherR  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR    s     E	%		  c   
      K` sL   t  |   } | j d |  d | d | d | d | d | d |  }	 | |	 f S(   u  
    Create a figure and a set of subplots

    This utility wrapper makes it convenient to create common layouts of
    subplots, including the enclosing figure object, in a single call.

    Parameters
    ----------
    nrows, ncols : int, optional, default: 1
        Number of rows/columns of the subplot grid.

    sharex, sharey : bool or {'none', 'all', 'row', 'col'}, default: False
        Controls sharing of properties among x (`sharex`) or y (`sharey`)
        axes:

            - True or 'all': x- or y-axis will be shared among all
              subplots.
            - False or 'none': each subplot x- or y-axis will be
              independent.
            - 'row': each subplot row will share an x- or y-axis.
            - 'col': each subplot column will share an x- or y-axis.

        When subplots have a shared x-axis along a column, only the x tick
        labels of the bottom subplot are created. Similarly, when subplots
        have a shared y-axis along a row, only the y tick labels of the first
        column subplot are created. To later turn other subplots' ticklabels
        on, use :meth:`~matplotlib.axes.Axes.tick_params`.

    squeeze : bool, optional, default: True
        - If True, extra dimensions are squeezed out from the returned
          array of Axes:

            - if only one subplot is constructed (nrows=ncols=1), the
              resulting single Axes object is returned as a scalar.
            - for Nx1 or 1xM subplots, the returned object is a 1D numpy
              object array of Axes objects.
            - for NxM, subplots with N>1 and M>1 are returned as a 2D array.

        - If False, no squeezing at all is done: the returned Axes object is
          always a 2D array containing Axes instances, even if it ends up
          being 1x1.

    subplot_kw : dict, optional
        Dict with keywords passed to the
        :meth:`~matplotlib.figure.Figure.add_subplot` call used to create each
        subplot.

    gridspec_kw : dict, optional
        Dict with keywords passed to the
        :class:`~matplotlib.gridspec.GridSpec` constructor used to create the
        grid the subplots are placed on.

    **fig_kw :
        All additional keyword arguments are passed to the :func:`figure` call.

    Returns
    -------
    fig : :class:`matplotlib.figure.Figure` object

    ax : Axes object or array of Axes objects.

        ax can be either a single :class:`matplotlib.axes.Axes` object or an
        array of Axes objects if more than one subplot was created.  The
        dimensions of the resulting array can be controlled with the squeeze
        keyword, see above.

    Examples
    --------
    First create some toy data:

    >>> x = np.linspace(0, 2*np.pi, 400)
    >>> y = np.sin(x**2)

    Creates just a figure and only one subplot

    >>> fig, ax = plt.subplots()
    >>> ax.plot(x, y)
    >>> ax.set_title('Simple plot')

    Creates two subplots and unpacks the output array immediately

    >>> f, (ax1, ax2) = plt.subplots(1, 2, sharey=True)
    >>> ax1.plot(x, y)
    >>> ax1.set_title('Sharing Y axis')
    >>> ax2.scatter(x, y)

    Creates four polar axes, and accesses them through the returned array

    >>> fig, axes = plt.subplots(2, 2, subplot_kw=dict(polar=True))
    >>> axes[0, 0].plot(x, y)
    >>> axes[1, 1].scatter(x, y)

    Share a X axis with each column of subplots

    >>> plt.subplots(2, 2, sharex='col')

    Share a Y axis with each row of subplots

    >>> plt.subplots(2, 2, sharey='row')

    Share both X and Y axes with all subplots

    >>> plt.subplots(2, 2, sharex='all', sharey='all')

    Note that this is the same as

    >>> plt.subplots(2, 2, sharex=True, sharey=True)

    See Also
    --------
    figure
    subplot
    t   nrowst   ncolst   sharext   shareyt   squeezet
   subplot_kwt   gridspec_kw(   R   t   subplots(
   R  R  R  R  R  R  R   t   fig_kwR   t   axs(    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR!  -  s
    s!	c         K` s   | d k r t   } n  |  \ } } t | |  j | d | d | } | j | |  }	 |	 j }
 g  } xE | j D]: } | |	 k r qs n  |
 j | j  rs | j |  qs qs Wx | D] } t	 |  q W|	 S(   u  
    Create an axis at specific location inside a regular grid.

    Parameters
    ----------
    shape : sequence of 2 ints
        Shape of grid in which to place axis.
        First entry is number of rows, second entry is number of columns.

    loc : sequence of 2 ints
        Location to place axis within grid.
        First entry is row number, second entry is column number.

    rowspan : int
        Number of rows for the axis to span to the right.

    colspan : int
        Number of columns for the axis to span downwards.

    fig : `Figure`, optional
        Figure to place axis in. Defaults to current figure.

    **kwargs
        Additional keyword arguments are handed to `add_subplot`.


    Notes
    -----
    The following call ::

        subplot2grid(shape, loc, rowspan=1, colspan=1)

    is identical to ::

        gridspec=GridSpec(shape[0], shape[1])
        subplotspec=gridspec.new_subplotspec(loc, rowspan, colspan)
        subplot(subplotspec)
    t   rowspant   colspanN(
   Rj   R}   R   t   new_subplotspecR  R  R  R  R  R  (   t   shapet   locR$  R%  R   R   t   s1t   s2t   subplotspecR  R  R  R  R  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   subplot2grid  s"    (		c         C` s(   |  d k r t   }  n  |  j   } | S(   u@  
    Make a second axes that shares the *x*-axis.  The new axes will
    overlay *ax* (or the current axes if *ax* is *None*).  The ticks
    for *ax2* will be placed on the right, and the *ax2* instance is
    returned.

    .. seealso::

       :file:`examples/api_examples/two_scales.py`
          For an example
    N(   Rj   R   t   twinx(   R  t   ax1(    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR-    s    c         C` s(   |  d k r t   }  n  |  j   } | S(   u   
    Make a second axes that shares the *y*-axis.  The new axis will
    overlay *ax* (or the current axes if *ax* is *None*).  The ticks
    for *ax2* will be placed on the top, and the *ax2* instance is
    returned.
    N(   Rj   R   t   twiny(   R  R.  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR/    s    c          O` s   t    } | j |  |   d S(   uX  
    Tune the subplot layout.

    call signature::

      subplots_adjust(left=None, bottom=None, right=None, top=None,
                      wspace=None, hspace=None)

    The parameter meanings (and suggested defaults) are::

      left  = 0.125  # the left side of the subplots of the figure
      right = 0.9    # the right side of the subplots of the figure
      bottom = 0.1   # the bottom of the subplots of the figure
      top = 0.9      # the top of the subplots of the figure
      wspace = 0.2   # the amount of width reserved for space between subplots,
                     # expressed as a fraction of the average axis width
      hspace = 0.2   # the amount of height reserved for space between subplots,
                     # expressed as a fraction of the average axis height

    The actual defaults are controlled by the rc file
    N(   R}   t   subplots_adjust(   R   R   R   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR0    s    	c         C` s   t  d } d t  d <|  d	 k r8 t   } | j j }  n9 x6 t j j D] } | j j |  k rE PqE qE Wt d   t d d
  } | j	 d d  t
 |  |  } | t  d <t j j |  | S(   uy   
    Launch a subplot tool window for a figure.

    A :class:`matplotlib.widgets.SubplotTool` instance is returned.
    u   toolbaru   Noneu$   Could not find manager for targetfigR   i   i   t   topg?N(   i   i   (   R   Rj   R   R   R   R   R   t
   _activeQueR   R0  R/   R   (   t	   targetfigt   tbarR   t   toolfigt   ret(    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   subplot_tool  s    

	 
gHzG?c      	   C` s/   t    } | j d |  d | d | d |  d S(   uJ  
    Automatically adjust subplot parameters to give specified padding.

    Parameters
    ----------
    pad : float
        padding between the figure edge and the edges of subplots, as a fraction of the font-size.
    h_pad, w_pad : float
        padding (height/width) between edges of adjacent subplots.
        Defaults to `pad_inches`.
    rect : if rect is given, it is interpreted as a rectangle
        (left, bottom, right, top) in the normalized figure
        coordinate that the whole subplots area (including
        labels) will fit into. Default is (0, 0, 1, 1).

    t   padt   h_padt   w_padR  N(   R}   t   tight_layout(   R8  R9  R:  R  R   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR;  6  s    	c         C` sB   t    } |  d k r% | j   }  n  t |   }  | j |   d S(   u@  
    Turn the axes box on or off on the current axes.

    Parameters
    ----------
    on : bool or None
        The new `~matplotlib.axes.Axes` box state. If ``None``, toggle
        the state.

    See Also
    --------
    :meth:`matplotlib.axes.Axes.set_frame_on`
    :meth:`matplotlib.axes.Axes.get_frame_on`
    N(   R   Rj   t   get_frame_onR   t   set_frame_on(   t   onR  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   boxK  s
    	c         O` s   t    j |  | |  S(   u  
    Set a title of the current axes.

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

    .. seealso::
        See :func:`~matplotlib.pyplot.text` for adding text
        to the current axes

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

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

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

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

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

    Other parameters
    ----------------
    kwargs : text properties
        Other keyword arguments are text properties, see
        :class:`~matplotlib.text.Text` for a list of valid text
        properties.

    (   R   t	   set_title(   R   R   R   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   titlea  s    *c          O` s   t    j |  |   S(   u  
    Convenience method to get or set axis properties.

    Calling with no arguments::

      >>> axis()

    returns the current axes limits ``[xmin, xmax, ymin, ymax]``.::

      >>> axis(v)

    sets the min and max of the x and y axes, with
    ``v = [xmin, xmax, ymin, ymax]``.::

      >>> axis('off')

    turns off the axis lines and labels.::

      >>> axis('equal')

    changes limits of *x* or *y* axis so that equal increments of *x*
    and *y* have the same length; a circle is circular.::

      >>> axis('scaled')

    achieves the same result by changing the dimensions of the plot box instead
    of the axis data limits.::

      >>> axis('tight')

    changes *x* and *y* axis limits such that all data is shown. If
    all data is already shown, it will move it to the center of the
    figure without modifying (*xmax* - *xmin*) or (*ymax* -
    *ymin*). Note this is slightly different than in MATLAB.::

      >>> axis('image')

    is 'scaled' with the axis limits equal to the data limits.::

      >>> axis('auto')

    and::

      >>> axis('normal')

    are deprecated. They restore default behavior; axis limits are automatically
    scaled to make the data fit comfortably within the plot box.

    if ``len(*v)==0``, you can pass in *xmin*, *xmax*, *ymin*, *ymax*
    as kwargs selectively to alter just those limits without changing
    the others.

      >>> axis('square')

    changes the limit ranges (*xmax*-*xmin*) and (*ymax*-*ymin*) of
    the *x* and *y* axes to be the same, and have the same scaling,
    resulting in a square plot.

    The xmin, xmax, ymin, ymax tuple is returned

    .. seealso::

        :func:`xlim`, :func:`ylim`
           For setting the x- and y-limits individually.
    (   R   t   axis(   t   vR   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyRB    s    Bc         O` s   t    j |  | |  S(   u	  
    Set the x-axis label of the current axes.

    Call signature::

        xlabel(label, fontdict=None, labelpad=None, **kwargs)

    This is the pyplot equivalent of calling `.set_xlabel` on the current axes.
    See there for a full parameter description.
    (   R   t
   set_xlabel(   R   R   R   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   xlabel  s    c         O` s   t    j |  | |  S(   u	  
    Set the y-axis label of the current axes.

    Call signature::

        ylabel(label, fontdict=None, labelpad=None, **kwargs)

    This is the pyplot equivalent of calling `.set_ylabel` on the current axes.
    See there for a full parameter description.
    (   R   t
   set_ylabel(   R   R   R   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   ylabel  s    c          O` s7   t    } |  r! | r! | j   S| j |  |   } | S(   u  
    Get or set the x limits of the current axes.

    Call signatures::

        xmin, xmax = xlim()  # return the current xlim
        xlim((xmin, xmax))   # set the xlim to xmin, xmax
        xlim(xmin, xmax)     # set the xlim to xmin, xmax

    If you do not specify args, you can pass *xmin* or *xmax* as kwargs, i.e.::

        xlim(xmax=3)  # adjust the max leaving min unchanged
        xlim(xmin=1)  # adjust the min leaving max unchanged

    Setting limits turns autoscaling off for the x-axis.

    Returns
    -------
    xmin, xmax
        A tuple of the new x-axis limits.

    Notes
    -----
    Calling this function with no arguments (e.g. ``xlim()``) is the pyplot
    equivalent of calling `~.Axes.get_xlim` on the current axes.
    Calling this function with arguments is the pyplot equivalent of calling
    `~.Axes.set_xlim` on the current axes. All arguments are passed though.
    (   R   t   get_xlimt   set_xlim(   R   R   R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   xlim  s
    	
c          O` s7   t    } |  r! | r! | j   S| j |  |   } | S(   u  
    Get or set the y-limits of the current axes.

    Call signatures::

        ymin, ymax = ylim()  # return the current ylim
        ylim((ymin, ymax))   # set the ylim to ymin, ymax
        ylim(ymin, ymax)     # set the ylim to ymin, ymax

    If you do not specify args, you can alternatively pass *ymin* or *ymax* as
    kwargs, i.e.::

        ylim(ymax=3)  # adjust the max leaving min unchanged
        ylim(ymin=1)  # adjust the min leaving max unchanged

    Setting limits turns autoscaling off for the y-axis.

    Returns
    -------
    ymin, ymax
        A tuple of the new y-axis limits.

    Notes
    -----
    Calling this function with no arguments (e.g. ``ylim()``) is the pyplot
    equivalent of calling `~.Axes.get_ylim` on the current axes.
    Calling this function with arguments is the pyplot equivalent of calling
    `~.Axes.set_ylim` on the current axes. All arguments are passed though.
    (   R   t   get_ylimt   set_ylim(   R   R   R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   ylim  s
    	
c          O` s   t    j |  |   d S(   u  
    Set the scaling of the x-axis.

    Call signature::

        xscale(scale, **kwargs)

    Parameters
    ----------
    scale : [%(scale)s]
        The scaling type.
    **kwargs
        Additional parameters depend on *scale*. See Notes.

    Notes
    -----
    This is the pyplot equivalent of calling `~.Axes.set_xscale` on the
    current axes.

    Different keywords may be accepted, depending on the scale:

    %(scale_docs)s
    N(   R   t
   set_xscale(   R   R   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   xscale:  s    c          O` s   t    j |  |   d S(   u  
    Set the scaling of the y-axis.

    Call signature::

        yscale(scale, **kwargs)

    Parameters
    ----------
    scale : [%(scale)s]
        The scaling type.
    **kwargs
        Additional parameters depend on *scale*. See Notes.

    Notes
    -----
    This is the pyplot equivalent of calling `~.Axes.set_yscale` on the
    current axes.

    Different keywords may be accepted, depending on the scale:

    %(scale_docs)s
    N(   R   t
   set_yscale(   R   R   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   yscaleV  s    c          O` s   t    } t |   d k r6 | j   } | j   } n~ t |   d k rj | j |  d  } | j   } nJ t |   d k r | j |  d  } | j |  d |  } n t d   t |  r x | D] } | j |  q Wn  | t d |  f S(   u  
    Get or set the current tick locations and labels of the x-axis.

    Call signatures::

        locs, labels = xticks()           # Get locations and labels

        xticks(locs, [labels], **kwargs)  # Set locations and labels

    Parameters
    ----------
    locs : array_like
        A list of positions at which ticks should be placed. You can pass an
        empty list to disable xticks.

    labels : array_like, optional
        A list of explicit labels to place at the given *locs*.

    **kwargs
        :class:`.Text` properties can be used to control the appearance of
        the labels.

    Returns
    -------
    locs
        An array of label locations.
    labels
        A list of `.Text` objects.

    Notes
    -----
    Calling this function with no arguments (e.g. ``xticks()``) is the pyplot
    equivalent of calling `~.Axes.get_xticks` and `~.Axes.get_xticklabels` on
    the current axes.
    Calling this function with arguments is the pyplot equivalent of calling
    `~.Axes.set_xticks` and `~.Axes.set_xticklabels` on the current axes.

    Examples
    --------
    Get the current locations and labels:

        >>> locs, labels = xticks()

    Set label locations:

        >>> xticks(np.arange(0, 1, step=0.2))

    Set text labels:

        >>> xticks(np.arange(5), ('Tom', 'Dick', 'Harry', 'Sally', 'Sue'))

    Set text labels and properties:

        >>> xticks(np.arange(12), calendar.month_name[1:13], rotation=20)

    Disable xticks:

        >>> xticks([])
    i    i   i   u%   Illegal number of arguments to xticksu   Text xticklabel(	   R   R   t
   get_xtickst   get_xticklabelst
   set_xtickst   set_xticklabelsR   t   updateR	   (   R   R   R  t   locst   labelst   l(    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   xticksr  s    <	c          O` s   t    } t |   d k r6 | j   } | j   } n~ t |   d k rj | j |  d  } | j   } nJ t |   d k r | j |  d  } | j |  d |  } n t d   t |  r x | D] } | j |  q Wn  | t d |  f S(   u  
    Get or set the current tick locations and labels of the y-axis.

    Call signatures::

        locs, labels = yticks()           # Get locations and labels

        yticks(locs, [labels], **kwargs)  # Set locations and labels

    Parameters
    ----------
    locs : array_like
        A list of positions at which ticks should be placed. You can pass an
        empty list to disable yticks.

    labels : array_like, optional
        A list of explicit labels to place at the given *locs*.

    **kwargs
        :class:`.Text` properties can be used to control the appearance of
        the labels.

    Returns
    -------
    locs
        An array of label locations.
    labels
        A list of `.Text` objects.

    Notes
    -----
    Calling this function with no arguments (e.g. ``yticks()``) is the pyplot
    equivalent of calling `~.Axes.get_yticks` and `~.Axes.get_yticklabels` on
    the current axes.
    Calling this function with arguments is the pyplot equivalent of calling
    `~.Axes.set_yticks` and `~.Axes.set_yticklabels` on the current axes.

    Examples
    --------
    Get the current locations and labels:

        >>> locs, labels = yticks()

    Set label locations:

        >>> yticks(np.arange(0, 1, step=0.2))

    Set text labels:

        >>> yticks(np.arange(5), ('Tom', 'Dick', 'Harry', 'Sally', 'Sue'))

    Set text labels and properties:

        >>> yticks(np.arange(12), calendar.month_name[1:13], rotation=45)

    Disable yticks:

        >>> yticks([])
    i    i   i   u%   Illegal number of arguments to yticksu   Text yticklabel(	   R   R   t
   get_ytickst   get_yticklabelst
   set_ytickst   set_yticklabelsR   RV  R	   (   R   R   R  RW  RX  RY  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   yticks  s     <	c           C` s   t    j   d S(   u   
    Display minor ticks on the current plot.

    Displaying minor ticks reduces performance; turn them off using
    minorticks_off() if drawing speed is a problem.
    N(   R   t   minorticks_on(    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR`    s    c           C` s   t    j   d S(   u3   
    Remove minor ticks from the current plot.
    N(   R   t   minorticks_off(    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyRa    s    c          O` s   t    } t | t  s' t d   n  t |   d k rZ | j j   } | j j   } n | j |  |   \ } } t	 d |  t	 d |  f S(   u  
    Get or set the radial gridlines on a polar plot.

    call signatures::

      lines, labels = rgrids()
      lines, labels = rgrids(radii, labels=None, angle=22.5, **kwargs)

    When called with no arguments, :func:`rgrid` simply returns the
    tuple (*lines*, *labels*), where *lines* is an array of radial
    gridlines (:class:`~matplotlib.lines.Line2D` instances) and
    *labels* is an array of tick labels
    (:class:`~matplotlib.text.Text` instances). When called with
    arguments, the labels will appear at the specified radial
    distances and angles.

    *labels*, if not *None*, is a len(*radii*) list of strings of the
    labels to use at each angle.

    If *labels* is None, the rformatter will be used

    Examples::

      # set the locations of the radial gridlines and labels
      lines, labels = rgrids( (0.25, 0.5, 1.0) )

      # set the locations and labels of the radial gridlines and labels
      lines, labels = rgrids( (0.25, 0.5, 1.0), ('Tom', 'Dick', 'Harry' )

    u"   rgrids only defined for polar axesi    u   Line2D rgridlineu   Text rgridlabel(
   R   R   R    R   R   t   yaxist   get_gridlinest   get_ticklabelst
   set_rgridsR	   (   R   R   R  t   linesRX  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   rgrids$  s    	c          O` s   t    } t | t  s' t d   n  t |   d k rZ | j j   } | j j   } n | j |  |   \ } } t	 d |  t	 d |  f S(   u  
    Get or set the theta locations of the gridlines in a polar plot.

    If no arguments are passed, return a tuple (*lines*, *labels*)
    where *lines* is an array of radial gridlines
    (:class:`~matplotlib.lines.Line2D` instances) and *labels* is an
    array of tick labels (:class:`~matplotlib.text.Text` instances)::

      lines, labels = thetagrids()

    Otherwise the syntax is::

      lines, labels = thetagrids(angles, labels=None, fmt='%d', frac = 1.1)

    set the angles at which to place the theta grids (these gridlines
    are equal along the theta dimension).

    *angles* is in degrees.

    *labels*, if not *None*, is a len(angles) list of strings of the
    labels to use at each angle.

    If *labels* is *None*, the labels will be ``fmt%angle``.

    *frac* is the fraction of the polar axes radius at which to place
    the label (1 is the edge). e.g., 1.05 is outside the axes and 0.95
    is inside the axes.

    Return value is a list of tuples (*lines*, *labels*):

      - *lines* are :class:`~matplotlib.lines.Line2D` instances

      - *labels* are :class:`~matplotlib.text.Text` instances.

    Note that on input, the *labels* argument is a list of strings,
    and on output it is a list of :class:`~matplotlib.text.Text`
    instances.

    Examples::

      # set the locations of the radial gridlines and labels
      lines, labels = thetagrids( range(45,360,90) )

      # set the locations and labels of the radial gridlines and labels
      lines, labels = thetagrids( range(45,360,90), ('NE', 'NW', 'SW','SE') )
    u"   rgrids only defined for polar axesi    u   Line2D thetagridlineu   Text thetagridlabel(
   R   R   R    R   R   t   xaxist   get_ticklinesRd  t   set_thetagridsR	   (   R   R   R  Rf  RX  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt
   thetagridsP  s    /	c           C` s   d  S(   N(    (    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   plotting  s    c       	   C` s   d d l  }  d d d d d d d	 d
 d h	 } | t t    O} |  j t  } t   } x{ t t j t     D]a \ } } | j	 d  sq | | k r qq n  |  j
 |  rq |  j |  | k rq | j |  qq qq Wt |  S(   u<   
    Get a sorted list of all of the plotting commands.
    i    Nu	   colormapsu   colorsu   connectu
   disconnectu   get_plot_commandsu   get_current_fig_manageru   ginputu   plottingu   waitforbuttonpressu   _(   t   inspectt   sett	   colormapst	   getmodulet   get_plot_commandst   listR   t	   iteritemst   globalst
   startswitht
   isfunctiont   addR   (   Rm  t   excludet   this_modulet   commandst   namet   obj(    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyRq    s    			%$u   2.1c           C` s   d S(   ur  
    This is a do-nothing function to provide you with help on how
    matplotlib handles colors.

    Commands which take color arguments can use several formats to
    specify the colors.  For the basic built-in colors, you can use a
    single letter

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

    For a greater range of colors, you have two options.  You can
    specify the color using an html hex string, as in::

      color = '#eeefff'

    or you can pass an R,G,B tuple, where each of R,G,B are in the
    range [0,1].

    You can also use any legal html name for a color, for example::

      color = 'red'
      color = 'burlywood'
      color = 'chartreuse'

    The example below creates a subplot with a dark
    slate gray background::

       subplot(111, facecolor=(0.1843, 0.3098, 0.3098))

    Here is an example that creates a pale turquoise title::

      title('Is this the best color?', color='#afeeee')

    N(    (    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   colors  s    /c           C` s   t  t j  S(   u*  
    Matplotlib provides a number of colormaps, and others can be added using
    :func:`~matplotlib.cm.register_cmap`.  This function documents the built-in
    colormaps, and will also return a list of all registered colormaps if called.

    You can set the colormap for an image, pcolor, scatter, etc,
    using a keyword argument::

      imshow(X, cmap=cm.hot)

    or using the :func:`set_cmap` function::

      imshow(X)
      pyplot.set_cmap('hot')
      pyplot.set_cmap('jet')

    In interactive mode, :func:`set_cmap` will update the colormap post-hoc,
    allowing you to see which one works best for your data.

    All built-in colormaps can be reversed by appending ``_r``: For instance,
    ``gray_r`` is the reverse of ``gray``.

    There are several common color schemes used in visualization:

    Sequential schemes
      for unipolar data that progresses from low to high
    Diverging schemes
      for bipolar data that emphasizes positive or negative deviations from a
      central value
    Cyclic schemes
      meant for plotting values that wrap around at the
      endpoints, such as phase angle, wind direction, or time of day
    Qualitative schemes
      for nominal data that has no inherent ordering, where color is used
      only to distinguish categories

    Matplotlib ships with 4 perceptually uniform color maps which are
    the recommended color maps for sequential data:

      =========   ===================================================
      Colormap    Description
      =========   ===================================================
      inferno     perceptually uniform shades of black-red-yellow
      magma       perceptually uniform shades of black-red-white
      plasma      perceptually uniform shades of blue-red-yellow
      viridis     perceptually uniform shades of blue-green-yellow
      =========   ===================================================

    The following colormaps are based on the `ColorBrewer
    <http://colorbrewer2.org>`_ color specifications and designs developed by
    Cynthia Brewer:

    ColorBrewer Diverging (luminance is highest at the midpoint, and
    decreases towards differently-colored endpoints):

      ========  ===================================
      Colormap  Description
      ========  ===================================
      BrBG      brown, white, blue-green
      PiYG      pink, white, yellow-green
      PRGn      purple, white, green
      PuOr      orange, white, purple
      RdBu      red, white, blue
      RdGy      red, white, gray
      RdYlBu    red, yellow, blue
      RdYlGn    red, yellow, green
      Spectral  red, orange, yellow, green, blue
      ========  ===================================

    ColorBrewer Sequential (luminance decreases monotonically):

      ========  ====================================
      Colormap  Description
      ========  ====================================
      Blues     white to dark blue
      BuGn      white, light blue, dark green
      BuPu      white, light blue, dark purple
      GnBu      white, light green, dark blue
      Greens    white to dark green
      Greys     white to black (not linear)
      Oranges   white, orange, dark brown
      OrRd      white, orange, dark red
      PuBu      white, light purple, dark blue
      PuBuGn    white, light purple, dark green
      PuRd      white, light purple, dark red
      Purples   white to dark purple
      RdPu      white, pink, dark purple
      Reds      white to dark red
      YlGn      light yellow, dark green
      YlGnBu    light yellow, light green, dark blue
      YlOrBr    light yellow, orange, dark brown
      YlOrRd    light yellow, orange, dark red
      ========  ====================================

    ColorBrewer Qualitative:

    (For plotting nominal data, :class:`ListedColormap` is used,
    not :class:`LinearSegmentedColormap`.  Different sets of colors are
    recommended for different numbers of categories.)

    * Accent
    * Dark2
    * Paired
    * Pastel1
    * Pastel2
    * Set1
    * Set2
    * Set3

    A set of colormaps derived from those of the same name provided
    with Matlab are also included:

      =========   =======================================================
      Colormap    Description
      =========   =======================================================
      autumn      sequential linearly-increasing shades of red-orange-yellow
      bone        sequential increasing black-white color map with
                  a tinge of blue, to emulate X-ray film
      cool        linearly-decreasing shades of cyan-magenta
      copper      sequential increasing shades of black-copper
      flag        repetitive red-white-blue-black pattern (not cyclic at
                  endpoints)
      gray        sequential linearly-increasing black-to-white
                  grayscale
      hot         sequential black-red-yellow-white, to emulate blackbody
                  radiation from an object at increasing temperatures
      hsv         cyclic red-yellow-green-cyan-blue-magenta-red, formed
                  by changing the hue component in the HSV color space
      jet         a spectral map with dark endpoints, blue-cyan-yellow-red;
                  based on a fluid-jet simulation by NCSA [#]_
      pink        sequential increasing pastel black-pink-white, meant
                  for sepia tone colorization of photographs
      prism       repetitive red-yellow-green-blue-purple-...-green pattern
                  (not cyclic at endpoints)
      spring      linearly-increasing shades of magenta-yellow
      summer      sequential linearly-increasing shades of green-yellow
      winter      linearly-increasing shades of blue-green
      =========   =======================================================

    A set of palettes from the `Yorick scientific visualisation
    package <https://dhmunro.github.io/yorick-doc/>`_, an evolution of
    the GIST package, both by David H. Munro are included:

      ============  =======================================================
      Colormap      Description
      ============  =======================================================
      gist_earth    mapmaker's colors from dark blue deep ocean to green
                    lowlands to brown highlands to white mountains
      gist_heat     sequential increasing black-red-orange-white, to emulate
                    blackbody radiation from an iron bar as it grows hotter
      gist_ncar     pseudo-spectral black-blue-green-yellow-red-purple-white
                    colormap from National Center for Atmospheric
                    Research [#]_
      gist_rainbow  runs through the colors in spectral order from red to
                    violet at full saturation (like *hsv* but not cyclic)
      gist_stern    "Stern special" color table from Interactive Data
                    Language software
      ============  =======================================================


    Other miscellaneous schemes:

      ============= =======================================================
      Colormap      Description
      ============= =======================================================
      afmhot        sequential black-orange-yellow-white blackbody
                    spectrum, commonly used in atomic force microscopy
      brg           blue-red-green
      bwr           diverging blue-white-red
      coolwarm      diverging blue-gray-red, meant to avoid issues with 3D
                    shading, color blindness, and ordering of colors [#]_
      CMRmap        "Default colormaps on color images often reproduce to
                    confusing grayscale images. The proposed colormap
                    maintains an aesthetically pleasing color image that
                    automatically reproduces to a monotonic grayscale with
                    discrete, quantifiable saturation levels." [#]_
      cubehelix     Unlike most other color schemes cubehelix was designed
                    by D.A. Green to be monotonically increasing in terms
                    of perceived brightness. Also, when printed on a black
                    and white postscript printer, the scheme results in a
                    greyscale with monotonically increasing brightness.
                    This color scheme is named cubehelix because the r,g,b
                    values produced can be visualised as a squashed helix
                    around the diagonal in the r,g,b color cube.
      gnuplot       gnuplot's traditional pm3d scheme
                    (black-blue-red-yellow)
      gnuplot2      sequential color printable as gray
                    (black-blue-violet-yellow-white)
      ocean         green-blue-white
      rainbow       spectral purple-blue-green-yellow-orange-red colormap
                    with diverging luminance
      seismic       diverging blue-white-red
      nipy_spectral black-purple-blue-green-yellow-red-white spectrum,
                    originally from the Neuroimaging in Python project
      terrain       mapmaker's colors, blue-green-yellow-brown-white,
                    originally from IGOR Pro
      ============= =======================================================

    The following colormaps are redundant and may be removed in future
    versions.  It's recommended to use the names in the descriptions
    instead, which produce identical output:

      =========  =======================================================
      Colormap   Description
      =========  =======================================================
      gist_gray  identical to *gray*
      gist_yarg  identical to *gray_r*
      binary     identical to *gray_r*
      spectral   identical to *nipy_spectral* [#]_
      =========  =======================================================

    .. rubric:: Footnotes

    .. [#] Rainbow colormaps, ``jet`` in particular, are considered a poor
      choice for scientific visualization by many researchers: `Rainbow Color
      Map (Still) Considered Harmful
      <http://ieeexplore.ieee.org/document/4118486/?arnumber=4118486>`_

    .. [#] Resembles "BkBlAqGrYeOrReViWh200" from NCAR Command
      Language. See `Color Table Gallery
      <https://www.ncl.ucar.edu/Document/Graphics/color_table_gallery.shtml>`_

    .. [#] See `Diverging Color Maps for Scientific Visualization
      <http://www.kennethmoreland.com/color-maps/>`_ by Kenneth Moreland.

    .. [#] See `A Color Map for Effective Black-and-White Rendering of
      Color-Scale Images
      <https://www.mathworks.com/matlabcentral/fileexchange/2662-cmrmap-m>`_
      by Carey Rappaport

    .. [#] Changed to distinguish from ColorBrewer's *Spectral* map.
      :func:`spectral` still works, but
      ``set_cmap('nipy_spectral')`` is recommended for clarity.


    (   R   R$   t   cmap_d(    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyRo    s    c          C` s  d d l  }  d   } t   } |  j d d |  j } g  } d } d } x | D] } t   | j } d }	 | d k	 r | j |  }
 |
 d k	 r |
 j d  j	   j
 d d  }	 q n  d	 | } | j | |	 g  t | t |   } t | t |	   } qO Wg  } d
 | d d
 | } | j |  | j d j | d |  | d |  g   | j |  xB | D]: \ } }	 | j d j | | |  | |	 |  g   qoW| j |  d j |  t _ d S(   u   
    Generates the plotting and docstring.

    These must be done after the entire module is imported, so it is
    called from the end of this module, which is generated by
    boilerplate.py.
    i    Nc         S` s0   | t  |   k  r |  |  S|  d | t  |   S(   u   Pad string *s* to length *l*.u    (   R   (   R   RY  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR8    s    u   (?:\s*).+?\.(?:\s+|$)t   flagsu    u   
u    u   `%s`u   =u   Functionu   Description(   t   reRq  t   compilet   DOTALLRt  t   __doc__Rj   R   t   groupt   stript   replaceR  R   R   t   joinRl  (   R  R8  Rz  t   first_sentencet   rowst   max_namet   max_summaryR{  t   doct   summaryR   Rf  t   sep(    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   _setup_pyplot_info_docstrings  s:    			'
c         K` sp   |  d  k r3 t   }  |  d  k r3 t d   q3 n  | d  k rK t   } n  t   j |  d | d | | } | S(   Nu   No mappable was found to use for colorbar creation. First define a mappable such as an image (with imshow) or a contour set (with contourf).t   caxR  (   Rj   R   R   R   R}   t   colorbar(   t   mappableR  R  R   R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR  	  s    	!c         C` s8   t    } | d k r$ t d   n  | j |  |  d S(   up  
    Set the color limits of the current image.

    To apply clim to all axes images do::

      clim(0, 0.5)

    If either *vmin* or *vmax* is None, the image min/max respectively
    will be used for color scaling.

    If you want to set the clim of multiple images,
    use, for example::

      for im in gca().get_images():
          im.set_clim(0, 0.05)

    u1   You must first define an image, e.g., with imshowN(   R   Rj   R   t   set_clim(   t   vmint   vmaxR   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   clim	  s    	c         C` sK   t  j |   }  t d d |  j t   } | d k	 rG | j |   n  d S(   u;  
    Set the default colormap.  Applies to the current image if any.
    See help(colormaps) for more information.

    *cmap* must be a :class:`~matplotlib.colors.Colormap` instance, or
    the name of a registered colormap.

    See :func:`matplotlib.cm.register_cmap` and
    :func:`matplotlib.cm.get_cmap`.
    u   imaget   cmapN(   R$   R%   R   R{  R   Rj   t   set_cmap(   R  R   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR  .	  s
    	c          O` s   t  |  |   S(   N(   t   _imread(   R   R   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR   C	  s    c          O` s   t  |  |   S(   N(   t   _imsave(   R   R   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR   H	  s    c         K` s   t  j |   }  | t k s' | d k r3 t   } n3 t | d t |   } | j d d d d g  } | j |  |  } t |  | S(   u  
    Display an array as a matrix in a new figure window.

    The origin is set at the upper left hand corner and rows (first
    dimension of the array) are displayed horizontally.  The aspect
    ratio of the figure window is that of the array, unless this would
    make an excessively short or narrow figure.

    Tick labels for the xaxis are placed on top.

    Parameters
    ----------
    A : array-like(M, N)
        The matrix to be displayed.

    fignum : None or int or False
        If *None*, create a new figure window with automatic numbering.

        If *fignum* is an integer, draw into the figure with the given number
        (create it if it does not exist).

        If 0 or *False*, use the current axes if it exists instead of creating
        a new figure.

        .. note::

           Because of how `.Axes.matshow` tries to set the figure aspect
           ratio to be the one of the array, strange things may happen if you
           reuse an existing figure.

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

    Other Parameters
    ----------------
    **kwargs : `~matplotlib.axes.Axes.imshow` arguments

    i    R   g333333?g
ףp=
?g?(	   t   npt
   asanyarrayRp   R   R   R   R  t   matshowR   (   t   At   fignumR   R  R   R   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR  M	  s    (
c          O` sY   t    j   r4 t t   t  s4 t j d  q4 n  t d t  } | j |  |   } | S(   u   
    Make a polar plot.

    call signature::

      polar(theta, r, **kwargs)

    Multiple *theta*, *r* arguments are supported, with format
    strings, as in :func:`~matplotlib.pyplot.plot`.

    uM   Trying to create polar plot on an axis that does not have a polar projection.t   polar(	   R}   t   get_axesR   R   R    R   R   Rt   t   plot(   R   R   R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR  	  s    u   #i   u   ,c
         ` s  |	 r t    } n	 t   } t |  d k  r< t d   n  | d k rT t   } n  d d l m } t j	   B t j
 d |  t j |  d | d | d | d	 | d
 |   Wd QX  f d   } | | d  \ } } g  } t |  d k rH| j d d d  } | j | d d  } t | |  } | | |
  | j |  n5t |  } x&t d |  D]} | r| d k r| j | d d |  } } q| j | d d | d | } n$ | d k r| j d d d  } n  | | |  \ } } | j |  | j | | d  } t | |  } | | | |
  | rP| j |  n  | j   rl| j |  qd| j d  qdW| s| j | d d n  | d k r| j   n  d S(   u  
    Plot the data in a file.

    *cols* is a sequence of column identifiers to plot.  An identifier
    is either an int or a string.  If it is an int, it indicates the
    column number.  If it is a string, it indicates the column header.
    matplotlib will make column headers lower case, replace spaces with
    underscores, and remove all illegal characters; so ``'Adj Close*'``
    will have name ``'adj_close'``.

    - If len(*cols*) == 1, only that column will be plotted on the *y* axis.

    - If len(*cols*) > 1, the first element will be an identifier for
      data for the *x* axis and the remaining elements will be the
      column indexes for multiple subplots if *subplots* is *True*
      (the default), or for lines in a single subplot if *subplots*
      is *False*.

    *plotfuncs*, if not *None*, is a dictionary mapping identifier to
    an :class:`~matplotlib.axes.Axes` plotting function as a string.
    Default is 'plot', other choices are 'semilogy', 'fill', 'bar',
    etc.  You must use the same type of identifier in the *cols*
    vector as you use in the *plotfuncs* dictionary, e.g., integer
    column numbers in both or column names in both. If *subplots*
    is *False*, then including any function such as 'semilogy'
    that changes the axis scaling will set the scaling for all
    columns.

    *comments*, *skiprows*, *checkrows*, *delimiter*, and *names*
    are all passed on to :func:`matplotlib.pylab.csv2rec` to
    load the data into a record array.

    If *newfig* is *True*, the plot always will be made in a new figure;
    if *False*, it will be made in the current figure if one exists,
    else in a new figure.

    kwargs are passed on to plotting functions.

    Example usage::

      # plot the 2nd and 4th column against the 1st in two subplots
      plotfile(fname, (0,1,3))

      # plot using column names; specify an alternate plot type for volume
      plotfile(fname, ('date', 'volume', 'adj_close'),
                                    plotfuncs={'volume': 'semilogy'})

    Note: plotfile is intended as a convenience for quickly plotting
    data from flat files; it is not intended as an alternative
    interface to general plotting with pyplot or matplotlib.
    i   u%   must have at least one column of datai    (   t   mplDeprecationu   ignoret   commentst   skiprowst	   checkrowst	   delimitert   namesNc         ` s`   t  |  t j  r  |    |  f St |   rP   j j t |   } |   | f St d   d S(   u.   return the name and column data for identifieru&   identifier must be a string or integerN(   R   R   R   R
   t   dtypeR  R   R   (   t
   identifierR{  (   t   r(    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   getname_val	  s    u   plotR  u    R(  u   bestu   date(   R   R}   R   R  Rj   t   dictt   matplotlib.cbookR  R   t   catch_warningst   simplefilterR!   t   csv2recR  R   t   getattrRF  t   rangeR  t   is_last_rowRD  R   t   autofmt_xdate(   R   t   colst	   plotfuncsR  R  R  R  R  R!  t   newfigR   R   R  R  t   xnamet   xt	   ynamelistR.  t   funcnameR   t   Nt   iR  t   ynamet   y(    (   R  s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   plotfile	  sV    7	
 "c         ` s(   d } t  j | d       f d   S(   uZ   Autogenerated wrappers will get their docstring from a base function
    with an addendum.u    u   

c         ` s     t  j   |    S(   N(   R   t   copy_dedent(   R   (   t   addendumt   base(    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR   
  s    (   R   t   Appender(   R  t   msg(    (   R  R  s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   _autogen_docstring
  s    u   equalc         K` s   t    } | j d d   } | j } | d  k	 r\ | | _ d d l m }	 t j d |	  n  z" | j |  | | | | |  }
 Wd  | | _ Xt	 |
 t
 j  r t |
  n  |
 S(   Nu   holdi    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.(   R   t   popRj   R  R  R  R   R   t   spyR   R$   t   ScalarMappableR   (   t   Zt	   precisiont   markert
   markersizet   aspectR   R  R  t   washoldR  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR  
  s    				
"
c         K` sw   t    } | j } | d  k	 rJ | | _ d d l m } t j d |  n  z | j |  d | | } Wd  | | _ X| S(   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.t   data(   R   R  Rj   R  R  R   R   t   acorr(   R  R  R  R   R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR  <
  s    				

c         K` s   t    }	 |	 j }
 | d  k	 rJ | |	 _ d d l m } t j d |  n  z: |	 j |  d | d | d | d | d | d	 | | } Wd  |
 |	 _ X| S(
   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.t   Fst   Fct   windowt   pad_tot   sidesR  (   R   R  Rj   R  R  R   R   t   angle_spectrum(   R  R  R  R  R  R  R  R  R   R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR  P
  s    				
$
c   
      K` sz   t    } | j } | d  k	 rJ | | _ d d l m } t j d |  n  z | j |  | | | |  }	 Wd  | | _ X|	 S(   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.(   R   R  Rj   R  R  R   R   t   arrow(
   R  R  t   dxt   dyR  R   R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR  f
  s    				

c   	      K` s   t    } | j } | d  k	 rJ | | _ d d l m } t j d |  n  z% | j d |  d | d | |  } Wd  | | _ X| S(   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.R  t   xmint   xmax(   R   R  Rj   R  R  R   R   t   axhline(	   R  R  R  R  R   R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR  z
  s    				
%
c   
      K` s   t    } | j } | d  k	 rJ | | _ d d l m } t j d |  n  z% | j |  | d | d | | }	 Wd  | | _ X|	 S(   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.R  R  (   R   R  Rj   R  R  R   R   t   axhspan(
   t   ymint   ymaxR  R  R  R   R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR  
  s    				
%
c   	      K` s   t    } | j } | d  k	 rJ | | _ d d l m } t j d |  n  z% | j d |  d | d | |  } Wd  | | _ X| S(   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.R  R  R  (   R   R  Rj   R  R  R   R   t   axvline(	   R  R  R  R  R   R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR  
  s    				
%
c   
      K` s   t    } | j } | d  k	 rJ | | _ d d l m } t j d |  n  z% | j |  | d | d | | }	 Wd  | | _ X|	 S(   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.R  R  (   R   R  Rj   R  R  R   R   t   axvspan(
   R  R  R  R  R  R   R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR  
  s    				
%
c          O` s   t    } | j } | j d d   } | d  k	 r\ | | _ d d l m } t j d |  n  z | j |  |   } Wd  | | _ X| S(   Nu   holdi    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.(	   R   R  R  Rj   R  R  R   R   t   bar(   R   R   R  R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR  
  s    				

c          O` s   t    } | j } | j d d   } | d  k	 r\ | | _ d d l m } t j d |  n  z | j |  |   } Wd  | | _ X| S(   Nu   holdi    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.(	   R   R  R  Rj   R  R  R   R   t   barh(   R   R   R  R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR  
  s    				

c   	      K` sz   t    } | j } | d  k	 rJ | | _ d d l m } t j d |  n  z | j |  | d | | } Wd  | | _ X| S(   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.R  (   R   R  Rj   R  R  R   R   t   broken_barh(	   t   xrangest   yrangeR  R  R   R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR  
  s    				

c       6   C` s
  t    } | j } | d  k	 rJ | | _ d d l m } t j d |  n  z | j |  d | d | d | d | d | d	 | d
 | d | d |	 d |
 d | d | d | d | d | d | d | d | d | d | d | d | d | d | d | d | } Wd  | | _ X| S(   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.t   notcht   symt   vertt   whist	   positionst   widthst   patch_artistt	   bootstrapt   usermedianst   conf_intervalst   meanlinet	   showmeanst   showcapst   showboxt
   showflierst   boxpropsRX  t
   flierpropst   medianpropst	   meanpropst   cappropst   whiskerpropst   manage_xtickst	   autoranget   zorderR  (   R   R  Rj   R  R  R   R   t   boxplot(    R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  RX  R  R  R  R  R  R  R  R   R  R  R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR    s.    				
$
i   u   defaultc         K` s   t    } | j } | d  k	 rJ | | _ d d l m } t j d |  n  zU | j |  | d | d | d | d | d | d	 | d
 | d |	 d |
 d | | 
} Wd  | | _ X| S(   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.t   NFFTR  R  t   detrendR  t   noverlapR  R  t   scale_by_freqR  (   R   R  Rj   R  R  R   R   t   cohere(   R  R  R  R  R  R  R  R  R  R  R  R  R  R   R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR  ,  s    				
'
c         O` s   t    } | j } | j d d   } | d  k	 r\ | | _ d d l m } t j d |  n  z | j |  | |  } Wd  | | _ X| S(   Nu   holdi    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.(	   R   R  R  Rj   R  R  R   R   t   clabel(   t   CSR   R   R  R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR  E  s    				

c          O` s   t    } | j } | j d d   } | d  k	 r\ | | _ d d l m } t j d |  n  z | j |  |   } Wd  | | _ X| j	 d  k	 r t
 |  n  | S(   Nu   holdi    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.(   R   R  R  Rj   R  R  R   R   t   contourt   _AR   (   R   R   R  R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR	  Y  s    				

 c          O` s   t    } | j } | j d d   } | d  k	 r\ | | _ d d l m } t j d |  n  z | j |  |   } Wd  | | _ X| j	 d  k	 r t
 |  n  | S(   Nu   holdi    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.(   R   R  R  Rj   R  R  R   R   t   contourfR
  R   (   R   R   R  R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR  m  s    				

 c         K` s   t    } | j } | d  k	 rJ | | _ d d l m } t j d |  n  z[ | j |  | d | d | d | d | d | d	 | d
 | d |	 d |
 d | d | | } Wd  | | _ X| S(   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.R  R  R  R  R  R  R  R  R  t   return_lineR  (   R   R  Rj   R  R  R   R   t   csd(   R  R  R  R  R  R  R  R  R  R  R  R  R  R  R   R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR    s    				
'
u    c          K` s   t    } | j } | d  k	 rJ | | _ d d l m } t j d |  n  zm | j |  | d | d | d | d | d | d	 | d
 | d |	 d |
 d | d | d | d | d | | } Wd  | | _ X| S(   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.t   yerrt   xerrt   fmtt   ecolort
   elinewidtht   capsizet	   barsabovet   lolimst   uplimst   xlolimst   xuplimst
   erroreveryt   capthickR  (   R   R  Rj   R  R  R   R   t   errorbar(   R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R   R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR    s     				
'
u
   horizontalu   solidc	         K` s   t    }
 |
 j } | d  k	 rJ | |
 _ d d l m } t j d |  n  z@ |
 j |  d | d | d | d | d | d	 | d
 | |	 } Wd  | |
 _ X| S(   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.t   orientationt   lineoffsetst   linelengthst
   linewidthsR}  t
   linestylesR  (   R   R  Rj   R  R  R   R   t	   eventplot(   R  R  R  R  R  R}  R   R  R  R   R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR!    s    				

c          O` s   t    } | j } | j d d   } | d  k	 r\ | | _ d d l m } t j d |  n  z | j |  |   } Wd  | | _ X| S(   Nu   holdi    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.(	   R   R  R  Rj   R  R  R   R   t   fill(   R   R   R  R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR"    s    				

c         K` s   t    }	 |	 j }
 | d  k	 rJ | |	 _ d d l m } t j d |  n  z7 |	 j |  | d | d | d | d | d | | } Wd  |
 |	 _ X| S(	   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.t   y2t   wheret   interpolatet   stepR  (   R   R  Rj   R  R  R   R   t   fill_between(   R  t   y1R#  R$  R%  R&  R  R  R   R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR'    s    				

c         K` s   t    }	 |	 j }
 | d  k	 rJ | |	 _ d d l m } t j d |  n  z7 |	 j |  | d | d | d | d | d | | } Wd  |
 |	 _ X| S(	   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.t   x2R$  R&  R%  R  (   R   R  Rj   R  R  R   R   t   fill_betweenx(   R  t   x1R)  R$  R&  R%  R  R  R   R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR*    s    				
!
u   linearu   facec      &   K` s   t    } | j } | d  k	 rJ | | _ d d l m } t j d |  n  z | j |  | d | d | d | d | d | d	 | d
 | d |	 d |
 d | d | d | d | d | d | d | d | | } Wd  | | _ Xt |  | S(   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.t   Ct   gridsizet   binsRO  RQ  t   extentR  t   normR  R  t   alphaR  t
   edgecolorst   reduce_C_functiont   mincntt	   marginalsR  (	   R   R  Rj   R  R  R   R   t   hexbinR   (   R  R  R,  R-  R.  RO  RQ  R/  R  R0  R  R  R1  R  R2  R3  R4  R5  R  R  R   R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR6    s"    				
'

u   baru   midu   verticalc      #   K` s   t    } | j } | d  k	 rJ | | _ d d l m } t j d |  n  zv | j |  d | d | d | d | d | d	 | d
 | d | d |	 d |
 d | d | d | d | d | d | | } Wd  | | _ X| S(   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.R.  R  t   densityt   weightst
   cumulativet   bottomt   histtypet   alignR  t   rwidtht   logt   colort   labelt   stackedt   normedR  (   R   R  Rj   R  R  R   R   t   hist(   R  R.  R  R7  R8  R9  R:  R;  R<  R  R=  R>  R?  R@  RA  RB  R  R  R   R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyRC  -  s    				

i
   c
         K` s   t    } | j } | d  k	 rJ | | _ d d l m } t j d |  n  zC | j |  | d | d | d | d | d | d	 | d
 |	 |
 } Wd  | | _ Xt | d  | S(   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.R.  R  RB  R8  t   cmint   cmaxR  i(	   R   R  Rj   R  R  R   R   t   hist2dR   (   R  R  R.  R  RB  R8  RD  RE  R  R  R   R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyRF  H  s    				
!
u   kc         K` s   t    }	 |	 j }
 | d  k	 rJ | |	 _ d d l m } t j d |  n  z4 |	 j |  | | d | d | d | d | | } Wd  |
 |	 _ X| S(   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.R}  R   R@  R  (   R   R  Rj   R  R  R   R   t   hlines(   R  R  R  R}  R   R@  R  R  R   R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyRG  _  s    				

g      @c      #   K` s   t    } | j } | d  k	 rJ | | _ d d l m } t j d |  n  zv | j |  d | d | d | d | d | d	 | d
 | d | d |	 d |
 d | d | d | d | d | d | | } Wd  | | _ Xt |  | S(   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.R  R0  R  t   interpolationR1  R  R  t   originR/  R'  t
   filternormt	   filterradt   imlimt   resamplet   urlR  (	   R   R  Rj   R  R  R   R   t   imshowR   (   t   XR  R0  R  RH  R1  R  R  RI  R/  R'  RJ  RK  RL  RM  RN  R  R  R   R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyRO  u  s"    				


c          O` s   t    } | j } | j d d   } | d  k	 r\ | | _ d d l m } t j d |  n  z | j |  |   } Wd  | | _ X| S(   Nu   holdi    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.(	   R   R  R  Rj   R  R  R   R   t   loglog(   R   R   R  R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyRQ    s    				

c	         K` s   t    }
 |
 j } | d  k	 rJ | |
 _ d d l m } t j d |  n  z@ |
 j |  d | d | d | d | d | d	 | d
 | |	 } Wd  | |
 _ X| S(   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.R  R  R  R  R  R   R  (   R   R  Rj   R  R  R   R   t   magnitude_spectrum(   R  R  R  R  R  R  R   R  R  R   R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyRR    s    				

c          O` s   t    } | j } | j d d   } | d  k	 r\ | | _ d d l m } t j d |  n  z | j |  |   } Wd  | | _ Xt	 |  | S(   Nu   holdi    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.(
   R   R  R  Rj   R  R  R   R   t   pcolorR   (   R   R   R  R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyRS    s    				


c          O` s   t    } | j } | j d d   } | d  k	 r\ | | _ d d l m } t j d |  n  z | j |  |   } Wd  | | _ Xt	 |  | S(   Nu   holdi    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.(
   R   R  R  Rj   R  R  R   R   t
   pcolormeshR   (   R   R   R  R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyRT    s    				


c         K` s   t    }	 |	 j }
 | d  k	 rJ | |	 _ d d l m } t j d |  n  z: |	 j |  d | d | d | d | d | d	 | | } Wd  |
 |	 _ X| S(
   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.R  R  R  R  R  R  (   R   R  Rj   R  R  R   R   t   phase_spectrum(   R  R  R  R  R  R  R  R  R   R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyRU    s    				
$
g333333?g?c      "   C` s   t    } | j } | d  k	 rJ | | _ d d l m } t j d |  n  zs | j |  d | d | d | d | d | d	 | d
 | d | d |	 d |
 d | d | d | d | d | d | } Wd  | | _ X| S(   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.t   explodeRX  R}  t   autopctt   pctdistancet   shadowt   labeldistancet
   startanglet   radiust   counterclockt
   wedgepropst	   textpropst   centert   framet   rotatelabelsR  (   R   R  Rj   R  R  R   R   t   pie(   R  RV  RX  R}  RW  RX  RY  RZ  R[  R\  R]  R^  R_  R`  Ra  Rb  R  R  R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyRc    s     				

c          O` s   t    } | j } | j d d   } | d  k	 r\ | | _ d d l m } t j d |  n  z | j |  |   } Wd  | | _ X| S(   Nu   holdi    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.(	   R   R  R  Rj   R  R  R   R   R  (   R   R   R  R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR    s    				

u   oc         K` s   t    }	 |	 j }
 | d  k	 rJ | |	 _ d d l m } t j d |  n  z7 |	 j |  | d | d | d | d | d | | } Wd  |
 |	 _ X| S(	   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.R  t   tzt   xdatet   ydateR  (   R   R  Rj   R  R  R   R   t	   plot_date(   R  R  R  Rd  Re  Rf  R  R  R   R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyRg  *  s    				
'
c         K` s   t    } | j } | d  k	 rJ | | _ d d l m } t j d |  n  zX | j |  d | d | d | d | d | d	 | d
 | d | d |	 d |
 d | | } Wd  | | _ X| S(   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.R  R  R  R  R  R  R  R  R  R  R  (   R   R  Rj   R  R  R   R   t   psd(   R  R  R  R  R  R  R  R  R  R  R  R  R  R   R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyRh  @  s    				
$
c          O` s   t    } | j } | j d d   } | d  k	 r\ | | _ d d l m } t j d |  n  z | j |  |   } Wd  | | _ Xt	 |  | S(   Nu   holdi    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.(
   R   R  R  Rj   R  R  R   R   t   quiverR   (   R   R   R  R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyRi  Y  s    				


c          O` s   t    } | j } | j d d   } | d  k	 r\ | | _ d d l m } t j d |  n  z | j |  |   } Wd  | | _ X| S(   Nu   holdi    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.(	   R   R  R  Rj   R  R  R   R   t	   quiverkey(   R   R   R  R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyRj  m  s    				

c         K` s   t    } | j } | d  k	 rJ | | _ d d l m } t j d |  n  za | j |  | d | d | d | d | d | d	 | d
 | d |	 d |
 d | d | d | | } Wd  | | _ Xt |  | S(   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.R   t   cR  R  R0  R  R  R1  R  t   vertsR2  R  (	   R   R  Rj   R  R  R   R   t   scatterR   (   R  R  R   Rk  R  R  R0  R  R  R1  R  Rl  R2  R  R  R   R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyRm    s    				
-

c          O` s   t    } | j } | j d d   } | d  k	 r\ | | _ d d l m } t j d |  n  z | j |  |   } Wd  | | _ X| S(   Nu   holdi    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.(	   R   R  R  Rj   R  R  R   R   t   semilogx(   R   R   R  R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyRn    s    				

c          O` s   t    } | j } | j d d   } | d  k	 r\ | | _ d d l m } t j d |  n  z | j |  |   } Wd  | | _ X| S(   Nu   holdi    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.(	   R   R  R  Rj   R  R  R   R   t   semilogy(   R   R   R  R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyRo    s    				

c      #   K` s   t    } | j } | d  k	 rJ | | _ d d l m } t j d |  n  zv | j |  d | d | d | d | d | d	 | d
 | d | d |	 d |
 d | d | d | d | d | d | | } Wd  | | _ Xt | d  | S(   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.R  R  R  R  R  R  R  t   xextentR  R  R  t   modeR   R  R  R  i(	   R   R  Rj   R  R  R   R   t   specgramR   (   R  R  R  R  R  R  R  R  Rp  R  R  R  Rq  R   R  R  R  R  R   R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyRr    s     				
$
c         O` s   t    } | j } | j d d   } | d  k	 r\ | | _ d d l m } t j d |  n  z | j |  | |  } Wd  | | _ X| S(   Nu   holdi    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.(	   R   R  R  Rj   R  R  R   R   t	   stackplot(   R  R   R   R  R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyRs    s    				

c          O` s   t    } | j } | j d d   } | d  k	 r\ | | _ d d l m } t j d |  n  z | j |  |   } Wd  | | _ X| S(   Nu   holdi    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.(	   R   R  R  Rj   R  R  R   R   t   stem(   R   R   R  R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyRt    s    				

c   	      O` s   t    } | j } | j d d   } | d  k	 r\ | | _ d d l m } t j d |  n  z | j |  | | |  } Wd  | | _ X| S(   Nu   holdi    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.(	   R   R  R  Rj   R  R  R   R   R&  (	   R  R  R   R   R  R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR&    s    				

u   -|>g?u   bothc      !   C` s   t    } | j } | d  k	 rJ | | _ d d l m } t j d |  n  zp | j |  | | | d | d | d | d | d | d	 |	 d
 |
 d | d | d | d | d | d | d | } Wd  | | _ Xt | j	  | S(   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.R7  R   R?  R  R0  t	   arrowsizet
   arrowstylet	   minlengtht	   transformR   t   start_pointst	   maxlengtht   integration_directionR  (
   R   R  Rj   R  R  R   R   t
   streamplotR   Rf  (   R  R  t   uRC  R7  R   R?  R  R0  Ru  Rv  Rw  Rx  R   Ry  Rz  R{  R  R  R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR|    s&    				
!
c          O` s   t    } | j } | j d d   } | d  k	 r\ | | _ d d l m } t j d |  n  z | j |  |   } Wd  | | _ X| j	 d  k	 r t
 |  n  | S(   Nu   holdi    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.(   R   R  R  Rj   R  R  R   R   t
   tricontourR
  R   (   R   R   R  R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR~  7  s    				

 c          O` s   t    } | j } | j d d   } | d  k	 r\ | | _ d d l m } t j d |  n  z | j |  |   } Wd  | | _ X| j	 d  k	 r t
 |  n  | S(   Nu   holdi    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.(   R   R  R  Rj   R  R  R   R   t   tricontourfR
  R   (   R   R   R  R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR  K  s    				

 c          O` s   t    } | j } | j d d   } | d  k	 r\ | | _ d d l m } t j d |  n  z | j |  |   } Wd  | | _ Xt	 |  | S(   Nu   holdi    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.(
   R   R  R  Rj   R  R  R   R   t	   tripcolorR   (   R   R   R  R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR  _  s    				


c          O` s   t    } | j } | j d d   } | d  k	 r\ | | _ d d l m } t j d |  n  z | j |  |   } Wd  | | _ X| S(   Nu   holdi    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.(	   R   R  R  Rj   R  R  R   R   t   triplot(   R   R   R  R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR  s  s    				

g      ?c         C` s   t    } | j } |	 d  k	 rJ |	 | _ d d l m } t j d |  n  zI | j |  d | d | d | d | d | d	 | d
 | d | d |
 	} Wd  | | _ X| S(   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.R  R  R  R  t   showextremat   showmedianst   pointst	   bw_methodR  (   R   R  Rj   R  R  R   R   t
   violinplot(   t   datasetR  R  R  R  R  R  R  R  R  R  R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR    s    				

c         K` s   t    }	 |	 j }
 | d  k	 rJ | |	 _ d d l m } t j d |  n  z4 |	 j |  | | d | d | d | d | | } Wd  |
 |	 _ X| S(   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.R}  R   R@  R  (   R   R  Rj   R  R  R   R   t   vlines(   R  R  R  R}  R   R@  R  R  R   R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR    s    				

c         K` s   t    }	 |	 j }
 | d  k	 rJ | |	 _ d d l m } t j d |  n  z7 |	 j |  | d | d | d | d | d | | } Wd  |
 |	 _ X| S(	   Ni    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.RB  R  t	   usevlinest   maxlagsR  (   R   R  Rj   R  R  R   R   t   xcorr(   R  R  RB  R  R  R  R  R  R   R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR    s    				

c          O` s   t    } | j } | j d d   } | d  k	 r\ | | _ d d l m } t j d |  n  z | j |  |   } Wd  | | _ X| S(   Nu   holdi    (   R  u4   The 'hold' keyword argument is deprecated since 2.0.(	   R   R  R  Rj   R  R  R   R   t   barbs(   R   R   R  R  R  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR    s    				

c          C` s   t    j   }  |  S(   N(   R   t   cla(   R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR    s    u   majorc         K` s(   t    j d |  d | d | |  } | S(   NR  t   whichRB  (   R   t   grid(   R  R  RB  R   R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR    s    $c          O` s   t    j |  |   } | S(   N(   R   R   (   R   R   R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR     s    c          K` s   t    j |    } | S(   N(   R   t   table(   R   R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR    s    c      	   K` s+   t    j |  | | d | d | | } | S(   Nt   fontdictt   withdash(   R   R   (   R  R  R   R  R  R   R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR     s    'c          O` s   t    j |  |   } | S(   N(   R   t   annotate(   R   R   R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR    s    c          K` s   t    j |    } | S(   N(   R   t   ticklabel_format(   R   R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR    s    c         K` s"   t    j d |  d | |  } | S(   NRB  t   tight(   R   t   locator_params(   RB  R  R   R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR    s    c         K` s   t    j d |  |  } | S(   NRB  (   R   t   tick_params(   RB  R   R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR    s    c          O` s   t    j |  |   } | S(   N(   R   t   margins(   R   R   R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR    s    c         C` s%   t    j d |  d | d |  } | S(   Nt   enableRB  R  (   R   t	   autoscale(   R  RB  R  R6  (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyR    s    !c           C` s   t  d  d S(   u   
    Set the colormap to "autumn".

    This changes the default colormap as well as the colormap of the current
    image if there is one. See ``help(colormaps)`` for more information.
    u   autumnN(   R  (    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   autumn#  s    c           C` s   t  d  d S(   u   
    Set the colormap to "bone".

    This changes the default colormap as well as the colormap of the current
    image if there is one. See ``help(colormaps)`` for more information.
    u   boneN(   R  (    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   bone.  s    c           C` s   t  d  d S(   u   
    Set the colormap to "cool".

    This changes the default colormap as well as the colormap of the current
    image if there is one. See ``help(colormaps)`` for more information.
    u   coolN(   R  (    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   cool9  s    c           C` s   t  d  d S(   u   
    Set the colormap to "copper".

    This changes the default colormap as well as the colormap of the current
    image if there is one. See ``help(colormaps)`` for more information.
    u   copperN(   R  (    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   copperD  s    c           C` s   t  d  d S(   u   
    Set the colormap to "flag".

    This changes the default colormap as well as the colormap of the current
    image if there is one. See ``help(colormaps)`` for more information.
    u   flagN(   R  (    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   flagO  s    c           C` s   t  d  d S(   u   
    Set the colormap to "gray".

    This changes the default colormap as well as the colormap of the current
    image if there is one. See ``help(colormaps)`` for more information.
    u   grayN(   R  (    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   grayZ  s    c           C` s   t  d  d S(   u   
    Set the colormap to "hot".

    This changes the default colormap as well as the colormap of the current
    image if there is one. See ``help(colormaps)`` for more information.
    u   hotN(   R  (    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   hote  s    c           C` s   t  d  d S(   u   
    Set the colormap to "hsv".

    This changes the default colormap as well as the colormap of the current
    image if there is one. See ``help(colormaps)`` for more information.
    u   hsvN(   R  (    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   hsvp  s    c           C` s   t  d  d S(   u   
    Set the colormap to "jet".

    This changes the default colormap as well as the colormap of the current
    image if there is one. See ``help(colormaps)`` for more information.
    u   jetN(   R  (    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   jet{  s    c           C` s   t  d  d S(   u   
    Set the colormap to "pink".

    This changes the default colormap as well as the colormap of the current
    image if there is one. See ``help(colormaps)`` for more information.
    u   pinkN(   R  (    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   pink  s    c           C` s   t  d  d S(   u   
    Set the colormap to "prism".

    This changes the default colormap as well as the colormap of the current
    image if there is one. See ``help(colormaps)`` for more information.
    u   prismN(   R  (    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   prism  s    c           C` s   t  d  d S(   u   
    Set the colormap to "spring".

    This changes the default colormap as well as the colormap of the current
    image if there is one. See ``help(colormaps)`` for more information.
    u   springN(   R  (    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   spring  s    c           C` s   t  d  d S(   u   
    Set the colormap to "summer".

    This changes the default colormap as well as the colormap of the current
    image if there is one. See ``help(colormaps)`` for more information.
    u   summerN(   R  (    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   summer  s    c           C` s   t  d  d S(   u   
    Set the colormap to "winter".

    This changes the default colormap as well as the colormap of the current
    image if there is one. See ``help(colormaps)`` for more information.
    u   winterN(   R  (    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   winter  s    c           C` s   t  d  d S(   u   
    Set the colormap to "magma".

    This changes the default colormap as well as the colormap of the current
    image if there is one. See ``help(colormaps)`` for more information.
    u   magmaN(   R  (    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   magma  s    c           C` s   t  d  d S(   u   
    Set the colormap to "inferno".

    This changes the default colormap as well as the colormap of the current
    image if there is one. See ``help(colormaps)`` for more information.
    u   infernoN(   R  (    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   inferno  s    c           C` s   t  d  d S(   u   
    Set the colormap to "plasma".

    This changes the default colormap as well as the colormap of the current
    image if there is one. See ``help(colormaps)`` for more information.
    u   plasmaN(   R  (    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   plasma  s    c           C` s   t  d  d S(   u   
    Set the colormap to "viridis".

    This changes the default colormap as well as the colormap of the current
    image if there is one. See ``help(colormaps)`` for more information.
    u   viridisN(   R  (    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   viridis  s    c           C` s   t  d  d S(   u   
    Set the colormap to "nipy_spectral".

    This changes the default colormap as well as the colormap of the current
    image if there is one. See ``help(colormaps)`` for more information.
    u   nipy_spectralN(   R  (    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   nipy_spectral  s    c          C` s4   d d l  m }  |  d d d d d t d  d S(	   u   
    Set the colormap to "spectral".

    This changes the default colormap as well as the colormap of the current
    image if there is one. See ``help(colormaps)`` for more information.
    i    (   R   u   2.0R{  u   spectralt   obj_typeu   colormapN(   R  R   R  (   R   (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   spectral  s    (   i    (   i    i    (  R  t
   __future__R    R   R   R   R   RJ   R   R   R   Rc   t   matplotlib.colorbarR   R   R   R  R   R	   R
   R   R   R   R   t   matplotlib.backend_basesR   t   matplotlib.figureR   R   t   matplotlib.gridspecR   t   matplotlib.imageR   R  R   R  R   R   R   R   t   matplotlib.rcsetupR   RH   t   matplotlib.artistR   R   R   R   R   t   matplotlib.axesR   R   t   matplotlib.projectionsR    R!   t   matplotlib.scaleR"   R#   R$   t   matplotlib.cmR%   R&   t   numpyR  t   matplotlib.colorsR'   t   matplotlib.linesR(   t   matplotlib.textR)   R*   t   matplotlib.patchesR+   R,   R-   R.   t   matplotlib.widgetsR/   R0   R1   R2   t   tickerR3   R4   R5   R6   R7   R8   R9   R:   R;   R<   R=   R>   R?   R@   RA   RB   RC   RD   RE   R   RF   R^   R   R   R   R   Rj   Rk   Rp   Rq   Rx   R{   R   Re   R  R~   Rt   R   R   R   R   R   R   R   R   R   R   t   copyR   R   R   R}   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R  t	   _hold_msgR  R  R
  R  R  R  R   R  R!  R,  R-  R/  R0  R7  R;  R?  RA  RB  RE  RG  RJ  RM  t   dedent_interpdRO  RQ  RZ  R_  R`  Ra  Rg  Rk  Rl  Rq  R}  Ro  R  R  t   colorbar_docR  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  t   detrend_nonet   window_hanningR  R	  R  R  R  R!  R"  R'  R*  R6  t   meanRC  RF  RG  RO  RQ  RR  RS  RT  RU  Rc  R  Rg  Rh  Ri  Rj  Rm  Rn  Ro  Rr  Rs  Rt  R&  R|  R~  R  R  R  R  R  R  R  R  R  R   R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  (    (    (    s0   lib/python2.7/site-packages/matplotlib/pyplot.pyt   <module>   sp  """|	%	6	 						
		<								,			+!J
			_y=		/	E			$	%	O	R	
		,	?		2		5	6	x	
																					