genome_spy.LegendLayout¶
- class genome_spy.LegendLayout(anchor=Undefined, bottom=Undefined, direction=Undefined, left=Undefined, right=Undefined, top=Undefined, wrap=Undefined, **kwds)View on GitHub¶
Bases:
GenomeSpySchemaGenerated wrapper for
LegendLayout.Methods
anchor(value)Return a copy with
anchorupdated.bottom([value, anchor, direction, wrap])Return a copy with a
LegendRegionLayoutbottom.copy(*[, deep])Return a copy with optional keyword updates.
direction(value)Return a copy with
directionupdated.left([value, anchor, direction, wrap])Return a copy with a
LegendRegionLayoutleft.Return this class schema with referenced properties merged in.
right([value, anchor, direction, wrap])Return a copy with a
LegendRegionLayoutright.to_dict(*[, validate])Serialize this schema wrapper to a JSON-compatible dictionary.
to_json(*[, validate])Serialize this schema wrapper to formatted JSON.
top([value, anchor, direction, wrap])Return a copy with a
LegendRegionLayouttop.validate(instance)Validate an instance against this wrapper's schema.
wrap(value)Return a copy with
wrapupdated.- anchor(value)View on GitHub¶
Return a copy with
anchorupdated.
- bottom(value=Undefined, /, *, anchor=Undefined, direction=Undefined, wrap=Undefined)View on GitHub¶
Return a copy with a
LegendRegionLayoutbottom.- 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"direction (LegendDirection_T) – Direction in which complete legends are arranged within a legend region.
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
- direction(value)View on GitHub¶
Return a copy with
directionupdated.
- left(value=Undefined, /, *, anchor=Undefined, direction=Undefined, wrap=Undefined)View on GitHub¶
Return a copy with a
LegendRegionLayoutleft.- 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"direction (LegendDirection_T) – Direction in which complete legends are arranged within a legend region.
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
- right(value=Undefined, /, *, anchor=Undefined, direction=Undefined, wrap=Undefined)View on GitHub¶
Return a copy with a
LegendRegionLayoutright.- 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"direction (LegendDirection_T) – Direction in which complete legends are arranged within a legend region.
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
- top(value=Undefined, /, *, anchor=Undefined, direction=Undefined, wrap=Undefined)View on GitHub¶
Return a copy with a
LegendRegionLayouttop.- 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"direction (LegendDirection_T) – Direction in which complete legends are arranged within a legend region.
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
- wrap(value)View on GitHub¶
Return a copy with
wrapupdated.
- 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.