σ
mάJ]c           @` sσ  d  Z  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 d d l m Z m Z m Z m Z m Z m Z 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# m$ Z$ m% Z% d	 d l& m' Z' d	 d l( m) Z) m* Z* m+ Z+ m, Z, m- Z- m. Z. m/ Z/ d" Z0 e d e' f d     Y Z1 e d e1 f d     Y Z2 d e2 f d     YZ3 d e2 f d     YZ4 d e1 f d     YZ5 d e3 f d     YZ6 d  e3 f d!     YZ7 d S(#   uM    Guide renderers for various kinds of axes that can be added to
Bokeh plots

i    (   t   absolute_importt   divisiont   print_functiont   unicode_literalsNi   (   t   TickLabelOrientation(   t   abstract(   t   Autot   Datetimet   Dictt   Eithert   Enumt   Floatt   Includet   Instancet   Intt   Overridet   Seqt   Stringt   Tuple(   t	   LinePropst	   TextPropsi   (   t   BasicTickFormattert   CategoricalTickFormattert   DatetimeTickFormattert   LogTickFormattert   TickFormattert   MercatorTickFormatter(   t   GuideRenderer(   t   Tickert   BasicTickert	   LogTickert   CategoricalTickert   DatetimeTickert   FixedTickert   MercatorTickeru   Axisu   CategoricalAxisu   ContinuousAxisu   DatetimeAxisu
   LinearAxisu   LogAxisu   MercatorAxist   Axisc        	   B` sS  e  Z d  Z e e e e e  e e e  d d Z e	 d d d Z
 e	 d d d Z e e d d j e e  d    Z e e d d Z e	 d	 d
 d d  Z e d	 d d d  Z e e d d Z e d	 i d d 6 Z e d	 d  Z e d	 d d d  Z e e d d  e d d Z e e e e	  e	 d	 i  d d Z  e e d d Z! e d	 d  Z" e d	 d  Z# e d	 i d d 6 Z$ e e% d d Z& e e% d d Z' e d	 d d d  Z( e d	 d d d   Z) e e% d d! Z* e d	 d" d d#  Z+ e d	 d$ d d   Z, e e e	 e e	 e	  e e	 e	 e	  d	 d& d d% Z. RS('   uF    A base class that defines common properties for all axis types.

    t   helpup   
    Bounds for the rendered axis. If unset, the axis will span the
    entire plot in the given dimension.
    u   defaultu   
    A particular (named) x-range to use for computing screen
    locations when rendering an axis on the plot. If unset, use the
    default x-range.
    u   
    A particular (named) y-range to use for computing screen
    locations when rendering an axis on the plot. If unset, use the
    default y-range.
    uX  
    A Ticker to use for computing locations of axis components.

    The property may also be passed a sequence of floating point numbers as
    a shorthand for creating and configuring a ``FixedTicker``, e.g. the
    following code

    .. code-block:: python

        from bokeh.plotting import figure

        p = figure()
        p.xaxis.ticker = [10, 20, 37.4]

    is equivalent to:

    .. code-block:: python

        from bokeh.plotting import figure
        from bokeh.models.tickers import FixedTicker

        p = figure()
        p.xaxis.ticker = FixedTicker(ticks=[10, 20, 37.4])

    c         C` s   t  d |   S(   Nt   ticks(   R!   (   R%   (    (    s0   lib/python2.7/site-packages/bokeh/models/axes.pyt   <lambda>g   t    uW   
    A ``TickFormatter`` to use for formatting the visual appearance
    of ticks.
    t   defaultu    uΣ   
    A text label for the axis, displayed parallel to the axis rule.

    .. note::
        LaTeX notation is not currently supported; please see
        :bokeh-issue:`647` to track progress or contribute.

    i   u`   
    The distance in pixels that the axis labels should be offset
    from the tick labels.
    u#   
    The %s of the axis label.
    u   10ptu   valueu   italicuk   
    The distance in pixels that the major tick labels should be
    offset from the associated ticks.
    u
   horizontalu   verticalu   
    What direction the major label text should be oriented. If a
    number is supplied, the angle of the text is measured from horizontal.
    um   
    Provide explicit tick label values for specific tick locations that
    override normal formatting.
    u*   
    The %s of the major tick labels.
    u   centeru
   alphabeticu   8ptu"   
    The %s of the axis line.
    u$   
    The %s of the major ticks.
    i   u\   
    The distance in pixels that major ticks should extend into the
    main plot area.
    i   u^   
    The distance in pixels that major ticks should extend out of the
    main plot area.
    u$   
    The %s of the minor ticks.
    i    u\   
    The distance in pixels that minor ticks should extend into the
    main plot area.
    i   u4  
    Set to specify a fixed coordinate location to draw the axis. The direction
    of ticks and major labels is determined by the side panel that the axis
    belongs to.

    .. note::
        Axes labels are suppressed when axes are positioned at fixed locations
        inside the central plot area.
    N(/   t   __name__t
   __module__t   __doc__R	   R   R   R   R   t   boundsR   t   x_range_namet   y_range_nameR   R   t   acceptsR   t   tickerR   t	   formattert
   axis_labelR   t   axis_label_standoffR   R   t   axis_label_propsR   t   axis_label_text_font_sizet   axis_label_text_font_stylet   major_label_standoffR
   t   major_label_orientationR   t   major_label_overridest   major_label_propst   major_label_text_alignt   major_label_text_baselinet   major_label_text_font_sizeR   t
   axis_propst   major_tick_propst   major_tick_int   major_tick_outt   minor_tick_propst   minor_tick_int   minor_tick_outt   Nonet   fixed_location(    (    (    s0   lib/python2.7/site-packages/bokeh/models/axes.pyR#   8   s\   !																											-t   ContinuousAxisc           B` s   e  Z d  Z RS(   u@    A base class for all numeric, non-categorical axes types.

    (   R)   R*   R+   (    (    (    s0   lib/python2.7/site-packages/bokeh/models/axes.pyRG   Η   s   t
   LinearAxisc           B` s2   e  Z d  Z e d d    Z e d d    Z RS(   u    An axis that picks nice numbers for tick locations on a
    linear scale. Configured with a ``BasicTickFormatter`` by default.

    R(   c           C` s   t    S(   N(   R   (    (    (    s0   lib/python2.7/site-packages/bokeh/models/axes.pyR&   Σ   R'   c           C` s   t    S(   N(   R   (    (    (    s0   lib/python2.7/site-packages/bokeh/models/axes.pyR&   Υ   R'   (   R)   R*   R+   R   R0   R1   (    (    (    s0   lib/python2.7/site-packages/bokeh/models/axes.pyRH   Ξ   s   t   LogAxisc           B` s2   e  Z d  Z e d d    Z e d d    Z RS(   u    An axis that picks nice numbers for tick locations on a
    log scale. Configured with a ``LogTickFormatter`` by default.

    R(   c           C` s   t    S(   N(   R   (    (    (    s0   lib/python2.7/site-packages/bokeh/models/axes.pyR&   ά   R'   c           C` s   t    S(   N(   R   (    (    (    s0   lib/python2.7/site-packages/bokeh/models/axes.pyR&   ή   R'   (   R)   R*   R+   R   R0   R1   (    (    (    s0   lib/python2.7/site-packages/bokeh/models/axes.pyRI   Χ   s   t   CategoricalAxisc           B` s!  e  Z d  Z e d d    Z e d d    Z e e d d Z e d d  Z	 e d d  Z
 e e d d Z e e e  e d d	 d d
 Z e d i d d 6 Z e d d  Z e d d  Z e e d d Z e e e  e d d	 d d Z e d i d d 6 Z e d d  Z RS(   uν    An axis that displays ticks and labels for categorical ranges.

    The ``CategoricalAxis`` can handle factor ranges with up to two levels of
    nesting, including drawing a separator line between top-level groups of
    factors.

    R(   c           C` s   t    S(   N(   R   (    (    (    s0   lib/python2.7/site-packages/bokeh/models/axes.pyR&   θ   R'   c           C` s   t    S(   N(   R   (    (    (    s0   lib/python2.7/site-packages/bokeh/models/axes.pyR&   κ   R'   R$   u   
    The %s of the separator line between top-level categorical groups.

    This property always applies to factors in the outermost level of nesting.
    u	   lightgreyi   uθ   
    The %s of the group categorical labels.

    This property always applies to factors in the outermost level of nesting.
    If the list of categorical factors is flat (i.e. no nesting) then this
    property has no effect.
    u   paralleluI  
    What direction the group label text should be oriented.

    If a number is supplied, the angle of the text is measured from horizontal.

    This property always applies to factors in the outermost level of nesting.
    If the list of categorical factors is flat (i.e. no nesting) then this
    property has no effect.
    u   8ptu   valueu   boldu   greyuω   
    The %s of the subgroup categorical labels.

    This property always applies to factors in the middle level of nesting.
    If the list of categorical factors is has only zero or one levels of nesting,
    then this property has no effect.
    uZ  
    What direction the subgroup label text should be oriented.

    If a number is supplied, the angle of the text is measured from horizontal.

    This property always applies to factors in the middle level of nesting.
    If the list of categorical factors is has only zero or one levels of nesting,
    then this property has no effect.
    (   R)   R*   R+   R   R0   R1   R   R   t   separator_propst   separator_line_colort   separator_line_widthR   t   group_propsR	   R
   R   R   t   group_label_orientationt   group_text_font_sizet   group_text_font_stylet   group_text_colort   subgroup_propst   subgroup_label_orientationt   subgroup_text_font_sizet   subgroup_text_font_style(    (    (    s0   lib/python2.7/site-packages/bokeh/models/axes.pyRJ   ΰ   s(   								t   DatetimeAxisc           B` s2   e  Z d  Z e d d    Z e d d    Z RS(   u    A ``LinearAxis`` that picks nice numbers for tick locations on
    a datetime scale. Configured with a ``DatetimeTickFormatter`` by
    default.

    R(   c           C` s   t    S(   N(   R    (    (    (    s0   lib/python2.7/site-packages/bokeh/models/axes.pyR&   '  R'   c           C` s   t    S(   N(   R   (    (    (    s0   lib/python2.7/site-packages/bokeh/models/axes.pyR&   )  R'   (   R)   R*   R+   R   R0   R1   (    (    (    s0   lib/python2.7/site-packages/bokeh/models/axes.pyRW      s   t   MercatorAxisc           B` s>   e  Z d  Z d d  Z e d d    Z e d d    Z RS(   u*   An axis that picks nice numbers for tick locations on a
    Mercator scale. Configured with a ``MercatorTickFormatter`` by default.

    Args:
        dimension ('lat' or 'lon', optional) :
            Whether this axis will display latitude or longitude values.
            (default: 'lat')

    u   latc         K` s\   t  t |   j |   t |  j t  r7 | |  j _ n  t |  j t  rX | |  j _ n  d  S(   N(	   t   superRX   t   __init__t
   isinstanceR0   R"   t	   dimensionR1   R   (   t   selfR\   t   kw(    (    s0   lib/python2.7/site-packages/bokeh/models/axes.pyRZ   5  s
    R(   c           C` s   t    S(   N(   R"   (    (    (    s0   lib/python2.7/site-packages/bokeh/models/axes.pyR&   ?  R'   c           C` s   t    S(   N(   R   (    (    (    s0   lib/python2.7/site-packages/bokeh/models/axes.pyR&   A  R'   (   R)   R*   R+   RZ   R   R0   R1   (    (    (    s0   lib/python2.7/site-packages/bokeh/models/axes.pyRX   +  s   	
(   u   Axisu   CategoricalAxisu   ContinuousAxisu   DatetimeAxisu
   LinearAxisu   LogAxisu   MercatorAxis(8   R+   t
   __future__R    R   R   R   t   loggingt	   getLoggerR)   t   logt
   core.enumsR   t   core.has_propsR   t   core.propertiesR   R   R   R	   R
   R   R   R   R   R   R   R   R   t   core.property_mixinsR   R   t
   formattersR   R   R   R   R   R   t	   renderersR   t   tickersR   R   R   R   R    R!   R"   t   __all__R#   RG   RH   RI   RJ   RW   RX   (    (    (    s0   lib/python2.7/site-packages/bokeh/models/axes.pyt   <module>
   s4   "X.4      		@