How to use the traitlets.CFloat function in traitlets

To help you get started, we’ve selected a few traitlets examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github altair-viz / altair / altair / schema / _interface / legendconfig.py View on Github external
titleFontSize: CFloat
        The font size of the legend title.
    titleFontWeight: Unicode
        The font weight of the legend title.
    """
    gradientHeight = T.CFloat(allow_none=True, default_value=None, help="""The height of the gradient, in pixels.""")
    gradientStrokeColor = T.Unicode(allow_none=True, default_value=None, help="""The color of the gradient stroke, can be in hex color code or regular color name.""")
    gradientStrokeWidth = T.CFloat(allow_none=True, default_value=None, help="""The width of the gradient stroke, in pixels.""")
    gradientWidth = T.CFloat(allow_none=True, default_value=None, help="""The width of the gradient, in pixels.""")
    labelAlign = T.Unicode(allow_none=True, default_value=None, help="""The alignment of the legend label, can be left, middle or right.""")
    labelBaseline = T.Unicode(allow_none=True, default_value=None, help="""The position of the baseline of legend label, can be top, middle or bottom.""")
    labelColor = T.Unicode(allow_none=True, default_value=None, help="""The color of the legend label, can be in hex color code or regular color name.""")
    labelFont = T.Unicode(allow_none=True, default_value=None, help="""The font of the lengend label.""")
    labelFontSize = T.CFloat(allow_none=True, default_value=None, help="""The font size of lengend lable.""")
    labelOffset = T.CFloat(allow_none=True, default_value=None, help="""The offset of the legend label.""")
    margin = T.CFloat(allow_none=True, default_value=None, help="""The margin around the legend, in pixels.""")
    offset = T.CFloat(allow_none=True, default_value=None, help="""The offset, in pixels, by which to displace the legend from the edge of the enclosing group or data rectangle.""")
    orient = T.Unicode(allow_none=True, default_value=None, help="""The orientation of the legend.""")
    padding = T.CFloat(allow_none=True, default_value=None, help="""The padding, in pixels, between the lengend and axis.""")
    properties = T.Any(allow_none=True, default_value=None, help="""Optional mark property definitions for custom legend styling.""")
    shortTimeLabels = T.Bool(allow_none=True, default_value=None, help="""Whether month names and weekday names should be abbreviated.""")
    symbolColor = T.Unicode(allow_none=True, default_value=None, help="""The color of the legend symbol,.""")
    symbolShape = T.Unicode(allow_none=True, default_value=None, help="""The shape of the legend symbol, can be the 'circle', 'square', 'cross', 'diamond', 'triangle-up', 'triangle-down', or else a custom SVG path string.""")
    symbolSize = T.CFloat(allow_none=True, default_value=None, help="""The size of the lengend symbol, in pixels.""")
    symbolStrokeWidth = T.CFloat(allow_none=True, default_value=None, help="""The width of the symbol's stroke.""")
    titleColor = T.Unicode(allow_none=True, default_value=None, help="""Optional mark property definitions for custom legend styling.""")
    titleFont = T.Unicode(allow_none=True, default_value=None, help="""The font of the legend title.""")
    titleFontSize = T.CFloat(allow_none=True, default_value=None, help="""The font size of the legend title.""")
    titleFontWeight = T.Unicode(allow_none=True, default_value=None, help="""The font weight of the legend title.""")
    
    def __init__(self, gradientHeight=None, gradientStrokeColor=None, gradientStrokeWidth=None, gradientWidth=None, labelAlign=None, labelBaseline=None, labelColor=None, labelFont=None, labelFontSize=None, labelOffset=None, margin=None, offset=None, orient=None, padding=None, properties=None, shortTimeLabels=None, symbolColor=None, symbolShape=None, symbolSize=None, symbolStrokeWidth=None, titleColor=None, titleFont=None, titleFontSize=None, titleFontWeight=None, **kwargs):
        kwds = dict(gradientHeight=gradientHeight, gradientStrokeColor=gradientStrokeColor, gradientStrokeWidth=gradientStrokeWidth, gradientWidth=gradientWidth, labelAlign=labelAlign, labelBaseline=labelBaseline, labelColor=labelColor, labelFont=labelFont, labelFontSize=labelFontSize, labelOffset=labelOffset, margin=margin, offset=offset, orient=orient, padding=padding, properties=properties, shortTimeLabels=shortTimeLabels, symbolColor=symbolColor, symbolShape=symbolShape, symbolSize=symbolSize, symbolStrokeWidth=symbolStrokeWidth, titleColor=titleColor, titleFont=titleFont, titleFontSize=titleFontSize, titleFontWeight=titleFontWeight)
github altair-viz / altair / altair / schema / _interface / markconfig.py View on Github external
radius = T.CFloat(allow_none=True, default_value=None, help="""Polar coordinate radial offset, in pixels, of the text label from the origin determined by the x and y properties.""")
    ruleSize = T.CFloat(allow_none=True, default_value=None, help="""Size of rule mark.""")
    shape = T.Union([Shape(allow_none=True, default_value=None), T.Unicode(allow_none=True, default_value=None)])
    shortTimeLabels = T.Bool(allow_none=True, default_value=None, help="""Whether month names and weekday names should be abbreviated.""")
    size = T.CFloat(allow_none=True, default_value=None, help="""The pixel area each the point.""")
    stacked = StackOffset(allow_none=True, default_value=None)
    stroke = T.Unicode(allow_none=True, default_value=None, help="""Default Stroke Color.""")
    strokeDash = T.List(T.CFloat(), allow_none=True, default_value=None, help="""An array of alternating stroke, space lengths for creating dashed or dotted lines.""")
    strokeDashOffset = T.CFloat(allow_none=True, default_value=None, help="""The offset (in pixels) into which to begin drawing with the stroke dash array.""")
    strokeOpacity = T.CFloat(allow_none=True, default_value=None, max=1, min=0)
    strokeWidth = T.CFloat(allow_none=True, default_value=None, min=0)
    tension = T.CFloat(allow_none=True, default_value=None, help="""Depending on the interpolation type, sets the tension parameter.""")
    text = T.Unicode(allow_none=True, default_value=None, help="""Placeholder Text.""")
    theta = T.CFloat(allow_none=True, default_value=None, help="""Polar coordinate angle, in radians, of the text label from the origin determined by the x and y properties.""")
    tickSize = T.CFloat(allow_none=True, default_value=None, help="""The width of the ticks.""")
    tickThickness = T.CFloat(allow_none=True, default_value=None, help="""Thickness of the tick mark.""")
    
    def __init__(self, align=None, angle=None, applyColorToBackground=None, barSize=None, barThinSize=None, baseline=None, color=None, dx=None, dy=None, fill=None, fillOpacity=None, filled=None, font=None, fontSize=None, fontStyle=None, fontWeight=None, format=None, interpolate=None, lineSize=None, opacity=None, orient=None, radius=None, ruleSize=None, shape=None, shortTimeLabels=None, size=None, stacked=None, stroke=None, strokeDash=None, strokeDashOffset=None, strokeOpacity=None, strokeWidth=None, tension=None, text=None, theta=None, tickSize=None, tickThickness=None, **kwargs):
        kwds = dict(align=align, angle=angle, applyColorToBackground=applyColorToBackground, barSize=barSize, barThinSize=barThinSize, baseline=baseline, color=color, dx=dx, dy=dy, fill=fill, fillOpacity=fillOpacity, filled=filled, font=font, fontSize=fontSize, fontStyle=fontStyle, fontWeight=fontWeight, format=format, interpolate=interpolate, lineSize=lineSize, opacity=opacity, orient=orient, radius=radius, ruleSize=ruleSize, shape=shape, shortTimeLabels=shortTimeLabels, size=size, stacked=stacked, stroke=stroke, strokeDash=strokeDash, strokeDashOffset=strokeDashOffset, strokeOpacity=strokeOpacity, strokeWidth=strokeWidth, tension=tension, text=text, theta=theta, tickSize=tickSize, tickThickness=tickThickness)
        kwargs.update({k:v for k, v in kwds.items() if v is not None})
        super(MarkConfig, self).__init__(**kwargs)
github altair-viz / altair / altair / schema / _interface / axis.py View on Github external
titleOffset: CFloat
        A title offset value for the axis.
    values: Union(List(CFloat), List(DateTime))
        
    """
    axisColor = T.Unicode(allow_none=True, default_value=None, help="""Color of axis line.""")
    axisWidth = T.CFloat(allow_none=True, default_value=None, help="""Width of the axis line.""")
    characterWidth = T.CFloat(allow_none=True, default_value=None, help="""Character width for automatically determining title max length.""")
    format = T.Unicode(allow_none=True, default_value=None, help="""The formatting pattern for axis labels.""")
    grid = T.Bool(allow_none=True, default_value=None, help="""A flag indicate if gridlines should be created in addition to ticks.""")
    gridColor = T.Unicode(allow_none=True, default_value=None, help="""Color of gridlines.""")
    gridDash = T.List(T.CFloat(), allow_none=True, default_value=None, help="""The offset (in pixels) into which to begin drawing with the grid dash array.""")
    gridOpacity = T.CFloat(allow_none=True, default_value=None, help="""The stroke opacity of grid (value between [0,1]).""")
    gridWidth = T.CFloat(allow_none=True, default_value=None, help="""The grid width, in pixels.""")
    labelAlign = T.Unicode(allow_none=True, default_value=None, help="""Text alignment for the Label.""")
    labelAngle = T.CFloat(allow_none=True, default_value=None, help="""The rotation angle of the axis labels.""")
    labelBaseline = T.Unicode(allow_none=True, default_value=None, help="""Text baseline for the label.""")
    labelMaxLength = T.CFloat(allow_none=True, default_value=None, min=1, help="""Truncate labels that are too long.""")
    labels = T.Bool(allow_none=True, default_value=None, help="""Enable or disable labels.""")
    layer = T.Unicode(allow_none=True, default_value=None, help="""A string indicating if the axis (and any gridlines) should be placed above or below the data marks.""")
    offset = T.CFloat(allow_none=True, default_value=None, help="""The offset, in pixels, by which to displace the axis from the edge of the enclosing group or data rectangle.""")
    orient = AxisOrient(allow_none=True, default_value=None, help="""The orientation of the axis.""")
    properties = T.Any(allow_none=True, default_value=None, help="""Optional mark property definitions for custom axis styling.""")
    shortTimeLabels = T.Bool(allow_none=True, default_value=None, help="""Whether month and day names should be abbreviated.""")
    subdivide = T.CFloat(allow_none=True, default_value=None, help="""If provided, sets the number of minor ticks between major ticks (the value 9 results in decimal subdivision).""")
    tickColor = T.Unicode(allow_none=True, default_value=None, help="""The color of the axis's tick.""")
    tickLabelColor = T.Unicode(allow_none=True, default_value=None, help="""The color of the tick label, can be in hex color code or regular color name.""")
    tickLabelFont = T.Unicode(allow_none=True, default_value=None, help="""The font of the tick label.""")
    tickLabelFontSize = T.CFloat(allow_none=True, default_value=None, help="""The font size of label, in pixels.""")
    tickPadding = T.CFloat(allow_none=True, default_value=None, help="""The padding, in pixels, between ticks and text labels.""")
    tickSize = T.CFloat(allow_none=True, default_value=None, min=0, help="""The size, in pixels, of major, minor and end ticks.""")
    tickSizeEnd = T.CFloat(allow_none=True, default_value=None, min=0, help="""The size, in pixels, of end ticks.""")
github altair-viz / altair / altair / schema / _interface / cellconfig.py View on Github external
strokeDashOffset: CFloat
        The offset (in pixels) into which to begin drawing with the stroke dash array.
    strokeOpacity: CFloat
        The stroke opacity (value between [0,1]).
    strokeWidth: CFloat
        The stroke width, in pixels.
    width: CFloat
        
    """
    clip = T.Bool(allow_none=True, default_value=None)
    fill = T.Unicode(allow_none=True, default_value=None, help="""The fill color.""")
    fillOpacity = T.CFloat(allow_none=True, default_value=None, help="""The fill opacity (value between [0,1]).""")
    height = T.CFloat(allow_none=True, default_value=None)
    stroke = T.Unicode(allow_none=True, default_value=None, help="""The stroke color.""")
    strokeDash = T.List(T.CFloat(), allow_none=True, default_value=None, help="""An array of alternating stroke, space lengths for creating dashed or dotted lines.""")
    strokeDashOffset = T.CFloat(allow_none=True, default_value=None, help="""The offset (in pixels) into which to begin drawing with the stroke dash array.""")
    strokeOpacity = T.CFloat(allow_none=True, default_value=None, help="""The stroke opacity (value between [0,1]).""")
    strokeWidth = T.CFloat(allow_none=True, default_value=None, help="""The stroke width, in pixels.""")
    width = T.CFloat(allow_none=True, default_value=None)
    
    def __init__(self, clip=None, fill=None, fillOpacity=None, height=None, stroke=None, strokeDash=None, strokeDashOffset=None, strokeOpacity=None, strokeWidth=None, width=None, **kwargs):
        kwds = dict(clip=clip, fill=fill, fillOpacity=fillOpacity, height=height, stroke=stroke, strokeDash=strokeDash, strokeDashOffset=strokeDashOffset, strokeOpacity=strokeOpacity, strokeWidth=strokeWidth, width=width)
        kwargs.update({k:v for k, v in kwds.items() if v is not None})
        super(CellConfig, self).__init__(**kwargs)
github altair-viz / altair / altair / schema / _interface / markconfig.py View on Github external
barThinSize = T.CFloat(allow_none=True, default_value=None, help="""The size of the bars on continuous scales.""")
    baseline = VerticalAlign(allow_none=True, default_value=None, help="""The vertical alignment of the text.""")
    color = T.Unicode(allow_none=True, default_value=None, help="""Default color.""")
    dx = T.CFloat(allow_none=True, default_value=None, help="""The horizontal offset, in pixels, between the text label and its anchor point.""")
    dy = T.CFloat(allow_none=True, default_value=None, help="""The vertical offset, in pixels, between the text label and its anchor point.""")
    fill = T.Unicode(allow_none=True, default_value=None, help="""Default Fill Color.""")
    fillOpacity = T.CFloat(allow_none=True, default_value=None, max=1, min=0)
    filled = T.Bool(allow_none=True, default_value=None, help="""Whether the shape\'s color should be used as fill color instead of stroke color.""")
    font = T.Unicode(allow_none=True, default_value=None, help="""The typeface to set the text in .""")
    fontSize = T.CFloat(allow_none=True, default_value=None, help="""The font size, in pixels.""")
    fontStyle = FontStyle(allow_none=True, default_value=None, help="""The font style .""")
    fontWeight = FontWeight(allow_none=True, default_value=None, help="""The font weight .""")
    format = T.Unicode(allow_none=True, default_value=None, help="""The formatting pattern for text value.""")
    interpolate = Interpolate(allow_none=True, default_value=None, help="""The line interpolation method to use.""")
    lineSize = T.CFloat(allow_none=True, default_value=None, help="""Size of line mark.""")
    opacity = T.CFloat(allow_none=True, default_value=None, max=1, min=0)
    orient = Orient(allow_none=True, default_value=None, help="""The orientation of a non-stacked bar, tick, area, and line charts.""")
    radius = T.CFloat(allow_none=True, default_value=None, help="""Polar coordinate radial offset, in pixels, of the text label from the origin determined by the x and y properties.""")
    ruleSize = T.CFloat(allow_none=True, default_value=None, help="""Size of rule mark.""")
    shape = T.Union([Shape(allow_none=True, default_value=None), T.Unicode(allow_none=True, default_value=None)])
    shortTimeLabels = T.Bool(allow_none=True, default_value=None, help="""Whether month names and weekday names should be abbreviated.""")
    size = T.CFloat(allow_none=True, default_value=None, help="""The pixel area each the point.""")
    stacked = StackOffset(allow_none=True, default_value=None)
    stroke = T.Unicode(allow_none=True, default_value=None, help="""Default Stroke Color.""")
    strokeDash = T.List(T.CFloat(), allow_none=True, default_value=None, help="""An array of alternating stroke, space lengths for creating dashed or dotted lines.""")
    strokeDashOffset = T.CFloat(allow_none=True, default_value=None, help="""The offset (in pixels) into which to begin drawing with the stroke dash array.""")
    strokeOpacity = T.CFloat(allow_none=True, default_value=None, max=1, min=0)
    strokeWidth = T.CFloat(allow_none=True, default_value=None, min=0)
    tension = T.CFloat(allow_none=True, default_value=None, help="""Depending on the interpolation type, sets the tension parameter.""")
    text = T.Unicode(allow_none=True, default_value=None, help="""Placeholder Text.""")
    theta = T.CFloat(allow_none=True, default_value=None, help="""Polar coordinate angle, in radians, of the text label from the origin determined by the x and y properties.""")
    tickSize = T.CFloat(allow_none=True, default_value=None, help="""The width of the ticks.""")
github altair-viz / altair / altair / schema / _interface / markconfig.py View on Github external
Placeholder Text.
    theta: CFloat
        Polar coordinate angle, in radians, of the text label from the origin determined by the x and y properties.
    tickSize: CFloat
        The width of the ticks.
    tickThickness: CFloat
        Thickness of the tick mark.
    """
    align = HorizontalAlign(allow_none=True, default_value=None, help="""The horizontal alignment of the text.""")
    angle = T.CFloat(allow_none=True, default_value=None, help="""The rotation angle of the text, in degrees.""")
    applyColorToBackground = T.Bool(allow_none=True, default_value=None, help="""Apply color field to background color instead of the text.""")
    barSize = T.CFloat(allow_none=True, default_value=None, help="""The size of the bars.""")
    barThinSize = T.CFloat(allow_none=True, default_value=None, help="""The size of the bars on continuous scales.""")
    baseline = VerticalAlign(allow_none=True, default_value=None, help="""The vertical alignment of the text.""")
    color = T.Unicode(allow_none=True, default_value=None, help="""Default color.""")
    dx = T.CFloat(allow_none=True, default_value=None, help="""The horizontal offset, in pixels, between the text label and its anchor point.""")
    dy = T.CFloat(allow_none=True, default_value=None, help="""The vertical offset, in pixels, between the text label and its anchor point.""")
    fill = T.Unicode(allow_none=True, default_value=None, help="""Default Fill Color.""")
    fillOpacity = T.CFloat(allow_none=True, default_value=None, max=1, min=0)
    filled = T.Bool(allow_none=True, default_value=None, help="""Whether the shape\'s color should be used as fill color instead of stroke color.""")
    font = T.Unicode(allow_none=True, default_value=None, help="""The typeface to set the text in .""")
    fontSize = T.CFloat(allow_none=True, default_value=None, help="""The font size, in pixels.""")
    fontStyle = FontStyle(allow_none=True, default_value=None, help="""The font style .""")
    fontWeight = FontWeight(allow_none=True, default_value=None, help="""The font weight .""")
    format = T.Unicode(allow_none=True, default_value=None, help="""The formatting pattern for text value.""")
    interpolate = Interpolate(allow_none=True, default_value=None, help="""The line interpolation method to use.""")
    lineSize = T.CFloat(allow_none=True, default_value=None, help="""Size of line mark.""")
    opacity = T.CFloat(allow_none=True, default_value=None, max=1, min=0)
    orient = Orient(allow_none=True, default_value=None, help="""The orientation of a non-stacked bar, tick, area, and line charts.""")
    radius = T.CFloat(allow_none=True, default_value=None, help="""Polar coordinate radial offset, in pixels, of the text label from the origin determined by the x and y properties.""")
    ruleSize = T.CFloat(allow_none=True, default_value=None, help="""Size of rule mark.""")
    shape = T.Union([Shape(allow_none=True, default_value=None), T.Unicode(allow_none=True, default_value=None)])
github jupyter-widgets / ipywidgets / ipywidgets / widgets / widget_float.py View on Github external
value : float
        value displayed
    min : float
        minimal value of the range of possible values displayed
    max : float
        maximal value of the range of possible values displayed
    step : float
        step of the increment (if None, any step is allowed)
    description : str
        description displayed next to the textbox
    """
    _view_name = Unicode('FloatTextView').tag(sync=True)
    _model_name = Unicode('BoundedFloatTextModel').tag(sync=True)
    disabled = Bool(False, help="Enable or disable user changes").tag(sync=True)
    continuous_update = Bool(False, help="Update the value as the user types. If False, update on submission, e.g., pressing Enter or navigating away.").tag(sync=True)
    step = CFloat(None, allow_none=True, help="Minimum step to increment the value").tag(sync=True)

@register
class FloatSlider(_BoundedFloat):
    """ Slider/trackbar of floating values with the specified range.

    Parameters
    ----------
    value : float
        position of the slider
    min : float
        minimal position of the slider
    max : float
        maximal position of the slider
    step : float
        step of the trackbar
    description : str
github altair-viz / altair / altair / schema / _interface / cellconfig.py View on Github external
The offset (in pixels) into which to begin drawing with the stroke dash array.
    strokeOpacity: CFloat
        The stroke opacity (value between [0,1]).
    strokeWidth: CFloat
        The stroke width, in pixels.
    width: CFloat
        
    """
    clip = T.Bool(allow_none=True, default_value=None)
    fill = T.Unicode(allow_none=True, default_value=None, help="""The fill color.""")
    fillOpacity = T.CFloat(allow_none=True, default_value=None, help="""The fill opacity (value between [0,1]).""")
    height = T.CFloat(allow_none=True, default_value=None)
    stroke = T.Unicode(allow_none=True, default_value=None, help="""The stroke color.""")
    strokeDash = T.List(T.CFloat(), allow_none=True, default_value=None, help="""An array of alternating stroke, space lengths for creating dashed or dotted lines.""")
    strokeDashOffset = T.CFloat(allow_none=True, default_value=None, help="""The offset (in pixels) into which to begin drawing with the stroke dash array.""")
    strokeOpacity = T.CFloat(allow_none=True, default_value=None, help="""The stroke opacity (value between [0,1]).""")
    strokeWidth = T.CFloat(allow_none=True, default_value=None, help="""The stroke width, in pixels.""")
    width = T.CFloat(allow_none=True, default_value=None)
    
    def __init__(self, clip=None, fill=None, fillOpacity=None, height=None, stroke=None, strokeDash=None, strokeDashOffset=None, strokeOpacity=None, strokeWidth=None, width=None, **kwargs):
        kwds = dict(clip=clip, fill=fill, fillOpacity=fillOpacity, height=height, stroke=stroke, strokeDash=strokeDash, strokeDashOffset=strokeDashOffset, strokeOpacity=strokeOpacity, strokeWidth=strokeWidth, width=width)
        kwargs.update({k:v for k, v in kwds.items() if v is not None})
        super(CellConfig, self).__init__(**kwargs)
github power-system-simulation-toolbox / psst / psst / case / generator.py View on Github external
name = t.CUnicode(default_value='GenCo0', help='Name of Generator (str)')
    generator_bus = t.CUnicode(default_value='Bus0', help='Bus of Generator (str)')
    generator_voltage = t.CFloat(default_value=1.0, help='Nominal voltage of the generator (p.u.)')
    base_power = t.CFloat(default_value=100.0, help='Base power of the generator (MVA)')
    generation_type = t.Enum(
        [
            'COAL',
            'NATURALGAS',
            'WIND'
        ],
        default_value='COAL'
    )
    minimum_up_time = t.CInt(default_value=0, min=0, help='Minimum up time (hrs)')
    minimum_down_time = t.CInt(default_value=0, min=0, help='Minimum down time (hrs)')
    ramp_up_rate = t.CFloat(default_value=0, min=0, help='Ramp up rate (MW/hr)')
    ramp_down_rate = t.CFloat(default_value=0, min=0, help='Ramp down rate (MW/hr)')
    maximum_real_power = t.CFloat(default_value=0, min=0, help='Capacity of Generator (MW)')
    minimum_real_power = t.CFloat(default_value=0, min=0, help='Minimum generation (MW)')
    maximum_imag_power = t.CFloat(default_value=0, help='Maximum reactive generation (MVAR)')
    minimum_imag_power = t.CFloat(default_value=0, help='Minimum reactive generation (MVAR)')
    initial_real_power = t.CFloat(default_value=0, min=0, help='Initial power generation (MW)')
    initial_imag_power = t.CFloat(default_value=0, min=0, help='Initial power generation (MVAR)')
    initial_status = t.CBool(default_value=True, min=0, help='Initial status (bool)')
    startup_time = t.CInt(default_value=0, min=0, help='Startup time (hrs)')
    shutdown_time = t.CInt(default_value=0, min=0, help='Shutdown time (hrs)')
    nsegments = t.CInt(
        default_value=2,
        min=MINIMUM_COST_CURVE_SEGMENTS,
        max=MAXIMUM_COST_CURVE_SEGMENTS,
        help='Number of data points for piecewise linear'
    )
    cost_curve_points = tt.Array(default_value=[0, 0, 0], minlen=(MINIMUM_COST_CURVE_SEGMENTS + 1), maxlen=(MAXIMUM_COST_CURVE_SEGMENTS + 1))
github altair-viz / altair / altair / schema / _interface / markconfig.py View on Github external
theta: CFloat
        Polar coordinate angle, in radians, of the text label from the origin determined by the x and y properties.
    tickSize: CFloat
        The width of the ticks.
    tickThickness: CFloat
        Thickness of the tick mark.
    """
    align = HorizontalAlign(allow_none=True, default_value=None, help="""The horizontal alignment of the text.""")
    angle = T.CFloat(allow_none=True, default_value=None, help="""The rotation angle of the text, in degrees.""")
    applyColorToBackground = T.Bool(allow_none=True, default_value=None, help="""Apply color field to background color instead of the text.""")
    barSize = T.CFloat(allow_none=True, default_value=None, help="""The size of the bars.""")
    barThinSize = T.CFloat(allow_none=True, default_value=None, help="""The size of the bars on continuous scales.""")
    baseline = VerticalAlign(allow_none=True, default_value=None, help="""The vertical alignment of the text.""")
    color = T.Unicode(allow_none=True, default_value=None, help="""Default color.""")
    dx = T.CFloat(allow_none=True, default_value=None, help="""The horizontal offset, in pixels, between the text label and its anchor point.""")
    dy = T.CFloat(allow_none=True, default_value=None, help="""The vertical offset, in pixels, between the text label and its anchor point.""")
    fill = T.Unicode(allow_none=True, default_value=None, help="""Default Fill Color.""")
    fillOpacity = T.CFloat(allow_none=True, default_value=None, max=1, min=0)
    filled = T.Bool(allow_none=True, default_value=None, help="""Whether the shape\'s color should be used as fill color instead of stroke color.""")
    font = T.Unicode(allow_none=True, default_value=None, help="""The typeface to set the text in .""")
    fontSize = T.CFloat(allow_none=True, default_value=None, help="""The font size, in pixels.""")
    fontStyle = FontStyle(allow_none=True, default_value=None, help="""The font style .""")
    fontWeight = FontWeight(allow_none=True, default_value=None, help="""The font weight .""")
    format = T.Unicode(allow_none=True, default_value=None, help="""The formatting pattern for text value.""")
    interpolate = Interpolate(allow_none=True, default_value=None, help="""The line interpolation method to use.""")
    lineSize = T.CFloat(allow_none=True, default_value=None, help="""Size of line mark.""")
    opacity = T.CFloat(allow_none=True, default_value=None, max=1, min=0)
    orient = Orient(allow_none=True, default_value=None, help="""The orientation of a non-stacked bar, tick, area, and line charts.""")
    radius = T.CFloat(allow_none=True, default_value=None, help="""Polar coordinate radial offset, in pixels, of the text label from the origin determined by the x and y properties.""")
    ruleSize = T.CFloat(allow_none=True, default_value=None, help="""Size of rule mark.""")
    shape = T.Union([Shape(allow_none=True, default_value=None), T.Unicode(allow_none=True, default_value=None)])
    shortTimeLabels = T.Bool(allow_none=True, default_value=None, help="""Whether month names and weekday names should be abbreviated.""")