Multiple Node Styles

1.9k views Asked by At

According to this page: http://www.graphviz.org/content/node-shapes Graphviz supports multiple style per Node.

I'm trying to have a rounded box with a red filling. On the page linked, multiple styles are delimited by a comma, so I tried this in Python using pydot:

graph.add_node( pydot.Node( 'external', shape='box', style='rounded,filled', fillcolor='red' ) )

But that throws and error. I also tried delimiting with a space, or passing a list of styles. Couldn't get it to work

Has anyone managed to apply multiple styles to a node?

1

There are 1 answers

0
Paul Druzhkov On

Just add double quotes like this:

style='"rounded,filled"'