pombreda / pydot

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

PyDot: cannot enter special charactes as ':' ',' '#' etc in node or label name #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a diagram using pydot.
2. put one of the nodes name as 'Testnode:###@'
3. or put labels on arrow as 'testlabel:###,@'

What is the expected output? What do you see instead?
It Should consider the name as a string and should be shown on the node/label

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

Please provide any additional information below.

Original issue reported on code.google.com by jmnar...@gmail.com on 20 Aug 2010 at 10:00

GoogleCodeExporter commented 9 years ago
Anyone Please !

Original comment by jmnar...@gmail.com on 23 Aug 2010 at 6:37

GoogleCodeExporter commented 9 years ago
I've got a possible solution in the works.  Stay tuned.

Original comment by gdwar...@gmail.com on 15 Oct 2010 at 4:20

GoogleCodeExporter commented 9 years ago
As with issue 28: The problem with the colon in Node names is that Graphviz 
will use them to specify a port where to attach edges, it's a Graphviz 
artifact. The way pydot supports them is to allow them in names, if you wish to 
simply have colon characters in the name simply add quotes to the string.

For instance: (note the double quotes in the actual string):

node = pydot.Node('"Testnode:###@"')

print node.get_name()
> '"Testnode:###@"'

Original comment by ero.carr...@gmail.com on 30 Oct 2010 at 11:29