genome_spy.LegendConfig¶
- class genome_spy.LegendConfig(backgroundFill=Undefined, backgroundFillOpacity=Undefined, backgroundStroke=Undefined, backgroundStrokeOpacity=Undefined, backgroundStrokeWidth=Undefined, columnPadding=Undefined, columns=Undefined, direction=Undefined, disable=Undefined, gradientLength=Undefined, gradientOpacity=Undefined, gradientStrokeColor=Undefined, gradientStrokeWidth=Undefined, gradientThickness=Undefined, labelAlign=Undefined, labelBaseline=Undefined, labelColor=Undefined, labelFont=Undefined, labelFontSize=Undefined, labelFontStyle=Undefined, labelFontWeight=Undefined, labelLimit=Undefined, labelOffset=Undefined, layout=Undefined, offset=Undefined, orient=Undefined, padding=Undefined, rowPadding=Undefined, selectionLabel=Undefined, spacing=Undefined, style=Undefined, symbolBaseFillColor=Undefined, symbolBaseStrokeColor=Undefined, symbolFillColor=Undefined, symbolOffset=Undefined, symbolOpacity=Undefined, symbolSize=Undefined, symbolStrokeColor=Undefined, symbolStrokeWidth=Undefined, symbolType=Undefined, tickCount=Undefined, title=Undefined, titleColor=Undefined, titleFont=Undefined, titleFontSize=Undefined, titleFontStyle=Undefined, titleFontWeight=Undefined, titleLimit=Undefined, titleOrient=Undefined, titlePadding=Undefined, values=Undefined, **kwds)View on GitHub¶
Bases:
GenomeSpySchemaGenerated wrapper for
LegendConfig.Methods
backgroundFill([value, expr])Return a copy with a
ExprRefbackgroundFill.backgroundFillOpacity(value)Return a copy with
backgroundFillOpacityupdated.backgroundStroke([value, expr])Return a copy with a
ExprRefbackgroundStroke.backgroundStrokeOpacity(value)Return a copy with
backgroundStrokeOpacityupdated.backgroundStrokeWidth(value)Return a copy with
backgroundStrokeWidthupdated.columnPadding(value)Return a copy with
columnPaddingupdated.columns(value)Return a copy with
columnsupdated.copy(*[, deep])Return a copy with optional keyword updates.
direction(value)Return a copy with
directionupdated.disable([value, expr])Return a copy with a
ExprRefdisable.gradientLength(value)Return a copy with
gradientLengthupdated.gradientOpacity(value)Return a copy with
gradientOpacityupdated.gradientStrokeColor([value, expr])Return a copy with a
ExprRefgradientStrokeColor.gradientStrokeWidth(value)Return a copy with
gradientStrokeWidthupdated.gradientThickness(value)Return a copy with
gradientThicknessupdated.labelAlign(value)Return a copy with
labelAlignupdated.labelBaseline(value)Return a copy with
labelBaselineupdated.labelColor([value, expr])Return a copy with a
ExprReflabelColor.labelFont(value)Return a copy with
labelFontupdated.labelFontSize(value)Return a copy with
labelFontSizeupdated.labelFontStyle(value)Return a copy with
labelFontStyleupdated.labelFontWeight(value)Return a copy with
labelFontWeightupdated.labelLimit(value)Return a copy with
labelLimitupdated.labelOffset(value)Return a copy with
labelOffsetupdated.layout([value, anchor, bottom, direction, ...])Return a copy with a
LegendLayoutlayout.offset(value)Return a copy with
offsetupdated.orient([value, expr])Return a copy with
orientupdated.padding(value)Return a copy with
paddingupdated.Return this class schema with referenced properties merged in.
rowPadding(value)Return a copy with
rowPaddingupdated.selectionLabel(value)Return a copy with
selectionLabelupdated.spacing(value)Return a copy with
spacingupdated.style(value)Return a copy with
styleupdated.symbolBaseFillColor([value, expr])Return a copy with a
ExprRefsymbolBaseFillColor.symbolBaseStrokeColor([value, expr])Return a copy with a
ExprRefsymbolBaseStrokeColor.symbolFillColor([value, expr])Return a copy with a
ExprRefsymbolFillColor.symbolOffset(value)Return a copy with
symbolOffsetupdated.symbolOpacity([value, expr])Return a copy with a
ExprRefsymbolOpacity.symbolSize(value)Return a copy with
symbolSizeupdated.symbolStrokeColor([value, expr])Return a copy with a
ExprRefsymbolStrokeColor.symbolStrokeWidth(value)Return a copy with
symbolStrokeWidthupdated.symbolType(value)Return a copy with
symbolTypeupdated.tickCount(value)Return a copy with
tickCountupdated.title(value)Return a copy with
titleupdated.titleColor([value, expr])Return a copy with a
ExprReftitleColor.titleFont(value)Return a copy with
titleFontupdated.titleFontSize(value)Return a copy with
titleFontSizeupdated.titleFontStyle(value)Return a copy with
titleFontStyleupdated.titleFontWeight(value)Return a copy with
titleFontWeightupdated.titleLimit(value)Return a copy with
titleLimitupdated.titleOrient(value)Return a copy with
titleOrientupdated.titlePadding(value)Return a copy with
titlePaddingupdated.to_dict(*[, validate])Serialize this schema wrapper to a JSON-compatible dictionary.
to_json(*[, validate])Serialize this schema wrapper to formatted JSON.
validate(instance)Validate an instance against this wrapper's schema.
values(value)Return a copy with
valuesupdated.- backgroundFill(value=Undefined, /, *, expr=Undefined)View on GitHub¶
Return a copy with a
ExprRefbackgroundFill.- Parameters:
expr (str) – The expression string.
- backgroundFillOpacity(value)View on GitHub¶
Return a copy with
backgroundFillOpacityupdated.
- backgroundStroke(value=Undefined, /, *, expr=Undefined)View on GitHub¶
Return a copy with a
ExprRefbackgroundStroke.- Parameters:
expr (str) – The expression string.
- backgroundStrokeOpacity(value)View on GitHub¶
Return a copy with
backgroundStrokeOpacityupdated.
- backgroundStrokeWidth(value)View on GitHub¶
Return a copy with
backgroundStrokeWidthupdated.
- columnPadding(value)View on GitHub¶
Return a copy with
columnPaddingupdated.
- columns(value)View on GitHub¶
Return a copy with
columnsupdated.
- direction(value)View on GitHub¶
Return a copy with
directionupdated.
- disable(value=Undefined, /, *, expr=Undefined)View on GitHub¶
Return a copy with a
ExprRefdisable.- Parameters:
expr (str) – The expression string.
- gradientLength(value)View on GitHub¶
Return a copy with
gradientLengthupdated.
- gradientOpacity(value)View on GitHub¶
Return a copy with
gradientOpacityupdated.
- gradientStrokeColor(value=Undefined, /, *, expr=Undefined)View on GitHub¶
Return a copy with a
ExprRefgradientStrokeColor.- Parameters:
expr (str) – The expression string.
- gradientStrokeWidth(value)View on GitHub¶
Return a copy with
gradientStrokeWidthupdated.
- gradientThickness(value)View on GitHub¶
Return a copy with
gradientThicknessupdated.
- labelAlign(value)View on GitHub¶
Return a copy with
labelAlignupdated.
- labelBaseline(value)View on GitHub¶
Return a copy with
labelBaselineupdated.
- labelColor(value=Undefined, /, *, expr=Undefined)View on GitHub¶
Return a copy with a
ExprReflabelColor.- Parameters:
expr (str) – The expression string.
- labelFont(value)View on GitHub¶
Return a copy with
labelFontupdated.
- labelFontSize(value)View on GitHub¶
Return a copy with
labelFontSizeupdated.
- labelFontStyle(value)View on GitHub¶
Return a copy with
labelFontStyleupdated.
- labelFontWeight(value)View on GitHub¶
Return a copy with
labelFontWeightupdated.
- labelLimit(value)View on GitHub¶
Return a copy with
labelLimitupdated.
- labelOffset(value)View on GitHub¶
Return a copy with
labelOffsetupdated.
- layout(value=Undefined, /, *, anchor=Undefined, bottom=Undefined, direction=Undefined, left=Undefined, right=Undefined, top=Undefined, wrap=Undefined)View on GitHub¶
Return a copy with a
LegendLayoutlayout.- Parameters:
anchor (LegendRegionAnchor_T) – Position of the complete legend stack along the plot edge. This property applies to external orientations; corner legends remain corner-anchored. __Default value:__
"start"bottom (LegendRegionLayout | dict[str, Any]) – Schema-defined
bottomproperty.direction (LegendDirection_T) – Direction in which complete legends are arranged within a legend region.
left (LegendRegionLayout | dict[str, Any]) – Schema-defined
leftproperty.right (LegendRegionLayout | dict[str, Any]) – Schema-defined
rightproperty.top (LegendRegionLayout | dict[str, Any]) – Schema-defined
topproperty.wrap (bool) – Whether complete legends wrap into additional rows or columns when they do not fit in the available region. Wrapping applies to external legend regions only. __Default value:__
truefor external regions,falsefor inside corners
- offset(value)View on GitHub¶
Return a copy with
offsetupdated.
- orient(value=Undefined, /, *, expr=Undefined)View on GitHub¶
Return a copy with
orientupdated.- Parameters:
expr (str) – The expression string.
- padding(value)View on GitHub¶
Return a copy with
paddingupdated.
- rowPadding(value)View on GitHub¶
Return a copy with
rowPaddingupdated.
- selectionLabel(value)View on GitHub¶
Return a copy with
selectionLabelupdated.
- spacing(value)View on GitHub¶
Return a copy with
spacingupdated.
- style(value)View on GitHub¶
Return a copy with
styleupdated.
- symbolBaseFillColor(value=Undefined, /, *, expr=Undefined)View on GitHub¶
Return a copy with a
ExprRefsymbolBaseFillColor.- Parameters:
expr (str) – The expression string.
- symbolBaseStrokeColor(value=Undefined, /, *, expr=Undefined)View on GitHub¶
Return a copy with a
ExprRefsymbolBaseStrokeColor.- Parameters:
expr (str) – The expression string.
- symbolFillColor(value=Undefined, /, *, expr=Undefined)View on GitHub¶
Return a copy with a
ExprRefsymbolFillColor.- Parameters:
expr (str) – The expression string.
- symbolOffset(value)View on GitHub¶
Return a copy with
symbolOffsetupdated.
- symbolOpacity(value=Undefined, /, *, expr=Undefined)View on GitHub¶
Return a copy with a
ExprRefsymbolOpacity.- Parameters:
expr (str) – The expression string.
- symbolSize(value)View on GitHub¶
Return a copy with
symbolSizeupdated.
- symbolStrokeColor(value=Undefined, /, *, expr=Undefined)View on GitHub¶
Return a copy with a
ExprRefsymbolStrokeColor.- Parameters:
expr (str) – The expression string.
- symbolStrokeWidth(value)View on GitHub¶
Return a copy with
symbolStrokeWidthupdated.
- symbolType(value)View on GitHub¶
Return a copy with
symbolTypeupdated.
- tickCount(value)View on GitHub¶
Return a copy with
tickCountupdated.
- title(value)View on GitHub¶
Return a copy with
titleupdated.
- titleColor(value=Undefined, /, *, expr=Undefined)View on GitHub¶
Return a copy with a
ExprReftitleColor.- Parameters:
expr (str) – The expression string.
- titleFont(value)View on GitHub¶
Return a copy with
titleFontupdated.
- titleFontSize(value)View on GitHub¶
Return a copy with
titleFontSizeupdated.
- titleFontStyle(value)View on GitHub¶
Return a copy with
titleFontStyleupdated.
- titleFontWeight(value)View on GitHub¶
Return a copy with
titleFontWeightupdated.
- titleLimit(value)View on GitHub¶
Return a copy with
titleLimitupdated.
- titleOrient(value)View on GitHub¶
Return a copy with
titleOrientupdated.
- titlePadding(value)View on GitHub¶
Return a copy with
titlePaddingupdated.
- values(value)View on GitHub¶
Return a copy with
valuesupdated.
- copy(*, deep=True, **kwds)View on GitHub¶
Return a copy with optional keyword updates.
- classmethod resolve_references()View on GitHub¶
Return this class schema with referenced properties merged in.
- to_dict(*, validate=True)View on GitHub¶
Serialize this schema wrapper to a JSON-compatible dictionary.
- to_json(*, validate=True)View on GitHub¶
Serialize this schema wrapper to formatted JSON.
- classmethod validate(instance)View on GitHub¶
Validate an instance against this wrapper’s schema.