How do I set the resolution when converting dot files (graphviz) to images?

Alexandru picture Alexandru · Aug 17, 2009 · Viewed 27.6k times · Source

I tried

$ dot -Tpng rel_graph.gv > rel_graph.png

but the resulting image has a very low quality.

Answer

MarcP picture MarcP · Oct 12, 2010

Use the dpi attribute.

Example:

graph G { 
  graph [ dpi = 300 ]; 
  /* The rest of your graph here. */ 
}