emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] How to place things differently in dot


From: Cecil Westerhof
Subject: [O] How to place things differently in dot
Date: Thu, 26 Mar 2015 13:14:34 +0100

I was asked to make a diagram and was thinking that dot in org-mode could be a good idea.

I got reasonably fast the following:
​    #+BEGIN_SRC dot :file test.svg :cmdline -Kdot -Tsvg
    graph {
      utilities [label = "Utility's"]
   
      A
      B
      C
   
      D
      E
      F [shape = rectangle]
   
   
      subgraph cluster_resources {
        color=blue
        resources [label = "Resources"]
      }
   
      G
      H
      I
   
      K
      subgraph cluster_ta {
        color=blue
        {rank = same; L, M}
        L
        M
      }
   
      {rank = same; D, E, F}
   
   
      A -- F
      B -- F
      C -- F
      A -- D
   
      F -- E
   
      F -- K
      F -- G
      F -- H
      F -- I
   
   
      K -- L
      K -- M
      L -- M
    }
    #+END_SRC

This is a good deal in the right direction, but a few things should be different:
​- E should be left of F
- resource should go to the second 'line' without losing its border
- K should be a 'line' lower

Are those things possible?

As attachment how it looks now.

--
Cecil Westerhof

Attachment: test.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]