bokeh.models.renderers

Models (mostly base classes) for the various kinds of renderer types that Bokeh supports.

class DataRenderer(**kwargs)

Bases: bokeh.models.renderers.Renderer

An abstract base class for data renderer types (e.g. GlyphRenderer, TileRenderer).

JSON Prototype
{
  "id": "a6990acb-66ff-4122-85ba-8bdac0b02f69",
  "name": null,
  "tags": []
}
class DynamicImageRenderer(**kwargs)

Bases: bokeh.models.renderers.DataRenderer

alpha

property type: alpha:Float

tile opacity 0.0 - 1.0

image_source

property type: image_source:Instance(ImageSource)

Image source to use when rendering on the plot.

level

property type: level:Enum(‘image’, ‘underlay’, ‘glyph’, ‘annotation’, ‘overlay’, ‘tool’)

Specifies the level in which to render the glyph.

render_parents

property type: render_parents:Bool

Flag enable/disable drawing of parent tiles while waiting for new tiles to arrive. Default value is True.

JSON Prototype
{
  "alpha": 1.0,
  "id": "e7eef762-4eae-4e13-a0b6-8c4bfbab96cd",
  "image_source": null,
  "level": "underlay",
  "name": null,
  "render_parents": true,
  "tags": []
}
class GlyphRenderer(**kwargs)

Bases: bokeh.models.renderers.DataRenderer

data_source

property type: data_source:Instance(DataSource)

Local data source to use when rendering glyphs on the plot.

glyph

property type: glyph:Instance(Glyph)

The glyph to render, in conjunction with the supplied data source and ranges.

hover_glyph

property type: hover_glyph:Instance(Glyph)

An optional glyph used for inspected points, e.g., those that are being hovered over by a HoverTool.

level

property type: level:Enum(‘image’, ‘underlay’, ‘glyph’, ‘annotation’, ‘overlay’, ‘tool’)

Specifies the level in which to render the glyph.

nonselection_glyph

property type: nonselection_glyph:Instance(Glyph)

An optional glyph used for explicitly non-selected points (i.e., non-selected when there are other points that are selected, but not when no points at all are selected.)

selection_glyph

property type: selection_glyph:Instance(Glyph)

An optional glyph used for selected points.

x_range_name

property type: x_range_name:String

A particular (named) x-range to use for computing screen locations when rendering glyphs on the plot. If unset, use the default x-range.

y_range_name

property type: y_range_name:String

A particular (named) y-range to use for computing screen locations when rendering glyphs on the plot. If unset, use the default -range.

JSON Prototype
{
  "data_source": null,
  "glyph": null,
  "hover_glyph": null,
  "id": "6328c18c-cae3-4003-ba0f-d725bc13f000",
  "level": "glyph",
  "name": null,
  "nonselection_glyph": null,
  "selection_glyph": null,
  "tags": [],
  "x_range_name": "default",
  "y_range_name": "default"
}
class GuideRenderer(**kwargs)

Bases: bokeh.models.renderers.Renderer

A base class for all guide renderer types. GuideRenderer is not generally useful to instantiate on its own.

level

property type: level:Enum(‘image’, ‘underlay’, ‘glyph’, ‘annotation’, ‘overlay’, ‘tool’)

Specifies the level in which to render the guide.

plot

property type: plot:Instance(Plot)

The plot to which this guide renderer is attached.

JSON Prototype
{
  "id": "1c8bd18a-472c-48ed-8e55-1373cef55a4f",
  "level": "overlay",
  "name": null,
  "plot": null,
  "tags": []
}
class Renderer(**kwargs)

Bases: bokeh.model.Model

An abstract base class for renderer types.

JSON Prototype
{
  "id": "0d0d2dd6-04c6-47d6-b7e2-a483ebf10dd0",
  "name": null,
  "tags": []
}
class TileRenderer(**kwargs)

Bases: bokeh.models.renderers.DataRenderer

alpha

property type: alpha:Float

tile opacity 0.0 - 1.0

level

property type: level:Enum(‘image’, ‘underlay’, ‘glyph’, ‘annotation’, ‘overlay’, ‘tool’)

Specifies the level in which to render the tiles.

render_parents

property type: render_parents:Bool

Flag enable/disable drawing of parent tiles while waiting for new tiles to arrive. Default value is True.

tile_source

property type: tile_source:Instance(TileSource)

Local data source to use when rendering glyphs on the plot.

x_range_name

property type: x_range_name:String

A particular (named) x-range to use for computing screen locations when rendering glyphs on the plot. If unset, use the default x-range.

y_range_name

property type: y_range_name:String

A particular (named) y-range to use for computing screen locations when rendering glyphs on the plot. If unset, use the default y-range.

JSON Prototype
{
  "alpha": 1.0,
  "id": "0f621f85-f279-483c-afd5-8a94ed71378e",
  "level": "underlay",
  "name": null,
  "render_parents": true,
  "tags": [],
  "tile_source": {
    "id": "1a79dce9-7417-4a3f-8d14-debe2fbcf265",
    "type": "WMTSTileSource"
  },
  "x_range_name": "default",
  "y_range_name": "default"
}