Difference between revisions of "Diagram"

From PKC
Jump to navigation Jump to search
(Created page with "Diagrams are pictorial representations of ideas. On PKC, one may use simple textual data to generate diagrams, using the Diagrams extension.")
 
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
Diagrams are pictorial representations of ideas.
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]]:
* [[Book/Diagrammatic Reasoning|Diagrammatic Reasoning:Cognitive and Computational Perspectives]]
* [[Book/Picturing Quantum Processes|Picturing Quantum Processes]]


On [[PKC]], one may use simple textual data to generate diagrams, using the [[MW:extension:Diagrams|Diagrams]] extension.
On [[PKC]], one may use simple textual data to generate diagrams, using the [[MW:extension:Diagrams|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>
==mscgen==
<mscgen caption="Message sequence chart for example no. 4">
msc {
  a,b,c;
  a->b  [label="ab()"];
  b->c  [label="bc(TRUE)"];
  c=>c  [label="process(1)"];
  c=>c  [label="process(2)"];
  ...;
  c=>c  [label="process(n)"];
  c=>c  [label="process(END)"];
  a<<=c [label="callback()"];
  ---  [label="If more to run", ID="*"];
  a->a  [label="next()"];
  a->c  [label="ac()"];
  b<-c  [label="cb(TRUE)"];
  b->b  [label="stalled(...)"];
  a<-b  [label="ab() = FALSE"];
}
</mscgen>
<noinclude>
=References=
<references/>
==Related Pages==
* [[logically related::Category Theory]]
* [[logically related::Meta physics]]
* [[logically related::Quantum physics]]
</noinclude>

Latest revision as of 09:40, 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>

mscgen

<mscgen caption="Message sequence chart for example no. 4"> msc {

 a,b,c;
 a->b  [label="ab()"];
 b->c  [label="bc(TRUE)"];
 c=>c  [label="process(1)"];
 c=>c  [label="process(2)"];
 ...;
 c=>c  [label="process(n)"];
 c=>c  [label="process(END)"];
 a<<=c [label="callback()"];
 ---   [label="If more to run", ID="*"];
 a->a  [label="next()"];
 a->c  [label="ac()"];
 b<-c  [label="cb(TRUE)"];
 b->b  [label="stalled(...)"];
 a<-b  [label="ab() = FALSE"];

} </mscgen>


References

Related Pages