Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple Node Styles

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?

like image 340
Juicy Avatar asked Apr 26 '26 07:04

Juicy


1 Answers

Just add double quotes like this:

style='"rounded,filled"'
like image 74
Paul Druzhkov Avatar answered Apr 28 '26 20:04

Paul Druzhkov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!