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:
AsteriskCircleCircleCrossCircleXCrossDiamondDiamondCrossInvertedTriangleSquareSquareCrossSquareXTriangleX
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.
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.
-
fill_alpha¶ property type:
NumberSpecThe fill alpha values for the markers.
-
line_alpha¶ property type:
NumberSpecThe line alpha values for the markers.
-
line_dash¶ property type:
DashPatternThe line dash values for the markers.
-
line_width¶ property type:
NumberSpecThe line width values for the markers.
-
size¶ property type:
ScreenDistanceSpecThe size (diameter) values for the markers in screen space units.
-
x¶ property type:
NumberSpecThe x-axis coordinates for the center of the markers.
-
y¶ property type:
NumberSpecThe y-axis coordinates for the center of the markers.
-
- bokeh.models.markers.Asterisk
- bokeh.models.markers.Circle
- bokeh.models.markers.CircleCross
- bokeh.models.markers.CircleX
- bokeh.models.markers.Cross
- bokeh.models.markers.Diamond
- bokeh.models.markers.DiamondCross
- bokeh.models.markers.InvertedTriangle
- bokeh.models.markers.Square
- bokeh.models.markers.SquareCross
- bokeh.models.markers.SquareX
- bokeh.models.markers.Triangle
- bokeh.models.markers.X