Number: 486
Title: Specifying the size seems no effect on the layout
Submitter: Venkata Suresh Munagala
Date: Mon Jul 5 20:58:03 2004
Subsys: Dot
Version:
System: x86-Windows-
Severity: major
Problem:
Hi,

I want the Graphviz layout to be exactly in the size of (6.0,6.0) with ratio set to 1.0. But the output that i get has the layout is (5.542, 4.264).

Here is a second input and output.

Please let me know, whether i am specifying the attributes incorrectly or the bug is in graphViz.

Thank you Suresh

The GraphViz library rules. Thank you for providing such a nice programme.
Input file: b486.dot
Output file: b486.txt
Comments:
[suresh] We are accessing the GraphViz functionality through the Win32/COM wrapper. The version of the COM wrapper is ver1.02.25s. We are using the GraphViz to get the coordinates of the nodes. Once we get these coordinates, we draw nodes and links ourself with the help of the .NET GDI+. I want the GraphViz to provide me the LayOut always in the fixed aspect ratio in the given size, but unfortunately what ever options i specify to the ToPlain() function in the DOTClass, i am not getting the layout in the size, i specify or aspect ratio. Please let me know, if i am doing some thing wrong or is there any thing else, that i need to take care of. I am providing the input .dot file and the output string that i get from the ToPlain() function.

In the input.dot file, i am specifying the size = "6,6"; ratio = fill options for the graph but the output i am getting from the GraphViz contains the size as 8.889, 9.222 . I want the graph layout to be in the specific size, no matter, how many nodes and links it contains. If this is not possible, i want to atleast have the graph Layout to be in specific aspect ratio.

GraphViz really helped us a lot in our product. We got unbeleivable response from our users. I really want to thank you for providing such as a nice library.

[erg] The user most have an old, buggy version. The current version of dot -Tplain does honor the aspect ratio plus provides a scale factor to get the final coordinates. The latter arises because we let the rendering engine handle things like scaling.
Owner: erg
Status: Inactive