graphviz dpi

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

graphviz dpi

metro
Hi,

As graphviz has an issue in SVG generation (it generates an illegal "transparent" stroke type), I am currently stuck using PNG for graphviz.

Unfortunately, the PNG output is very lowres.

Is there a way in Asciidoctor-diagram to pass the -Gdpi option to graphviz?

Thanks,

MT
--
Reply | Threaded
Open this post in threaded view
|

Re: graphviz dpi

metro
Answering my own question: you can define attributes in the DOT language as shown below.

MT
--
[graphviz, target=graphviz-example, format=png]
....
graph ethane {
  dpi=300
  subgraph {
    C_0 -- H_0 [type=s];
    C_0 -- H_1 [type=s];
    C_0 -- H_2 [type=s];
    C_0 -- C_1 [type=s];
    C_1 -- H_3 [type=s];
    C_1 -- H_4 [type=s];
    C_1 -- H_5 [type=s];
    }
}
....