[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Process diagrams with dot and some glue using Org-mode
From: |
Karl Voit |
Subject: |
Re: [O] Process diagrams with dot and some glue using Org-mode |
Date: |
Wed, 26 Jun 2013 17:41:53 +0200 |
User-agent: |
slrn/0.9.9 (Linux) |
Sorry, minor mistake: I could not find out why dot is not able to
mix directed and not directed graphs in one diagram. Therefore I had
to replace th "-" in the node table with ">" and the corresponding
results as well:
> #+name: foobar-node-table
> | *node* | *label* | *shape* | *fillcolor* |
> |------------+----------------+---------+-------------|
> | S_start | start | ellipse | green |
> | S_fill | fill form | | |
> | S_send | send form | | |
> | S_complete | form complete? | diamond | yellow |
> | S_do | do task | | red |
> | S_end | end | ellipse | |
>
> #+name: foobar-graph-table
> | | S_start | S_fill | S_send | S_complete | S_do | S_end |
> | S_start | | > | | | | |
> | S_fill | | | > | | | |
> | S_send | | | | > | | |
> | S_complete | | N> | | | Y> | |
> | S_do | | | | | | > |
> | S_end | | | | | | |
>
> #+BEGIN_SRC dot :file ~/test-dot.png :exports results
> digraph {
> //rankdir=LR;
> S_start [label ="start", shape = "ellipse", style=filled,
> fillcolor="green"];
> S_fill [label ="fill form", shape = "box"];
> S_send [label ="send form", shape = "box"];
> S_complete [label ="form complete?", shape = "diamond", style=filled,
> fillcolor="yellow"];
> S_do [label ="do task", shape = "box", style=filled, fillcolor="red"];
> S_end [label ="end", shape = "ellipse"];
> S_start -> S_fill;
> S_fill -> S_send;
> S_send -> S_complete;
> S_complete -> S_do [taillabel = "Y"];
> S_do -> S_end;
> S_complete -> S_fill [taillabel = "N"];
> }
> #+END_SRC
This results in a diagram as shown in: http://qr.cx/wEFr
--
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
> get Memacs from https://github.com/novoid/Memacs <
https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github
Re: [O] Process diagrams with dot and some glue using Org-mode, Thorsten Jolitz, 2013/06/26