bokeh.models.arrow_heads

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

class ArrowHead(**kwargs)

Bases: bokeh.models.annotations.Annotation

Base class for arrow heads.

JSON Prototype
{
  "id": "1f8ad902-2503-4d66-845d-67a561a0de76",
  "level": "annotation",
  "name": null,
  "plot": null,
  "tags": []
}
class NormalHead(**kwargs)

Bases: bokeh.models.arrow_heads.ArrowHead

Render a closed-body arrow head.

fill_alpha

property type: fill_alpha:NumberSpec(String, Dict(String, Either(String, Instance(Transform), Float)), Float)

The fill alpha values for the arrow head interior.

fill_color

property type: fill_color:ColorSpec(String, Dict(String, Either(String, Instance(Transform), Color)), Color)

The fill color values for the arrow head interior.

line_alpha

property type: line_alpha:NumberSpec(String, Dict(String, Either(String, Instance(Transform), Float)), Float)

The line alpha values for the arrow head outline.

line_cap

property type: line_cap:Enum(‘butt’, ‘round’, ‘square’)

The line cap values for the arrow head outline.

line_color

property type: line_color:ColorSpec(String, Dict(String, Either(String, Instance(Transform), Color)), Color)

The line color values for the arrow head outline.

line_dash

property type: line_dash:DashPattern

The line dash values for the arrow head outline.

line_dash_offset

property type: line_dash_offset:Int

The line dash offset values for the arrow head outline.

line_join

property type: line_join:Enum(‘miter’, ‘round’, ‘bevel’)

The line join values for the arrow head outline.

line_width

property type: line_width:NumberSpec(String, Dict(String, Either(String, Instance(Transform), Float)), Float)

The line width values for the arrow head outline.

size

property type: size:Float

The size, in pixels, of the arrow head.

JSON Prototype
{
  "fill_alpha": {
    "value": 1.0
  },
  "fill_color": {
    "value": "black"
  },
  "id": "b4c81c96-24ae-4937-9e81-69cf17a8872f",
  "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": []
}
class OpenHead(**kwargs)

Bases: bokeh.models.arrow_heads.ArrowHead

Render an open-body arrow head.

line_alpha

property type: line_alpha:NumberSpec(String, Dict(String, Either(String, Instance(Transform), Float)), Float)

The line alpha values for the arrow head outline.

line_cap

property type: line_cap:Enum(‘butt’, ‘round’, ‘square’)

The line cap values for the arrow head outline.

line_color

property type: line_color:ColorSpec(String, Dict(String, Either(String, Instance(Transform), Color)), Color)

The line color values for the arrow head outline.

line_dash

property type: line_dash:DashPattern

The line dash values for the arrow head outline.

line_dash_offset

property type: line_dash_offset:Int

The line dash offset values for the arrow head outline.

line_join

property type: line_join:Enum(‘miter’, ‘round’, ‘bevel’)

The line join values for the arrow head outline.

line_width

property type: line_width:NumberSpec(String, Dict(String, Either(String, Instance(Transform), Float)), Float)

The line width values for the arrow head outline.

size

property type: size:Float

The size, in pixels, of the arrow head.

JSON Prototype
{
  "id": "ba852b5e-1083-40d0-9de1-299eda241201",
  "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": []
}
class VeeHead(**kwargs)

Bases: bokeh.models.arrow_heads.ArrowHead

Render an vee-style arrow head.

fill_alpha

property type: fill_alpha:NumberSpec(String, Dict(String, Either(String, Instance(Transform), Float)), Float)

The fill alpha values for the arrow head interior.

fill_color

property type: fill_color:ColorSpec(String, Dict(String, Either(String, Instance(Transform), Color)), Color)

The fill color values for the arrow head interior.

line_alpha

property type: line_alpha:NumberSpec(String, Dict(String, Either(String, Instance(Transform), Float)), Float)

The line alpha values for the arrow head outline.

line_cap

property type: line_cap:Enum(‘butt’, ‘round’, ‘square’)

The line cap values for the arrow head outline.

line_color

property type: line_color:ColorSpec(String, Dict(String, Either(String, Instance(Transform), Color)), Color)

The line color values for the arrow head outline.

line_dash

property type: line_dash:DashPattern

The line dash values for the arrow head outline.

line_dash_offset

property type: line_dash_offset:Int

The line dash offset values for the arrow head outline.

line_join

property type: line_join:Enum(‘miter’, ‘round’, ‘bevel’)

The line join values for the arrow head outline.

line_width

property type: line_width:NumberSpec(String, Dict(String, Either(String, Instance(Transform), Float)), Float)

The line width values for the arrow head outline.

size

property type: size:Float

The size, in pixels, of the arrow head.

JSON Prototype
{
  "fill_alpha": {
    "value": 1.0
  },
  "fill_color": {
    "value": "black"
  },
  "id": "e5f6f76e-a4bd-45db-aebb-4edeb2e676cd",
  "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": []
}