raesl.plot.generic#

RaESL GraphViz diagram plotting module.

Module Contents#

Classes#

DiagramStyle

RaESL Graphviz diagram style mapping.

Style

RaESL plotting style mapping.

class raesl.plot.generic.DiagramStyle(digraph: Dict[str, Any] | None = None, orientation: str | None = None, node_shapes: Dict[str, str] | None = None, edge_styles: Dict[str, str] | None = None, show_hierarchy: bool | None = None, list_variables: bool | None = None, show_root_children: bool | None = None, show_neighbor_children: bool | None = None, show_function_dependencies: bool | None = None)#

Bases: ragraph.generic.Mapping

RaESL Graphviz diagram style mapping.

_defaults#
digraph() Dict[str, Any]#

Options for the graphviz.Digraph object.

orientation() str#

Orientation of the layout of the graph. One of ‘LR’ (left-to-right) or ‘TD’ (top-down).

node_shapes() Dict[str, str]#

Dictionary of node kinds to Graphviz node shapes.

edge_styles() Dict[str, str]#

Dictionary of edge kind to Graphviz edge styles.

show_hierarchy() bool#

Whether to draw the nested hierarchical structure.

list_variables() bool#

Whether to list the variables of goal- and transformation specifications.

show_root_children() bool#

Whether to display the children of the root component within a functional context diagram.

show_neighbor_children() bool#

Whether to display the children of the neighbor components within a functional context diagram.

show_function_dependencies() bool#

Whether to display dependencies between functions within a traceability diagram.

class raesl.plot.generic.Style(diagram: DiagramStyle | Dict[str, Any] | None = None, ragraph: ragraph.plot.generic.Style | Dict[str, Any] | None = None)#

Bases: ragraph.generic.Mapping

RaESL plotting style mapping.

_defaults#
diagram() DiagramStyle#

Graphviz diagram style.

ragraph() ragraph.plot.generic.Style#

RaGraph style options, used for Multi-Domain matrices.