4.1.8.2. causality/EventTracePrinter¶
- class causality.EventTracePrinter¶
This class is used to configure how event traces are visualised, e.g., which vertices/graphs should be shown, colours, and axis configuration.
See
causality::EventTracePrinterfor details on how the plot is rendered, and how the rendering is influenced by the printer.Added in version 1.1.
Todo
check version added before release
- maxPointsPerVertex¶
Control how many points are rendered for each different vertex represented in the trace. Data is then visualised at this amount of regular intervals on the time axis. It defaults to 500.
- Type:
- pushOptions(f)¶
Add another function or constant that adds options for the axis environment. All options function results are applied.
- popOptions()¶
Remove the last pushed options function.
- Raises:
LogicErrorif no callback is left to pop.
- pushVertexVisible(f)¶
Add another function or constant controlling the visibility of plots of vertices. All visibility functions must return
truefor a plot of a vertex to be visible.
- popVertexVisible()¶
Remove the last pushed vertex visibility function.
- Raises:
LogicErrorif no callback is left to pop.
- pushVertexOptions(f)¶
Add another function or constant setting options for the plot of each vertex. All options function results are applied.
- popVertexOptions()¶
Remove the last pushed vertex options function.
- Raises:
LogicErrorif no callback is left to pop.