Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GoogleCodeExporter opened this issue Apr 13, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

Anyone Please !

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

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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

  • Changed state: Duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant