snnlab
API referencesnnlab.viz

snnlab.viz

Complete API reference for viz, including exports and every declared module API.

Validate retained recordings, project renderer-neutral diagrams, compose deterministic figure layouts, and encode animations. Rendering must consume retained evidence with consistent physical timelines.

Imports

from snnlab import viz

Package exports

ExportDefined in / valueRole
Diagramviz.diagramsre-export
DiagramEdgeviz.diagramsre-export
DiagramGroupviz.diagramsre-export
DiagramNodeviz.diagramsre-export
DiagramThemeviz.diagramsre-export
FigureGridviz.figure_gridre-export
FigureRectviz.figure_gridre-export
FigureRegionviz.figure_gridre-export
FrameTimelineviz.animationre-export
Panelviz.scenere-export
Recordingviz.contractsre-export
RecordingErrorviz.contractsre-export
Sceneviz.scenere-export
Themeviz.stylesre-export
__version__'0.1.0'Component format version; distinct from the combined distribution version.
diagram_to_dotviz.diagramsre-export
exponential_traceviz.transformsre-export
grid_layoutviz.layoutsre-export
load_snnsim_recordingviz.loadersre-export
projection_activityviz.transformsre-export
render_diagramviz.diagramsre-export
representative_frameviz.transformsre-export
save_animationviz.animationre-export

Modules

ModuleResponsibility
viz.animationTimeline sampling and backend encoding helpers.
viz.contractsRenderer-neutral retained evidence. All time-varying signal arrays must share a leading time axis, and dt_ms must be positive and finite. A Recording is not an instruction to rerun a simulation or replace absent evidence.
viz.diagramsRenderer-neutral structural diagrams. Node ids are unique and all edge/group references must resolve. Graphviz renders the generated DOT; SVG and PNG are supported by render_diagram. Diagram styles and labels do not alter the source graph.
viz.figure_gridDeterministic geometry in normalized figure coordinates. Row indices run top to bottom and columns left to right. Weighted tracks, gaps and reserved regions define a stable layout shared by stills and animation frames.
viz.layoutsDeterministic geometry helpers with no plotting-backend dependency.
viz.loadersAdapters from native tool artifacts into renderer-neutral recordings.
viz.sceneAn intentionally thin composition layer over Matplotlib.
viz.stylesThe default snnviz house-style tokens.
viz.transformsReusable numerical transforms, independent of Matplotlib.

Coverage and conventions

This reference includes every top-level non-private function and class, module-owned constant/type alias, declared public method/property, constructor and relevant protocol special method in the modules above. Data-class constructor fields include local inheritance. Third-party inherited APIs belong to their own libraries; underscore-prefixed implementation helpers are excluded. Imported standard-library and third-party names are not snnlab APIs.

Source docstrings are reproduced as text to preserve their parameter notes, examples, equations and formatting. Explicit exceptions are extracted from the implementation; indirect exceptions can also propagate. Expand the implementation panels for complete branch behavior, especially where legacy code has no annotations.

Regenerate with python3.12 docs/scripts/generate_api.py; --check fails if source-derived reference pages drift. Authored explanatory notes live in docs/scripts/api_notes.json.

On this page