Experimente ################################# .. blockdiag:: :caption: Beispiel blockdiag blockdiag { A -> B -> C -> D; A -> E -> F -> G; } .. actdiag:: :caption: Beispiel actdiag :scale: 100% actdiag { Indikation [label = "Indikation", shape=diamond]; MatHerrichten [label = "Material herrichten"]; MatKontrolle [label = "Material Kontrolle"]; PraeOx [label = "Präoxygenieren"]; MedSpritzen [label = "Medikamente spritzen"]; KommandoIntubation [label = "Kommando \n\"Intubation\"", width = 200, shape=flowchart.input]; LaryngoskopZureichen [label = "Laryngoskop zureichen\nin die LINKE Hand", width = 200]; KommandoTubus [label = "Kommando \n\"Tubus\"", shape=flowchart.input, width=200]; TubusZureichen [label = "Tubus zureichen"]; TubusEinfuehren [label = "Tubus einfuehren\nbis Cuff mitte Stimmritze", width = 200]; KommandoMandrinEx [label = "Kommando \n\"Führungsdraht entfernen\"", shape=flowchart.input, width=200]; MandrinEx [label = "Führungsdraht entfernen"]; TubusPositionieren [label = "Tubus positionieren"]; KommandoCuffen [label = "Kommando \n\"Cuffen\"", shape=flowchart.input]; Cuffen [label = "Cuffen"]; fixieren [label = "fixieren"]; Kontrolle [label = "Kontrolle:\nabhören\n Kapnometrie\n visuell", height=80]; Indikation -> MatHerrichten -> MatKontrolle -> MedSpritzen Indikation -> PraeOx -> MedSpritzen MedSpritzen -> KommandoIntubation -> LaryngoskopZureichen -> KommandoTubus -> TubusZureichen -> TubusEinfuehren -> KommandoMandrinEx -> MandrinEx -> TubusPositionieren -> KommandoCuffen -> Cuffen -> Kontrolle -> fixieren ; lane Intubator { width = 200; label = "Intubator"; Indikation ; PraeOx; MedSpritzen; KommandoIntubation ; KommandoTubus ; TubusEinfuehren ; KommandoMandrinEx; TubusPositionieren; KommandoCuffen; Kontrolle; fixieren; } lane Assistent { width = 200; MatHerrichten; MatKontrolle; LaryngoskopZureichen; TubusZureichen; MandrinEx; Cuffen; } } .. seqdiag:: :caption: Beispiel seqdiag seqdiag { // normal edge and doted edge A -> B [label = "normal edge"]; B --> C [label = "dotted edge"]; B <-- C [label = "return dotted edge"]; A <- B [label = "return edge"]; // asynchronus edge A ->> B [label = "asynchronus edge"]; B -->> C [label = "asynchronus dotted edge"]; B <<-- C [label = "return asynchronus doted edge"]; A <<- B [label = "return asynchronus edge"]; // self referenced edge A -> A [label = "self reference edge"]; } .. graphviz:: :caption: Quelltextordner digraph { "Indikation" [ shape=diamond, color=black, style=filled, fillcolor=grey, fontcolor=black, fontname="Source Sans Pro", label="Indikation", ]; "HDM1" [ shape=folder, color=mediumblue, style=filled, fillcolor=mediumblue, fontcolor=white, fontname="Source Sans Pro", label="HDM", ]; "HDM2" [ shape=folder, color=mediumblue, style=filled, fillcolor=mediumblue, fontcolor=white, fontname="Source Sans Pro", label="HDM", ]; "Analyse" [ shape=diamond, color="#ccffcc", style=filled, fillcolor="#ccffcc", fontcolor=white, fontname="Source Sans Pro", ]; "schockbar" [ shape=note, color=coral, style=filled, fillcolor=coral, fontcolor=white, fontname="Source Sans Pro", label="schockbarer Rhythmus", ]; "Schock" [ shape=box, color=red, fontcolor=red, fontname="Source Sans Pro", label="Schock", ]; "nichtschockbar" [ shape=box, color=coral, style=filled, fillcolor=coral, fontcolor=white, fontname="Source Sans Pro", label="nicht-schockbarer Rhythmus", ]; Meet [shape = circle, label=""]; Indikation -> HDM1 -> Analyse; Analyse -> nichtschockbar -> Meet; Analyse -> schockbar -> Schock -> Meet; Meet -> HDM2-> Analyse [label=" 2 min"]; } .. actdiag:: :caption: Beispiel actdiag :scale: 100% actdiag { "Indikation" [label = "Indikation", shape=diamond]; "HDM1" [label = "HDM"]; "Analyse" "schockbar" "Schock" "nichtschockbar" "HDM2" Indikation -> HDM1 -> Analyse; Analyse -> schockbar -> Schock -> HDM2; Analyse -> nichtschockbar -> HDM2; lane schockbar { width = 200; label = "schockbar"; schockbar; Schock; } lane x { width = 200; label = "a"; Indikation ; HDM1; Analyse; HDM2; } lane nsb { width = 200; label = "nicht schockbar"; nichtschockbar; } }