bokeh.models.arrow_heads

Models for various kinds of arrow heads that can be added to Arrow annotations

class ArrowHead(**kwargs)[source]

Bases: bokeh.models.annotations.Annotation

Base class for arrow heads.

JSON Prototype
{
  "id": "74165e32-ee85-45bf-b55d-3c472b665cce",
  "js_callbacks": {},
  "level": "annotation",
  "name": null,
  "plot": null,
  "tags": [],
  "visible": true
}
class NormalHead(**kwargs)[source]

Bases: bokeh.models.arrow_heads.ArrowHead

Render a closed-body arrow head.

fill_alpha

property type: NumberSpec

The fill alpha values for the arrow head interior.

fill_color

property type: ColorSpec

The fill color values for the arrow head interior.

line_alpha

property type: NumberSpec

The line alpha values for the arrow head outline.

line_cap

property type: Enum ( LineCap )

The line cap values for the arrow head outline.

line_color

property type: ColorSpec

The line color values for the arrow head outline.

line_dash

property type: DashPattern

The line dash values for the arrow head outline.

line_dash_offset

property type: Int

The line dash offset values for the arrow head outline.

line_join

property type: Enum ( LineJoin )

The line join values for the arrow head outline.

line_width

property type: NumberSpec

The line width values for the arrow head outline.

size

property type: Float

The size, in pixels, of the arrow head.

JSON Prototype
{
  "fill_alpha": {
    "value": 1.0
  },
  "fill_color": {
    "value": "black"
  },
  "id": "e132c1d6-8487-4426-ab74-cc8387cf6c77",
  "js_callbacks": {},
  "level": "annotation",
  "line_alpha": {
    "value": 1.0
  },
  "line_cap": "butt",
  "line_color": {
    "value": "black"
  },
  "line_dash": [],
  "line_dash_offset": 0,
  "line_join": "miter",
  "line_width": {
    "value": 1
  },
  "name": null,
  "plot": null,
  "size": 25,
  "tags": [],
  "visible": true
}
class OpenHead(**kwargs)[source]

Bases: bokeh.models.arrow_heads.ArrowHead

Render an open-body arrow head.

line_alpha

property type: NumberSpec

The line alpha values for the arrow head outline.

line_cap

property type: Enum ( LineCap )

The line cap values for the arrow head outline.

line_color

property type: ColorSpec

The line color values for the arrow head outline.

line_dash

property type: DashPattern

The line dash values for the arrow head outline.

line_dash_offset

property type: Int

The line dash offset values for the arrow head outline.

line_join

property type: Enum ( LineJoin )

The line join values for the arrow head outline.

line_width

property type: NumberSpec

The line width values for the arrow head outline.

size

property type: Float

The size, in pixels, of the arrow head.

JSON Prototype
{
  "id": "0776f288-fb06-4541-b571-739774357902",
  "js_callbacks": {},
  "level": "annotation",
  "line_alpha": {
    "value": 1.0
  },
  "line_cap": "butt",
  "line_color": {
    "value": "black"
  },
  "line_dash": [],
  "line_dash_offset": 0,
  "line_join": "miter",
  "line_width": {
    "value": 1
  },
  "name": null,
  "plot": null,
  "size": 25,
  "tags": [],
  "visible": true
}
class VeeHead(**kwargs)[source]

Bases: bokeh.models.arrow_heads.ArrowHead

Render an vee-style arrow head.

fill_alpha

property type: NumberSpec

The fill alpha values for the arrow head interior.

fill_color

property type: ColorSpec

The fill color values for the arrow head interior.

line_alpha

property type: NumberSpec

The line alpha values for the arrow head outline.

line_cap

property type: Enum ( LineCap )

The line cap values for the arrow head outline.

line_color

property type: ColorSpec

The line color values for the arrow head outline.

line_dash

property type: DashPattern

The line dash values for the arrow head outline.

line_dash_offset

property type: Int

The line dash offset values for the arrow head outline.

line_join

property type: Enum ( LineJoin )

The line join values for the arrow head outline.

line_width

property type: NumberSpec

The line width values for the arrow head outline.

size

property type: Float

The size, in pixels, of the arrow head.

JSON Prototype
{
  "fill_alpha": {
    "value": 1.0
  },
  "fill_color": {
    "value": "black"
  },
  "id": "26cc90ce-fb63-461c-9016-9e195f6a4965",
  "js_callbacks": {},
  "level": "annotation",
  "line_alpha": {
    "value": 1.0
  },
  "line_cap": "butt",
  "line_color": {
    "value": "black"
  },
  "line_dash": [],
  "line_dash_offset": 0,
  "line_join": "miter",
  "line_width": {
    "value": 1
  },
  "name": null,
  "plot": null,
  "size": 25,
  "tags": [],
  "visible": true
}