ó
mÜJ]c           @` st  d  d l  m Z m Z m Z m Z d  d l Z e j e ƒ Z d  d l	 m
 Z
 d d l m Z m Z d d l m Z m Z m Z m Z m Z m Z m Z d d l m Z m Z m Z m Z m Z m Z m Z d d l m Z m Z d d	 l  m! Z! m" Z" m# Z# m$ Z$ d d
 l% m& Z& d d l' m( Z( m) Z) m* Z* d Z+ d Z, d e f d „  ƒ  YZ- d „  Z. d e& f d „  ƒ  YZ/ d S(   i    (   t   absolute_importt   divisiont   print_functiont   unicode_literalsN(   t   string_typesi   (   t   HorizontalLocationt   VerticalLocation(   t   Autot   Eithert   Enumt   Intt   Seqt   Instancet   String(   t   GMapPlott
   LinearAxist   MercatorTickert   MercatorTickFormattert   Range1dt   Titlet   Tool(   t   glyphst   markers(   t   Dragt
   Inspectiont   Scrollt   Tap(   t   Optionsi   (   t   _process_tools_argt   _process_active_toolst   _glyph_functionu   pan,wheel_zoom,reset,helpu   GMapu   GMapFigureOptionsu   gmapt   GMapc           B` sN  e  Z d  Z d Z d Z d „  Z e e j ƒ Z	 e e j
 ƒ Z e e j ƒ Z e e j ƒ Z e e j ƒ Z e e j ƒ Z e e j ƒ Z e e j ƒ Z e e j ƒ Z e e j ƒ Z e e j ƒ Z e e j ƒ Z  e e j! ƒ Z" e e j# ƒ Z$ e e j% ƒ Z& e e j' ƒ Z( e e j) ƒ Z* e e j+ ƒ Z, e e j- ƒ Z. e e j/ ƒ Z0 e e j1 ƒ Z2 e e j3 ƒ Z4 e e j5 ƒ Z6 e e j7 ƒ Z8 e e j9 ƒ Z: e e j; ƒ Z< e e j= ƒ Z> e e j? ƒ Z@ e e jA ƒ ZB e e jC ƒ ZD e e jE ƒ ZF e e jG ƒ ZH e e jI ƒ ZJ e e jK ƒ ZL e e jM ƒ ZN e e jO ƒ ZP e e jQ ƒ ZR RS(   u®   A subclass of :class:`~bokeh.models.plots.Plot` that simplifies plot
    creation with default axes, grids, tools, etc.

    Args:
        google_api_key (str):
            Google requires an API key be supplied for maps to function. See:

            https://developers.google.com/maps/documentation/javascript/get-api-key

        map_options: (GMapOptions)
            Configuration specific to a Google Map

    In addition to all the Bokeh model property attributes documented below,
    the ``Figure`` initializer also accepts the following options, which can
    help simplify configuration:

    .. bokeh-options:: GMapFigureOptions
        :module: bokeh.plotting.figure

    u   GMapu   GMapPlotc   
      K` sÈ  d | k r' d | k r' t  d ƒ ‚ n  d | k rN d | k rN t  d ƒ ‚ n  d | k rp | j d ƒ | d <n  d | k r’ | j d ƒ | d <n  t | ƒ } | j d d  ƒ } t | t ƒ rÕ t d | ƒ | d <n  t t	 |  ƒ j
 d	 t ƒ  d
 t ƒ  |  t d d ƒ } t d d ƒ } |  j t d | d | ƒ d ƒ t d d ƒ } t d d ƒ } |  j t d | d | ƒ d ƒ t |  | j ƒ \ } }	 |  j | Œ  t |  j |	 | j | j | j | j ƒ d  S(   Nu
   plot_widthu   widthuJ   Figure called with both 'plot_width' and 'width' supplied, supply only oneu   plot_heightu   heightuL   Figure called with both 'plot_height' and 'height' supplied, supply only oneu   titlet   textt   x_ranget   y_ranget	   dimensionu   lont	   formattert   tickeru   belowu   latu   left(   t
   ValueErrort   popt   GMapFigureOptionst   gett   Nonet
   isinstanceR   R   t   superR   t   __init__R   R   R   t
   add_layoutR   R   t   toolst	   add_toolsR   t   toolbart   active_dragt   active_inspectt   active_scrollt
   active_tap(
   t   selft   kwt   optst   titlet   xft   xtt   yft   ytt	   tool_objst   tool_map(    (    s2   lib/python2.7/site-packages/bokeh/plotting/gmap.pyR-   K   s,    ((S   t   __name__t
   __module__t   __doc__t   __subtype__t   __view_model__R-   R   R   t   AnnularWedget   annular_wedget   Annulust   annulust   Arct   arcR   t   Asteriskt   asteriskt   Beziert   beziert   Circlet   circlet   CircleCrosst   circle_crosst   CircleXt   circle_xt   Crosst   crosst   Dasht   dasht   Diamondt   diamondt   DiamondCrosst   diamond_crosst   HBart   hbart   Ellipset   ellipset   Imaget   imaget	   ImageRGBAt
   image_rgbat   ImageURLt	   image_urlt   InvertedTrianglet   inverted_trianglet   Linet   linet	   MultiLinet
   multi_linet   MultiPolygonst   multi_polygonst   Ovalt   ovalt   Patcht   patcht   Patchest   patchest   Quadt   quadt	   Quadratict	   quadratict   Rayt   rayt   Rectt   rectt   Segmentt   segmentt   Squaret   squaret   SquareCrosst   square_crosst   SquareXt   square_xt   TextR    t   Trianglet   trianglet   VBart   vbart   Wedget   wedget   Xt   x(    (    (    s2   lib/python2.7/site-packages/bokeh/plotting/gmap.pyR   2   sR   	c         K` s   t  d |  d | |  S(   u   Create a new :class:`~bokeh.plotting.gmap.GMap` for plotting.

    Args:
        google_api_key (str):
            Google requires an API key be supplied for maps to function. See:

            https://developers.google.com/maps/documentation/javascript/get-api-key

        map_options: (GMapOptions)
            Configuration specific to a Google Map

    In addition to the standard :class:`~bokeh.plotting.gmap.GMap` keyword
    arguments (e.g. ``plot_width`` or ``sizing_mode``), the following
    additional options can be passed as well:

    .. bokeh-options:: GMapFigureOptions
        :module: bokeh.plotting.gmap

    Returns:
       GMap

    t   api_keyt   map_options(   R   (   t   google_api_keyR   t   kwargs(    (    s2   lib/python2.7/site-packages/bokeh/plotting/gmap.pyt   gmap´   s    R(   c        	   B` sg  e  Z e e e e e e e ƒ ƒ ƒ d  e d d ƒZ e e	 e
 d  d d d ƒZ e e	 e
 d  d d d ƒZ e e d  d d d ƒZ e e d  d d d	 ƒZ e d  d
 d d ƒ Z e d  d
 d d ƒ Z e e	 e e e ƒ d  d d d ƒZ e e	 e e e ƒ e e e ƒ ƒ d  d d d ƒZ e e	 e e e ƒ d  d d d ƒZ e e	 e e e ƒ d  d d d ƒZ RS(   t   defaultt   helpu+   
    Tools the plot should start with.
    u   autouD   
    Number of minor ticks between adjacent x-axis major ticks.
    uD   
    Number of minor ticks between adjacent y-axis major ticks.
    u   belowu-   
    Where the x-axis should be located.
    u   leftu-   
    Where the y-axis should be located.
    u    u!   
    A label for the x-axis.
    u!   
    A label for the y-axis.
    u5   
    Which drag tool should initially be active.
    u7   
    Which scroll tool should initially be active.
    u4   
    Which tap tool should initially be active.
    (   R@   RA   R   R   R   R   R   t   DEFAULT_TOOLSR/   R   R
   t   x_minor_tickst   y_minor_ticksR	   R   t   x_axis_locationR   t   y_axis_locationt   x_axis_labelt   y_axis_labelR   R2   R   R3   R   R4   R   R5   (    (    (    s2   lib/python2.7/site-packages/bokeh/plotting/gmap.pyR(   Ò   s,   '								*		(   u   GMapu   GMapFigureOptionsu   gmap(0   t
   __future__R    R   R   R   t   loggingt	   getLoggerR@   t   logt   sixR   t
   core.enumsR   R   t   core.propertiesR   R   R	   R
   R   R   R   t   modelsR   R   R   R   R   R   R   R   R   t   models.toolsR   R   R   R   t   util.optionsR   t   helpersR   R   R   R•   t   __all__R   R’   R(   (    (    (    s2   lib/python2.7/site-packages/bokeh/plotting/gmap.pyt   <module>   s"   "	44"  ‚	