Sphinx Diagram Examples#

This is for internal use :-) as we figure out how to use some of the diagram / figure tools.

Below example of inline sequence diagram support in Sphinx!

Block/Seq/NW Diagrams#

Sequence Diagrams#

Basic one:

Testing. Again. Again. Again.

Block Diagrams#

And some more:

And more:

More examples of block diagrams here: http://blockdiag.com/en/blockdiag/examples.html

Lots of sequence diagram examples: http://blockdiag.com/en/seqdiag/examples.html#seqdiag-sample-diagrams

We can also inline simple network diagrams: http://blockdiag.com/en/nwdiag/nwdiag-examples.html

As well as packet diagrams: http://blockdiag.com/en/nwdiag/packetdiag-examples.html#structure-of-tcp-header

And activity diagrams: http://blockdiag.com/en/actdiag/examples.html

ChatGPT#

Testing some chatgpt-generated ones:

Graphviz#

Here’s an example using graphviz (more here: https://graphviz.org/gallery/ )

Digraph#

digraph PhiloDilemma { layout=neato node [shape=box]; bec3; rel3; bec2; rel2; acq2; acq3; bec1; rel1; acq1; node [shape=circle,fixedsize=true,width=0.9]; hu3; th3; ri3; ea3; hu2; th2; ri2; ea2; hu1; th1; ri1; ea1; ri3->acq2; ri3->acq3; hu3->acq3; bec3->hu3; th3->bec3; rel3->th3; rel3->ri3; ea3->rel3; acq3->ea3; ri2->acq1; ri2->acq2; hu2->acq2; bec2->hu2; th2->bec2; rel2->th2; rel2->ri2; ea2->rel2; acq2->ea2; ri1->acq3; ri1->acq1; hu1->acq1; bec1->hu1; th1->bec1; rel1->th1; rel1->ri1; ea1->rel1; acq1->ea1; overlap=false label="PetriNet Model PhiloDilemma\nExtracted from ConceptBase and layed out by Graphviz " fontsize=12; }

Process Graph#

graph G { layout=neato run -- intr; intr -- runbl; runbl -- run; run -- kernel; kernel -- zombie; kernel -- sleep; kernel -- runmem; sleep -- swap; swap -- runswap; runswap -- new; runswap -- runmem; new -- runmem; sleep -- runmem; }