Does anyone know how to put newline in the label of the node? \n is not working - instead some new nodes appear.
Shape nodes Holds an object's geometry attributes or attributes other than the object's transform node attributes. A shape node is the child of a transform node. A transform node has only one shape node.
Braille is a system of touch reading and writing for blind persons in which raised dots represent the letters of the alphabet. It also contains equivalents for punctuation marks and provides symbols to show letter groupings. Braille is read by moving the hand or hands from left to right along each line.
This works for me as documented:
digraph {
n[label="two\nlines"]
"on\nthree\nlines"
}
Either put in in a label attribute (my preference), or use it as the node's name, but always enclose it with double quotes.
Try "\\n
" that works: dot.node('test', label="line1\\nline2")
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With