cudadog / pydot

Automatically exported from code.google.com/p/pydot
MIT License
0 stars 0 forks source link

pos attribute of nodes is ignored #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a graph with two positioned nodes as follows:

import pydot
graph = pydot.Dot(graph_type='graph')
node = pydot.Node('1')
node.set('pos', '1,1!')
graph.add_node(node)
node = pydot.Node('2')
node.set('pos', '2,2!')
graph.add_node(node)

graph.write_pdf('test.pdf', prog='neato')
graph.write_dot('test.dot')

What is the expected output? What do you see instead?

I expect to see a graph with nodes at the given coordinates.
Both files created do not respect the given coordinates.

What version of the product are you using? On what operating system?

python-pydot 1.0.2-1
linux

Original issue reported on code.google.com by thekswen...@gmail.com on 8 Jan 2013 at 10:07

GoogleCodeExporter commented 9 years ago
I've tried the code and the nodes seem to be rendered at the correct relative 
positions. The numerical coordinates output by neato are different from the 
ones specified, but relative to each other, the nodes seem to preserve the 
positions you specified. Nevertheless, pydot can't really do much more than 
passing the coordinates to Graphviz.

Original comment by ero.carr...@gmail.com on 16 Mar 2014 at 8:47