bokeh.models.renderers

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

class GlyphRenderer(**kwargs)

Bases: bokeh.models.renderers.Renderer

data_source

property type: Instance(DataSource)

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

glyph

property type: Instance(Glyph)

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

level

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

Specifies the level in which to render the glyph.

nonselection_glyph

property type: 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: Instance(Glyph)

An optional glyph used for selected points.

units

property type: Enum(‘screen’, ‘data’)

x_range_name

property type: 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: String

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

[
  {
    "attributes": {
      "data_source": null,
      "doc": null,
      "glyph": null,
      "id": "d72d2e95-77d5-4cf9-a9dd-d43b745eaed5",
      "level": "glyph",
      "name": null,
      "nonselection_glyph": null,
      "selection_glyph": null,
      "tags": [],
      "units": "screen",
      "x_range_name": "default",
      "y_range_name": "default"
    },
    "id": "d72d2e95-77d5-4cf9-a9dd-d43b745eaed5",
    "type": "GlyphRenderer"
  }
]
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.

plot

property type: Instance(Plot)

The plot to which this guide renderer is attached.

[
  {
    "attributes": {
      "doc": null,
      "id": "901aa06d-7c04-4546-97b4-6e03449208ee",
      "name": null,
      "plot": null,
      "tags": []
    },
    "id": "901aa06d-7c04-4546-97b4-6e03449208ee",
    "type": "GuideRenderer"
  }
]
class Renderer(**kwargs)

Bases: bokeh.plot_object.PlotObject

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

[
  {
    "attributes": {
      "doc": null,
      "id": "b8a51bf5-a1f5-489e-bd21-52e72f80e543",
      "name": null,
      "tags": []
    },
    "id": "b8a51bf5-a1f5-489e-bd21-52e72f80e543",
    "type": "Renderer"
  }
]