aryagraph.render.scene.Scene#
- class aryagraph.render.scene.Scene(width: float, height: float, theme: ~aryagraph.style.themes.Theme, nodes: list[~aryagraph.render.scene.NodeMark], edges: list[~aryagraph.render.scene.EdgeMark], legends: list[tuple[~aryagraph.style.scales.Legend, float, float, float, float]], offset: tuple[float, float], background: str | None, title: str | None = None, subtitle: str | None = None, caption: str | None = None, directed: bool = False, layout: ~aryagraph.layout.base.Layout | None = None, meta: dict[str, ~typing.Any] = <factory>, display_size: tuple[float, float] | None = None)[source]#
Bases:
objectEverything needed to draw a graph, in pixel coordinates.
Graph marks live in content coordinates; backends translate them by
offset. Titles and legends use canvas coordinates.