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": "ab2c35e1-9e4c-4072-88e0-5aae49448758",
  "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": "54d92acb-7015-466a-8cae-02bc822b960c",
  "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": "048059a1-6103-4daa-b667-a85659c3de12",
  "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": "2151e0d5-6015-479c-bfc1-4b9a03c085f7",
  "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
}