Text wrapping with dot (graphviz)

前端 未结 2 1634
一整个雨季
一整个雨季 2021-02-05 00:42

I used the code below to create a graphic using dot (graphviz).

digraph
{
  node [color=Blue,shape=box]

  1.1 [label=\"Frequency of t exceeds upper threshold\"]         


        
2条回答
  •  误落风尘
    2021-02-05 01:08

    graphviz doesn't support automatic line breaks. You have to put the \n in manually.

    you can set a width and a height to a node and define it as fixedsized - this will limit the size of the node and draw only as much text as fits into the node

提交回复
热议问题