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": "e06fb0ee-426c-4358-a3fd-ccde3e168d00",
  "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), 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": "bcded095-16a6-4cad-8895-d9b37bf231a2",
  "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), 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": "76ad63ae-3a39-4d1f-a90d-4d3d32cc61b3",
  "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), 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": "fb0c43f8-5991-4be6-a155-dd7980b65a9b",
  "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
}