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:
Asterisk
Circle
CircleCross
CircleX
Cross
Diamond
DiamondCross
InvertedTriangle
Square
SquareCross
SquareX
Triangle
X
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.
-
fill_alpha
¶ property type:
NumberSpec
The fill alpha values for the markers.
-
line_alpha
¶ property type:
NumberSpec
The line alpha values for the markers.
-
line_dash
¶ property type:
DashPattern
The line dash 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
-
- 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