'프로그램 사용/graphviz'에 해당되는 글 2건

  1. 2013.02.14 graphviz 출력 포맷
  2. 2013.01.14 graphviz / neato
graphviz에서 neato를 통해서 이미지로 변환이 가능한데, 예제는 다음과 같다.
$ neato -Tpng -O test.dot  

$ neato --help
neato: option -- unrecognized

Usage: neato [-Vv?] [-(GNE)name=val] [-(KTlso)<val>] <dot files>
(additional options for neato)    [-x] [-n<v>]
(additional options for fdp)      [-L(gO)] [-L(nUCT)<val>]
(additional options for memtest)  [-m]
(additional options for config)  [-cv]

 -V          - Print version and exit
 -v          - Enable verbose mode
 -Gname=val  - Set graph attribute 'name' to 'val'
 -Nname=val  - Set node attribute 'name' to 'val'
 -Ename=val  - Set edge attribute 'name' to 'val'
 -Tv         - Set output format to 'v'
 -Kv         - Set layout engine to 'v' (overrides default based on command name)
 -lv         - Use external library 'v'
 -ofile      - Write output to 'file'
 -O          - Automatically generate an output filename based on the input filename with a .'format' appended. (Causes all -ofile options to be ignored.)
 -P          - Internally generate a graph of the current plugins.
 -q[l]       - Set level of message suppression (=1)
 -s[v]       - Scale input by 'v' (=72)
 -y          - Invert y coordinate in output

 -n[v]       - No layout mode 'v' (=1)
 -x          - Reduce graph

 -Lg         - Don't use grid
 -LO         - Use old attractive force
 -Ln<i>      - Set number of iterations to i
 -LU<i>      - Set unscaled factor to i
 -LC<v>      - Set overlap expansion factor to v
 -LT[*]<v>   - Set temperature (temperature factor) to v

 -m          - Memory test (Observe no growth with top. Kill when done.)

 -c          - Configure plugins (Writes $prefix/lib/graphviz/config
               with available plugin information.  Needs write privilege.)
 -v          - Enable verbose mode 

위의 예제에서 -Tpng 가 출력 포맷인데 선택가능한 포맷의 목록은 다음과 같다.

Command-line
parameter
Format
bmp Windows Bitmap Format
canon 
dot 
xdot
DOT
cmap Client-side imagemap (deprecated)
eps Encapsulated PostScript
fig FIG
gd 
gd2
GD/GD2 formats
gif GIF
gtk GTK canvas
ico Icon Image File Format
imap 
cmapx
Server-side and client-side imagemaps
imap_np 
cmapx_np
Server-side and client-side imagemaps
ismap Server-side imagemap (deprecated)
jpg 
jpeg 
jpe
JPEG
pdf Portable Document Format (PDF)
plain 
plain-ext
Simple text format
png Portable Network Graphics format
ps PostScript
ps2 PostScript for PDF
svg 
svgz
Scalable Vector Graphics
tif 
tiff
TIFF (Tag Image File Format)
vml 
vmlz
Vector Markup Language (VML)
vrml VRML
wbmp Wireless BitMap format
webp Image format for the Web
xlib Xlib canvas

[링크 : http://www.graphviz.org/doc/info/output.html]
2013/01/14 - [프로그램 사용/graphviz] - graphviz / neato
 
심심해서(?) svg로도 출력을 해보니 잘 나오는데, UNIX 문서로 되어있는지 메모장으로는 깨져 보인다.
(SVG는 원래 XML 과 같은 Markup이니 메모장으로도 보임)

'프로그램 사용 > graphviz' 카테고리의 다른 글

graphviz / neato  (0) 2013.01.14
Posted by 구차니
svn 에서 revision tree를 그리던 녀석인데
lisp 공부하다 보니 이 라이브러리가 의외로 막강하고 단순하다는 사실에 깜짝 놀라는중

$ sudo apt-get install graphviz
$ cat test.dot
digraph {
        a->b;
}
$ neato -Tpng -O test.dot 

 
 

'프로그램 사용 > graphviz' 카테고리의 다른 글

graphviz 출력 포맷  (0) 2013.02.14
Posted by 구차니