Exemple #1
0
class Barb(bokeh.models.XYGlyph):
    __implementation__ = "barb.ts"
    _args = ('x', 'y', 'u', 'v')
    x = DistanceSpec(units_default="screen")
    y = DistanceSpec(units_default="screen")
    u = NumberSpec()
    v = NumberSpec()
Exemple #2
0
class Barb(bokeh.models.XYGlyph):
    __implementation__ = "barb.ts"
    _args = ("x", "y", "u", "v")
    x = DistanceSpec(units_default="screen")
    y = DistanceSpec(units_default="screen")
    u = NumberSpec()
    v = NumberSpec()
Exemple #3
0
class TextStamp(bokeh.models.Text):
    __implementation__ = "text_stamp.ts"
    _args = ('value', 'colour', 'fontsize')
    x = DistanceSpec(units_default="screen")
    y = DistanceSpec(units_default="screen")
    value = StringSpec(default="🌧")
    colour = ColorSpec(default="fuchsia")
    fontsize = FontSizeSpec(default="30px")
Exemple #4
0
class ModelWithSpecInTestDocument(Model):
    foo = DistanceSpec(2)
Exemple #5
0
class Barb(bokeh.models.Marker):
    __implementation__ = "barb.ts"
    _args = ('x', 'y', 'u', 'v')
    u = DistanceSpec(units_default="screen")
    v = DistanceSpec(units_default="screen")
class UnitsSpecModel(Model):
    distance = DistanceSpec(42)
    angle = AngleSpec(0)
Exemple #7
0
class Barbs(bokeh.models.Marker):
    __implementation__ = "wind.ts"
    u = DistanceSpec(units_default="screen")
    v = DistanceSpec(units_default="screen")
Exemple #8
0
class Barbs(Marker):
    __implementation__ = "custom.ts"
    a = DistanceSpec(units_default="screen")
    b = DistanceSpec(units_default="screen")