This docs on this page refers to a PREVIOUS VERSION. For the latest stable release, go to https://docs.bokeh.org/

Archived docs for versions <= 1.0.4 have had to be modified from their original published configuration, and may be missing some features (e.g. source listing)

All users are encourage to update to version 1.1 or later, as soon as they are able.

bokeh.models.arrow_heads — Bokeh 1.0.2 documentation

Source code for bokeh.models.arrow_heads

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

'''
from __future__ import absolute_import

from ..core.has_props import abstract
from ..core.properties import Float, Include, Override
from ..core.property_mixins import FillProps, LineProps

from .annotations import Annotation

[docs]@abstract class ArrowHead(Annotation): ''' Base class for arrow heads. '''
[docs]class OpenHead(ArrowHead): ''' Render an open-body arrow head. ''' size = Float(default=25, help=""" The size, in pixels, of the arrow head. """) line_props = Include(LineProps, use_prefix=False, help=""" The %s values for the arrow head outline. """)
[docs]class NormalHead(ArrowHead): ''' Render a closed-body arrow head. ''' size = Float(default=25, help=""" The size, in pixels, of the arrow head. """) line_props = Include(LineProps, use_prefix=False, help=""" The %s values for the arrow head outline. """) fill_props = Include(FillProps, use_prefix=False, help=""" The %s values for the arrow head interior. """) fill_color = Override(default="black")
[docs]class TeeHead(ArrowHead): ''' Render a tee-style arrow head. ''' size = Float(default=25, help=""" The size, in pixels, of the arrow head. """) line_props = Include(LineProps, use_prefix=False, help=""" The %s values for the arrow head outline. """)
[docs]class VeeHead(ArrowHead): ''' Render a vee-style arrow head. ''' size = Float(default=25, help=""" The size, in pixels, of the arrow head. """) line_props = Include(LineProps, use_prefix=False, help=""" The %s values for the arrow head outline. """) fill_props = Include(FillProps, use_prefix=False, help=""" The %s values for the arrow head interior. """) fill_color = Override(default="black")