view · edit · sidebar · attach · print · history

Using graphviz and yardoc

  1. emerge graphviz
  2. gem install yard
  3. run "yardoc" in your dir
  4. Apply these changes: http://url.ba/5gdh
  5. yard graph --protected --full --dependencies
  6. dot -T jpeg odba.dot -o /tmp/odba.jpeg

If your graphviz graphs get to big horizontally, then try this:

 https://mailman.research.att.com/pipermail/graphviz-interest/2006q4/003986.html

Setting the options to scale down an image

 graph [rankdir=BT rank=sink outputMode=nodesfirst packMode="graph" splines=true size="10,10"];

or

 neato -Gsize=10,10 ...

or

 dot -Gsize=10,10 -T jpeg oddborg.dot -o /tmp/oddborg.jpeg

Making a graph of a single file

 https://github.com/glejeune/Ruby-Graphviz/
view · edit · sidebar · attach · print · history
Page last modified on February 21, 2011, at 08:39 AM