Difference between revisions of "Diagram"
Line 10: | Line 10: | ||
=Sample Diagrams= | =Sample Diagrams= | ||
The Diagrams package supports at least two flavors of diagrams | |||
==GraphViz== | |||
<graphviz renderer="neato" caption="Graph for example no. 2"> | <graphviz renderer="neato" caption="Graph for example no. 2"> | ||
graph example2 { | graph example2 { | ||
Line 28: | Line 29: | ||
} | } | ||
</graphviz> | </graphviz> | ||
==UML== | |||
<uml> | |||
skinparam usecaseBackgroundColor DarkSeaGreen | |||
skinparam usecaseArrowColor Olive | |||
skinparam actorBorderColor black | |||
skinparam usecaseBorderColor DarkSlateGray | |||
skinparam usecaseActorFontName Courier | |||
User << Human >> | |||
:Main Database: as MySql << Application >> | |||
(Start) << One Shot >> | |||
(Use the application) as (Use) << Main >> | |||
User -> (Start) | |||
User --> (Use) | |||
MySql --> (Use) | |||
</uml> | |||
<noinclude> | <noinclude> |
Revision as of 09:38, 8 September 2021
Diagrams are pictorial representations of ideas. It associate semantic meanings to graphical artifacts.
Useful reading materials
There are some books on that directly relates to this concept:
On PKC, one may use simple textual data to generate diagrams, using the Diagrams extension.
Sample Diagrams
The Diagrams package supports at least two flavors of diagrams
GraphViz
<graphviz renderer="neato" caption="Graph for example no. 2"> graph example2 {
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;
} </graphviz>
UML
<uml> skinparam usecaseBackgroundColor DarkSeaGreen skinparam usecaseArrowColor Olive skinparam actorBorderColor black skinparam usecaseBorderColor DarkSlateGray skinparam usecaseActorFontName Courier
User << Human >>
- Main Database: as MySql << Application >>
(Start) << One Shot >> (Use the application) as (Use) << Main >>
User -> (Start) User --> (Use) MySql --> (Use) </uml>