Module Expr Str ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Str NameLoad NameLoad NameLoad NameLoad kwarg body Expr Str Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad Str Assign NameStore ListLoad Str Str Str Assign NameStore ListLoad ListLoad Str Str ListLoad Str Str Str Expr Str Assign NameStore Dict Str Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword Num keyword Str Assign NameStore Call NameLoad keyword Num keyword Str Assign NameStore Call NameLoad keyword Num keyword Str Assign NameStore Call NameLoad keyword Str keyword Str FunctionDef arguments args NameParam defaults body If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr ListLoad TupleLoad Str NameLoad For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If Call NameLoad NameLoad NameLoad body If CompareEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body If CompareNotIn Str Call AttributeLoad NameLoad attr keyword NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse If CompareNotIn Str Call AttributeLoad NameLoad attr keyword NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad keyword ListLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Assign NameStore BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad keyword Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad NameLoad attr NameLoad keyword BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore AttributeLoad NameLoad attr body Expr Yield NameLoad decorator_list decorator_list
N/A N/A This is the Bokeh charts interface. It gives you a high level API to build
complex plot is a simple way.

This is the HeatMap class which lets you build your HeatMap charts just passing
the arguments to the Chart class and calling the proper functions.
 __future__ absolute_import print_function division builder XYBuilder create_and_build stats Bins properties Dimension operations Aggregate attributes ColorAttr glyphs BinGlyph utils build_agg_tooltip core.properties Float String bokeh.palettes Blues6 HeatMap N/A N/A data x y values stat xgrid ygrid hover_tool hover_text N/A None None None count False False True None kw N/A N/A  Represent 3 dimensions in a HeatMap chart using x, y, and values.

    Uses the :class:`~bokeh.charts.builders.heatmap_builder.HeatMapBuilder`
    to render the geometry from values.

    A HeatMap is a 3 Dimensional chart that crosses two dimensions, then aggregates
    values  that correspond to the intersection of the horizontal and vertical
    dimensions. The value that falls at the intersection is then mapped to a
    color in a palette by default. All values that map to the positions on the chart are
    binned by the number of discrete colors in the palette.

    Args:
        data (:ref:`userguide_charts_data_types`): the data source for the chart
        x (str or list(str), optional): specifies variable(s) to use for x axis
        y (str or list(str), optional): specifies variable(s) to use for y axis
        values (str, optional): the values to use for producing the histogram using
            table-like input data
        stat (str, optional): the aggregation to use. Defaults to count. If provided
            `None`, then no aggregation will be attempted. This is useful for cases
            when the values have already been aggregated.
        hover_tool (bool, optional): whether to show the hover tool. Defaults to `True`
        hover_text (str, optional): a string to place beside the value in the hover
            tooltip. Defaults to `None`. When `None`, a hover_text will be derived from
            the aggregation and the values column.

    In addition to the parameters specific to this chart,
    :ref:`userguide_charts_defaults` are also accepted as keyword parameters.

    Returns:
        a new :class:`Chart <bokeh.charts.Chart>`

    Examples:

    .. bokeh-plot::
        :source-position: above

        from bokeh.charts import HeatMap, output_file, show

        # (dict, OrderedDict, lists, arrays and DataFrames are valid inputs)
        data = {'fruit': ['apples']*3 + ['bananas']*3 + ['pears']*3,
                'fruit_count': [4, 5, 8, 1, 2, 4, 6, 5, 4],
                'sample': [1, 2, 3]*3}

        hm = HeatMap(data, x='fruit', y='sample', values='fruit_count',
                     title='Fruits', stat=None)

        output_file('heatmap.html')
        show(hm)

     N/A N/A kw N/A x x N/A N/A kw N/A y y N/A N/A kw N/A values values N/A N/A kw N/A stat stat N/A chart N/A create_and_build HeatMapBuilder data xgrid xgrid ygrid ygrid kw N/A hover_tool N/A N/A tooltip N/A build_agg_tooltip hover_text hover_text aggregated_col values agg_text stat N/A N/A N/A chart add_tooltips N/A tooltip N/A chart N/A HeatMapBuilder N/A XYBuilder N/A N/A Assists in producing glyphs required to represent values by a glyph attribute.

    Primary use case is to display the 3rd dimension of a value by binning and
    aggregating as needed and assigning the results to color. This color is represented
    on a glyph that is positioned by the x and y dimensions.

     N/A values N/A Dimension values N/A dimensions N/A x y values N/A req_dimensions N/A N/A x y N/A x y values N/A 
    The heatmap uses color to bin the values and assign discrete colors. The
    values are sorted descending and assigned to the palette by default.
     N/A default_attributes N/A color N/A ColorAttr bin True palette Blues6 sort True ascending False N/A bin_width N/A Float default 1.0 help 
        A derived property that is used to size the glyph in width.
         N/A bin_height N/A Float default 1.0 help 
        A derived property that is used to size the glyph in height.
         N/A spacing_ratio N/A Float default 0.95 help 
        Multiplied by the bin height and width to shrink or grow the relative size
        of the glyphs. The closer to 0 this becomes, the amount of space between the
        glyphs will increase. When above 1.0, the glyphs will begin to overlap.
         N/A stat N/A String default sum help 
        The stat to be applied to the values that fall into each x and y intersection.
        When stat is set to `None`, then no aggregation will occur.
         setup N/A N/A self N/A N/A N/A N/A N/A len N/A self sort_legend 0 N/A N/A N/A self sort_legend N/A N/A color True N/A op N/A N/A self _data operations N/A N/A N/A isinstance op Bins N/A N/A N/A N/A op centers_column N/A N/A self x selection N/A N/A N/A bin_width N/A N/A self properties_with_values include_defaults False N/A N/A N/A self bin_width N/A op bin_width N/A N/A N/A bin_height N/A N/A self properties_with_values include_defaults False N/A N/A N/A self bin_height N/A op bin_width N/A process_data N/A N/A self N/A N/A N/A Perform aggregation and binning as requried. N/A N/A N/A self stat None N/A N/A agg N/A Aggregate dimensions N/A N/A N/A self x selection N/A N/A self y selection columns N/A N/A self values selection stat N/A self stat N/A N/A N/A self _data _data N/A N/A agg apply N/A N/A self _data _data N/A N/A N/A self values selection N/A agg agg_column N/A N/A N/A N/A N/A self attributes N/A color setup data N/A N/A self _data source columns N/A N/A self values selection N/A N/A N/A N/A N/A self attributes N/A color add_bin_labels N/A self _data N/A yield_renderers N/A N/A self N/A N/A N/A Generate a set fo bins for each group of data. N/A group N/A N/A N/A self _data groupby N/A self attributes N/A N/A binned_values N/A N/A N/A self values selection _values N/A comp_glyph N/A BinGlyph x N/A N/A group get_values N/A N/A self x selection y N/A N/A group get_values N/A N/A self y selection values N/A N/A group get_values binned_values width N/A N/A self bin_width N/A self spacing_ratio height N/A N/A self bin_height N/A self spacing_ratio line_color N/A group N/A color fill_color N/A group N/A color label N/A group label N/A N/A N/A self add_glyph group comp_glyph N/A renderer N/A comp_glyph renderers N/A N/A N/A renderer N/A N/A