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": "6661b844-20b8-4c8b-b214-c7b0d4dd7c24",
  "level": "annotation",
  "name": null,
  "plot": null,
  "tags": [],
  "visible": true
}
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), Instance(ColorMapper), 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), Instance(ColorMapper), 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), Instance(ColorMapper), 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), Instance(ColorMapper), 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), Instance(ColorMapper), 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": "fd338b36-f8d9-4f76-9e6e-511275665175",
  "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)

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), Instance(ColorMapper), 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), Instance(ColorMapper), 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), Instance(ColorMapper), 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": "c726ce6c-0a61-45d5-ac46-1116e8f7f5d3",
  "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)

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), Instance(ColorMapper), 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), Instance(ColorMapper), 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), Instance(ColorMapper), 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), Instance(ColorMapper), 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), Instance(ColorMapper), 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": "81443128-8d80-4eb5-ac17-53285578cfb2",
  "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
}