bokeh.models.renderers¶
Models (mostly base classes) for the various kinds of renderer types that Bokeh supports.
-
class
DataRenderer
(**kwargs)[source]¶ Bases:
bokeh.models.renderers.Renderer
An abstract base class for data renderer types (e.g.
GlyphRenderer
,TileRenderer
,GraphRenderer
).Note
This is an abstract base class used to help organize the hierarchy of Bokeh model types. It is not useful to instantiate on its own.
-
class
GlyphRenderer
(**kw)[source]¶ Bases:
bokeh.models.renderers.DataRenderer
-
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.
-
hover_glyph
¶ property type:
Instance
(Glyph
)An optional glyph used for inspected points, e.g., those that are being hovered over by a HoverTool.
-
nonselection_glyph
¶ property type:
Either
(Auto
,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.)
If set to “auto” then a glyph with a low alpha value (0.1) will be used for non-selected points.
-
selection_glyph
¶ property type:
Either
(Auto
,Instance
(Glyph
) )An optional glyph used for selected points.
If set to “auto” then the standard glyph will be used for selected points.
-
view
¶ property type:
Instance
(CDSView
)A view into the data source to use when rendering glyphs. A default view of the entire data source is created when a view is not passed in during initialization.
-
-
class
GraphRenderer
(**kwargs)[source]¶ Bases:
bokeh.models.renderers.DataRenderer
-
edge_renderer
¶ property type:
Instance
(GlyphRenderer
)Instance of a GlyphRenderer containing an MultiLine Glyph that will be rendered as the graph edges.
-
inspection_policy
¶ property type:
Instance
(GraphHitTestPolicy
)An instance of a GraphHitTestPolicy that provides the logic for inspection of graph components.
-
layout_provider
¶ property type:
Instance
(LayoutProvider
)An instance of a LayoutProvider that supplies the layout of the network graph in cartesian space.
-
node_renderer
¶ property type:
Instance
(GlyphRenderer
)Instance of a GlyphRenderer containing an XYGlyph that will be rendered as the graph nodes.
-
selection_policy
¶ property type:
Instance
(GraphHitTestPolicy
)An instance of a GraphHitTestPolicy that provides the logic for selection of graph components.
-
-
class
GuideRenderer
(**kwargs)[source]¶ Bases:
bokeh.models.renderers.Renderer
A base class for all guide renderer types.
GuideRenderer
is not generally useful to instantiate on its own.Note
This is an abstract base class used to help organize the hierarchy of Bokeh model types. It is not useful to instantiate on its own.
-
class
Renderer
(**kwargs)[source]¶ Bases:
bokeh.model.Model
An abstract base class for renderer types.
Note
This is an abstract base class used to help organize the hierarchy of Bokeh model types. It is not useful to instantiate on its own.
-
level
¶ property type:
Enum
(RenderLevel
)Specifies the level in which to paint this renderer.
-
-
class
TileRenderer
(**kwargs)[source]¶ Bases:
bokeh.models.renderers.DataRenderer
-
render_parents
¶ property type:
Bool
Flag enable/disable drawing of parent tiles while waiting for new tiles to arrive. Default value is True.
-
tile_source
¶ property type:
Instance
(TileSource
)Local data source to use when rendering glyphs on the plot.
-