[unmarkierte Version] | [unmarkierte Version] |
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
Zeile 1: | Zeile 1: | ||
Mit der Erweiterung können Sie einfache grafische Abbildungen integrieren. | Mit der Erweiterung können Sie einfache grafische Abbildungen integrieren, ohne ein separates Grafikprogramm zu bemühen. | ||
<loop_area type="example"> | <loop_area type="example"> | ||
'''Code:''' | '''Code:''' | ||
<code><graphviz | <code><graphviz> | ||
digraph | digraph Beispiel1 {Hallo -> Welt!} | ||
</graphviz></code> | </graphviz></code> | ||
'''Ergebnis:''' | '''Ergebnis:''' | ||
<graphviz | <graphviz> | ||
digraph | digraph Beispiel1 { | ||
Hallo [shape=box]; | |||
Hallo -> "Welt!" [arrowhead=dot] | |||
} | |||
</graphviz> | </graphviz> | ||
</loop_area> | </loop_area> | ||
Was ist ein graph, node und edge? | |||
Graph, Knoten, Kante | |||
Wie beeinflusse ich die Richtung meines graph? | |||
[rankdir=TB/BT/LR/RL] | |||
Wie verändere ich die Form, Farbe und Fonts meiner nodes? | |||
node [fontname=Verdana,fontsize=12] | |||
node [shape=box/ellipse/circle/egg/plaintext/triangle/diamond, style=filled/rounded, color=green, fillcolor=grey, fontcolor=white] | |||
Wie beeinflusse ich die Beschreibung, Farbe und Pfeilspitze von edges? | |||
edge [arrowhead=normal/dot/odot/inv/none, color=blue] | |||
<loop_area type="example"> | |||
'''Code:''' | |||
<code><graphviz> digraph Beispiel2 { | |||
[bgcolor="transparent"] | |||
[rankdir=LR] | |||
Diamant | |||
[shape=diamond, | |||
style=filled, | |||
color=blue, | |||
fillcolor=midnightblue, | |||
fontcolor=white]; | |||
Ei | |||
[shape=egg, | |||
style=filled, | |||
color=beige, | |||
fillcolor=lightcoral]; | |||
Kasten | |||
[shape=box, | |||
style=filled, | |||
color=yellow, | |||
fillcolor=green]; | |||
Haus | |||
[shape=house, | |||
style=filled, | |||
color=gray, | |||
fillcolor=red]; | |||
Kreis | |||
[shape=circle, | |||
style=filled, | |||
color=green, | |||
fillcolor=lawngreen, | |||
fontcolor=linen]; | |||
Nix | |||
[shape=none, | |||
fontcolor=red]; | |||
Diamond -> Kasten -> | |||
Haus -> Kreis -> Nix [color=blue]; | |||
Standard -> Ei -> Haus [color=red]; | |||
</graphviz></code> | |||
'''Ergebnis:''' | |||
graphviz> digraph Beispiel2 { | |||
[bgcolor="transparent"] | |||
[rankdir=LR] | |||
Diamant | |||
[shape=diamond, | |||
style=filled, | |||
color=blue, | |||
fillcolor=midnightblue, | |||
fontcolor=white]; | |||
Ei | |||
[shape=egg, | |||
style=filled, | |||
color=beige, | |||
fillcolor=lightcoral]; | |||
Kasten | |||
[shape=box, | |||
style=filled, | |||
color=yellow, | |||
fillcolor=green]; | |||
Haus | |||
[shape=house, | |||
style=filled, | |||
color=gray, | |||
fillcolor=red]; | |||
Kreis | |||
[shape=circle, | |||
style=filled, | |||
color=green, | |||
fillcolor=lawngreen, | |||
fontcolor=linen]; | |||
Nix | |||
[shape=none, | |||
fontcolor=red]; | |||
Diamond -> Kasten -> | |||
Haus -> Kreis -> Nix [color=blue]; | |||
Standard -> Ei -> Haus [color=red]; | |||
</graphviz> | |||
</loop_area> | |||
Mit der Erweiterung können Sie einfache grafische Abbildungen integrieren, ohne ein separates Grafikprogramm zu bemühen.
Code:
<graphviz>
digraph Beispiel1 {Hallo -> Welt!}
</graphviz>
Ergebnis:
<graphviz> digraph Beispiel1 { Hallo [shape=box]; Hallo -> "Welt!" [arrowhead=dot] } </graphviz>
Was ist ein graph, node und edge? Graph, Knoten, Kante
Wie beeinflusse ich die Richtung meines graph? [rankdir=TB/BT/LR/RL]
Wie verändere ich die Form, Farbe und Fonts meiner nodes? node [fontname=Verdana,fontsize=12] node [shape=box/ellipse/circle/egg/plaintext/triangle/diamond, style=filled/rounded, color=green, fillcolor=grey, fontcolor=white]
Wie beeinflusse ich die Beschreibung, Farbe und Pfeilspitze von edges?
edge [arrowhead=normal/dot/odot/inv/none, color=blue]
Code:
<graphviz> digraph Beispiel2 {
[bgcolor="transparent"]
[rankdir=LR]
Diamant
[shape=diamond,
style=filled,
color=blue,
fillcolor=midnightblue,
fontcolor=white];
Ei
[shape=egg,
style=filled,
color=beige,
fillcolor=lightcoral];
Kasten
[shape=box,
style=filled,
color=yellow,
fillcolor=green];
Haus
[shape=house,
style=filled,
color=gray,
fillcolor=red];
Kreis
[shape=circle,
style=filled,
color=green,
fillcolor=lawngreen,
fontcolor=linen];
Nix
[shape=none,
fontcolor=red];
Diamond -> Kasten ->
Haus -> Kreis -> Nix [color=blue];
Standard -> Ei -> Haus [color=red];
</graphviz>
Ergebnis:
graphviz> digraph Beispiel2 {
[bgcolor="transparent"] [rankdir=LR]
Diamant [shape=diamond, style=filled, color=blue, fillcolor=midnightblue, fontcolor=white]; Ei [shape=egg, style=filled, color=beige, fillcolor=lightcoral]; Kasten [shape=box, style=filled, color=yellow, fillcolor=green]; Haus [shape=house, style=filled, color=gray, fillcolor=red]; Kreis [shape=circle, style=filled, color=green, fillcolor=lawngreen, fontcolor=linen]; Nix [shape=none, fontcolor=red];
Diamond -> Kasten -> Haus -> Kreis -> Nix [color=blue]; Standard -> Ei -> Haus [color=red];
</graphviz>
Detaillierte Informationen finden Sie unter
http://www.mediawiki.org/wiki/GraphViz
Eine gute Übersicht was mit der Erweiterung möglich ist finden Sie unter
http://wiki.zum.de/Hilfe:Graphviz
Es handelt sich hierbei um das Tutorial für LOOP1. Die Dokumentation für LOOP 2 wird gegenwärtig entwickelt: https://loop.eduloop.de. Viele Funktionen lassen sich ähnlich auch in LOOP2 verwenden.