This section is intended to give a quick overview of what properties all the various Bokeh glyphs support. For complete details, consult the full Reference Guide.
annular_wedge¶The annular_wedge glyph displays annular wedges centered at the given coordinates with the
corresponding start_radius, end_radius, start_angle and end_angle.
Note
the direction field may be used to indicate which direction the drawing should occur between start_radius and end_radius.
x, y - center point coordinatesstart_radiusend_radiusstart_angleend_angledirection'clock', 'anticlock''anticlock'annulus¶The annulus glyph displays annular rings centered at the given coordinates with the
corresponding start_radius and end_radius.
x, y - center point coordinatesstart_radiusend_radiusarc¶The annulus glyph displays circular line arcs centered at the given coordinates with the
corresponding radius, start_angle and end_angle.
Note
the direction field may be used to indicate which direction the drawing should occur between start_radius and end_radius.
x, y - center point coordinatesradiusstart_angleend_angledirection'clock' or 'anticlock']'anticlock'asterisk¶The asterisk glyph is a marker that displays asterisks at the given coordinates.
x, y - center point coordinatessizebezier¶The bezier glyph displays Bezier curves with the given starting, ending, and control points.
x0, y0 - starting point coordinatesx1, y1 - ending point coordinatescx0, cy0 - first control point coordinatescx1, cy1 - second control point coordinatescircle¶The circle glyph has two forms, a marker form that takes a size
field or a non-marker form that takes a radius field.
|
|
circle_cross¶The circle_cross glyph is a marker that displays circles together with a crossbar (+) at the given coordinates.
x, y - center point coordinatessizecircle_x¶The circle_x glyph is a marker that displays circles together with an X at the given coordinates.
x, y - center point coordinatessizecross¶The cross glyph is a marker that displays crossbar symbols (+) at the given coordinates.
x, y - center point coordinatessizediamond¶The diamond glyph is a marker that displays diamonds at the given coordinates.
x, y - center point coordinatessizediamond_cross¶The diamond_cross glyph is a marker that displays diamonds together with a crossbar (+) at the given coordinates.
x, y - center point coordinatessizeimage¶The image glyph takes each image as a two-dimensional array of data. A palette (string
name of a built-in palette, currently) must also be supplied to use for color-mapping the scalar
image.
Note
the dilate field may be used to indicate whether computed pixel distances (e.g. for dw, dh) should always be rounded up when rendering this glyph.
Note
The image glyph is vectorized like other glyphs, i.e. it may be used to display several images at once.
image - 2D array of datax, y - lower leftdw - width on screendh- height on screenpalettedilateimage_rgba¶The image_rgba glyph takes each image as a two-dimensional array of RGBA values (encoded
as 32-bit integers).
Note
the dilate field may be used to indicate whether computed pixel distances (e.g. for dw, dh) should always be rounded up when rendering this glyph.
Note
The image_rgba glyph is vectorized like other glyphs, i.e. it may be used to display several images at once.
image - 2D array of RGBAx, y - lower leftdw - width on screendh- height on screendilateimage_url¶The image_url glyph accepts the URLs of an images to display. The images are centered on the given coordinates and rotated by the given angles.
x, y - center point coordinatesurlangleinverted_triangle¶The inverted_triangle glyph is a marker that displays upside-down triangles at the given coordinates.
x, y - center point coordinatessizeline¶The line glyph displays a single line that connects several points given by the arrays
of coordinates x and y.
x, y - line coordinatesmulti_line¶The multi_line glyph displays several lines, each with points given by the arrays of
coordinates that are the elements of xs and ys. This glyph is especially useful for
implementing parallel coordinates plots, or plotting several aligned series simultaneously.
Note
For this glyph, the vector data is not simply an array of scalars, it is really an “array of arrays”.
xs, ys - lists of line coordinatesoval¶The oval glyph displays ovals centered on the given coordinates with the given dimensions and angle.
x, y - center point coordinateswidthheightanglepatch¶The patch glyph displays a single polygonal patch that connects several points given by the arrays
of coordinates x and y.
x, y - coordinatespatches¶The patches glyph displays several patches, each with points given by the arrays of
coordinates that are the elements of xs and ys. This glyph is especially useful for
implementing stacked area charts and cartograms.
Note
For this glyph, the vector data is not simply an array of scalars, it is really an “array of arrays”.
xs, ys - lists of coordinatesquad¶The quad glyph displays axis-aligned rectangles with the given dimensions.
leftrighttopbottomquadratic¶The quadratic glyph displays quadratic curves with the given starting, ending, and control points.
x0, y0 - starting point coordinatesx1, y1 - ending point coordinatescx, cy - control point coordinatesray¶The ray glyph displays line segments starting at the given coordinate and extending the given
length at the given angle.
x0, y0 - starting point coordinateslength - screen unitsanglerect¶The rect glyph displays rectangles centered on the given coordinates with the given dimensions and angle.
Note
the dilate field may be used to indicate whether computed pixel distances should always be rounded up when rendering this glyph.
x, y - center point coordinateswidthheightangledilatesegment¶The segment glyph displays line segments with the given starting and ending coordinates.
x0, y0 - starting point coordinatesx1, y1 - ending point coordinatessquare¶The square glyph is a marker that displays squares at the given coordinates.
x, y - center point coordinatessizesquare_cross¶The square_cross glyph is a marker that displays squares together with a crossbar (+) at the given coordinates.
x, y - center point coordinatessizesquare_x¶The square_x glyph is a marker that displays squares together with an X at the given coordinates.
x, y - center point coordinatessizetext¶The text glyph displays text at the given coordinates rotated by the given angle. The location of the coordinates relative to the text is indicated by the text properties.
x, y - text coordinates (positioning determined by text properties)textangletriangle¶The triangle glyph is a marker that displays triangles at the given coordinates.
x, y - center point coordinatessizewedge¶The annular_wedge glyph displays circular wedges centered at the given coordinates with the
corresponding radius, start_angle and end_angle.
Note
the direction field may be used to indicate which direction the drawing should occur between start_radius and end_radius.
x, y - center point coordinatesradiusstart_angleend_angledirection'clock' or 'anticlock']'anticlock'x¶The x glyph is a marker that displays X symbols at the given coordinates.
x, y - center point coordinatessize