Is there any way to provide additional Dot parameters before rendering?

0 votes
asked Feb 15, 2019 in Question / help by Adam
Assuming that I would like to change the way how Dot will generate the diagram piped from plantuml and add some switches during run time, is there any config file or special pragma for this? So for example I would like plantuml instead of running "dot.exe", run it as "dot.exe -Gsplines=true -Goverlap=scale" etc? that would give advanced users some more freedom to tune data generated by plantuml and experiment with Dot? Does it make any sense?

1 Answer

0 votes
answered Feb 15, 2019 by plantuml (295,000 points)

It's not very documented, but you can use the following directive:

!pragma defaultLabeldistance 2.1
!pragma defaultLabelangle 30
!pragma labeldistance 0.5
!pragma aspect 2,5
!pragma ratio 0.66
!pragma graphattributes overlap=false;
!pragma graphattributes overlap=false;splines=true;


Tell us if some settings are missing, we will add them to the list.

commented Feb 18, 2019 by anonymous
Looks good. What if I would like to run the diagram via other Graphviz engine, like neato or sfdp, can this be configured by a pragma as well?
commented Jan 9 by David
Same question.  I'm a long-time GraphViz user (think unix command-lines and nroff/troff) and lots of the GraphViz gallery relies on other engines in the GraphViz suite.  Is there a pragma to change the engine?
...