dot - Graphviz size/pagesize attribute seemingly ignored -


how 1 set size of output image in graphviz via dot format?

i'm using quickgraph , this technique render graphviz. in example below, i'm trying set maximum size of rendering. i've tried lots of variations on size (interpreted inches or pixels) , pagesize, both, each. doesn't matter. thing has effect resolution.

i can't tell if it's mode don't have set (i.e. mode = "fixedsize"), if it's bad syntax coming out of quickgraph or if it's bug in graphviz. doubt second , third heavily, i'm throwing out there.

digraph g { size="(20,20)",  resolution=72, bgcolor="#c6cfd532" 0 [fontcolor="#2f4f4fff", style=filled, label="resource a('a')", color="#9fae8dff", fillcolor="#c4d6b6ff"]; 1 [fontcolor="#2f4f4fff", style=filled, label="resource b('b')", color="#9fae8dff", fillcolor="#c4d6b6ff"]; 2 [fontcolor="#2f4f4fff", style=filled, label="resource c('c')", color="#9fae8dff", fillcolor="#c4d6b6ff"]; 3 [fontcolor="#2f4f4fff", style=filled, label="resource d('d')", color="#9fae8dff", fillcolor="#c4d6b6ff"]; 4 [fontcolor="#2f4f4fff", style=filled, label="resource e('e')", color="#9fae8dff", fillcolor="#c4d6b6ff"]; 5 [fontcolor="#2f4f4fff", style=filled, label="resource f('f')", color="#9fae8dff", fillcolor="#c4d6b6ff"]; 6 [fontcolor="#fffaf0ff", style=filled, label="resource g('g')", color="#762226ff", fillcolor="#93473bff"]; 7 [fontcolor="#2f4f4fff", style=filled, label="resource h('h')", color="#9fae8dff", fillcolor="#c4d6b6ff"]; 0 -> 1 []; 0 -> 2 []; 1 -> 2 []; 1 -> 3 []; 2 -> 3 []; 2 -> 4 []; 2 -> 5 []; 2 -> 6 []; 3 -> 7 []; 3 -> 1 []; 4 -> 5 []; 4 -> 6 []; 6 -> 4 []; } 

my dot considers size="(20,20)", syntax error preferring

size="20,20"; resolution=72; bgcolor="#c6cfd532"; 

and dot specification seems bear out.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -