Skip to content

LegendMV

Legend element for MV networks.

Inherits from: DataClassJsonMixin

Import

python
from pyptp.elements.mv import LegendMV

Properties

PropertyTypeRequiredDefaultDescription
generalGeneralNo(factory)
mergeslist[str]No[]
cellslist[LegendCell]No[]
presentationslist[LegendPresentation]No[]

General

General properties for legend.

PropertyTypeRequiredDefaultDescription
guidGuidNo(auto UUID)
creation_timefloatNo0.0
mutation_dateintNo0
revision_dateintNo0
variantboolNoFalse
rowsintNo1
columnsintNo1

Referenced Types

General

General properties for legend.

Defined in pyptp.elements.mv.legend

PropertyTypeRequiredDefaultDescription
guidGuidNo(auto UUID)
creation_timefloatNo0.0
mutation_dateintNo0
revision_dateintNo0
variantboolNoFalse
rowsintNo1
columnsintNo1

LegendCell

Individual cell within a legend table.

Contains row/column position, text formatting, and content lines.

Defined in pyptp.elements.mv.legend

PropertyTypeRequiredDefaultDescription
rowintNo1
columnintNo1
text_sizeintNo20
text_lineslist[str]No[]

LegendPresentation

Visual presentation properties for legend display.

Defines position, dimensions, colors, and text formatting for rendering the legend on a sheet.

Defined in pyptp.elements.mv.legend

PropertyTypeRequiredDefaultDescription
sheetGuidNo(auto UUID)
x1intNo0
y1intNo0
x2intNo0
y2intNo0
colorDelphiColorNo"$000000"
widthintNo1Thickness of the lines that draw the symbol.
stylestrNo"Solid"
text_colorDelphiColorNo"$000000"Color of the text.
text_sizeintNo10Size of the text.
fontstrNo"Arial"
text_styleintNo0
no_textboolNoFalseHides all text when True.
upside_down_textboolNoFalseMakes text upside down when True.