3歩あるいたら物を忘れてしまうぐらい物忘れの激しい管理人が触れた技術をメモしておくブログ
[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。
$ brew install graphviz
==> Installing dependencies for graphviz: libpng
==> Installing graphviz dependency: libpng
==> Downloading https://homebrew.bintray.com/bottles/libpng-1.6.21.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libpng-1.6.21.yosemite.bottle.tar.gz
/usr/local/Cellar/libpng/1.6.21: 17 files, 1.2M
==> Installing graphviz
==> Downloading https://homebrew.bintray.com/bottles/graphviz-2.38.0.yosemite.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring graphviz-2.38.0.yosemite.bottle.1.tar.gz
/usr/local/Cellar/graphviz/2.38.0: 469 files, 67M
|
$ cat samples/sample1.dot
digraph sample {
alpha -> beta;
alpha -> gamma;
beta -> delta;
}
|
$ dot -Tpng samples/sample1.dot -o sample1.png |
$ dot -v
dot - graphviz version 2.38.0 (20140413.2041)
libdir = "/usr/local/Cellar/graphviz/2.38.0/lib/graphviz"
Activated plugin library: libgvplugin_dot_layout.6.dylib
Using layout: dot:dot_layout
Activated plugin library: libgvplugin_core.6.dylib
Using render: dot:core
Using device: dot:dot:core
The plugin configuration file:
/usr/local/Cellar/graphviz/2.38.0/lib/graphviz/config6
was successfully loaded.
render : dot fig map pic pov ps quartz svg tk vml xdot
layout : circo dot fdp neato nop nop1 nop2 osage patchwork sfdp twopi
textlayout : textlayout
device : bmp canon cgimage cmap cmapx cmapx_np dot eps exr fig gif gv icns ico imap imap_np ismap jp2 jpe jpeg jpg pct pdf pic pict plain plain-ext png pov ps ps2 psd sgi svg svgz tga tif tiff tk vml vmlz xdot xdot1.2 xdot1.4
loadimage : (lib) bmp eps gif jpe jpeg jpg pdf png ps svg
|
server [label=<<table border="0"><tr><td><img src="hoge.png"/></td></tr><tr><td>server</td></tr></table>>]; |