Visualization API
CairoMakie Plots
SemanticSpacetime.plot_cone — Function
plot_cone(store::AbstractSSTStore, cone::Vector{Vector{Link}};
title::String="Causal Cone", kwargs...)Create a figure showing cone paths as a directed graph. Uses assign_cone_coordinates for layout. Nodes are shown as scatter points, links as arrows, colored by ST type.
Returns a CairoMakie Figure, or nothing if CairoMakie is unavailable.
SemanticSpacetime.plot_orbit — Function
plot_orbit(store::AbstractSSTStore, nptr::NodePtr, orbits::Vector{Vector{Orbit}};
title::String="Node Orbit", kwargs...)Show a central node with orbiting satellites colored by ST type.
Returns a CairoMakie Figure, or nothing if CairoMakie is unavailable.
SemanticSpacetime.plot_graph_summary — Function
plot_graph_summary(store::AbstractSSTStore; chapter::String="", kwargs...)Overview: node count by type, degree distribution as a bar plot.
Returns a CairoMakie Figure, or nothing if CairoMakie is unavailable.
SemanticSpacetime.plot_adjacency_heatmap — Function
plot_adjacency_heatmap(adj::Matrix{Float32}; labels::Vector{String}=String[], kwargs...)Heatmap of an adjacency matrix.
Returns a CairoMakie Figure, or nothing if CairoMakie is unavailable.
SemanticSpacetime.save_plot — Function
save_plot(fig, filename::AbstractString)Save a CairoMakie figure to file (PNG, SVG, PDF based on extension).
GraphViz DOT Export
SemanticSpacetime.to_dot — Function
to_dot(store::AbstractSSTStore; chapter::String="", title::String="SST") -> StringExport the graph (or a single chapter) as a GraphViz DOT string. Nodes become DOT nodes and links become directed edges labeled with the arrow name and colored by ST type.
SemanticSpacetime.save_dot — Function
save_dot(store::AbstractSSTStore, filename::AbstractString; kwargs...)Write the graph as a GraphViz DOT file.