bokeh.models.markers

Display a variety of simple scatter marker shapes whose attributes can be associated with data columns from ColumnDataSources.

The full list of markers built into Bokeh is given below:

Markers are all subclasses of Glyph. Additionally, they all share the same common interface providing fill and line properties provided by their base class Marker. Note that a few glyphs, Cross and X, only draw lines. For these the fill property values are ignored. Also note that the Circle glyph has some additional properties such as radius that other markers do not.

class Marker(**kwargs)[source]

Base class for glyphs that are simple markers with line and fill properties, located at an (x, y) location with a specified size.

Note

For simplicity, all markers have both line and fill properties declared, however some markers (Asterisk, Cross, X) only draw lines. For these markers, the fill values are simply ignored.

angle

property type: AngleSpec

The angles to rotate the markers.

fill_alpha

property type: NumberSpec

The fill alpha values for the markers.

fill_color

property type: ColorSpec

The fill color values for the markers.

line_alpha

property type: NumberSpec

The line alpha values for the markers.

line_cap

property type: Enum ( LineCap )

The line cap values for the markers.

line_color

property type: ColorSpec

The line color values for the markers.

line_dash

property type: DashPattern

The line dash values for the markers.

line_dash_offset

property type: Int

The line dash offset values for the markers.

line_join

property type: Enum ( LineJoin )

The line join values for the markers.

line_width

property type: NumberSpec

The line width values for the markers.

size

property type: ScreenDistanceSpec

The size (diameter) values for the markers in screen space units.

x

property type: NumberSpec

The x-axis coordinates for the center of the markers.

y

property type: NumberSpec

The y-axis coordinates for the center of the markers.

get_class(view_model_name)

Given a __view_model__ name, returns the corresponding class object