Anaconda Enterprise: Documentation

# bokeh.models.arrow_heads

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

class `bokeh.models.arrow_heads.``ArrowHead`(**kwargs)

  Bases: `bokeh.models.annotations.Annotation`

  Base class for arrow heads.

  Note

  This is an abstract base class used to help organize the hierarchy of Bokeh model types. It is not useful to instantiate on its own.

JSON Prototype

    {
      "id": "89c0c52f-25d6-4c81-aa18-0bf443473f59",
      "js_event_callbacks": {},
      "js_property_callbacks": {},
      "level": "annotation",
      "name": null,
      "plot": null,
      "subscribed_events": [],
      "tags": [],
      "visible": true
    }

class `bokeh.models.arrow_heads.``NormalHead`(**kwargs)

  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": "19163be3-3de8-469a-94fd-cb9d327eb54e",
      "js_event_callbacks": {},
      "js_property_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,
      "subscribed_events": [],
      "tags": [],
      "visible": true
    }

class `bokeh.models.arrow_heads.``OpenHead`(**kwargs)

  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": "b0d1cebb-dc4b-4740-ad80-bce2ea1c054f",
      "js_event_callbacks": {},
      "js_property_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,
      "subscribed_events": [],
      "tags": [],
      "visible": true
    }

class `bokeh.models.arrow_heads.``TeeHead`(**kwargs)

  Bases: `bokeh.models.arrow_heads.ArrowHead`

  Render a tee-style 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": "b6c2bad4-4aac-40d1-9521-57c80f1051b9",
      "js_event_callbacks": {},
      "js_property_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,
      "subscribed_events": [],
      "tags": [],
      "visible": true
    }

class `bokeh.models.arrow_heads.``VeeHead`(**kwargs)

  Bases: `bokeh.models.arrow_heads.ArrowHead`

  Render a 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": "2e5ede3a-d752-481a-b7a6-a9380b236c01",
      "js_event_callbacks": {},
      "js_property_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,
      "subscribed_events": [],
      "tags": [],
      "visible": true
    }