代码之家  ›  专栏  ›  技术社区  ›  haolee

Graphviz标签无法将文本左对齐

  •  0
  • haolee  · 技术社区  · 7 年前

    我想用 labeljust = l n . 但是,它不起作用。

    digraph test {
        labeljust = l;
        node [shape = record]
        n [label="{aaa|bbbbbbb|ccc}"]
    }
    

    使用 \l labeljust . 如何让它工作?非常感谢!

    0 回复  |  直到 7 年前
        1
  •  1
  •   Ynjxsjmh    7 年前

    如果你不介意,你可以用 HTML-like-labels

    digraph H {
    
      aHtmlTable [
       shape=plaintext
       color=blue      // The color of the border of the table
       label=<
    
         <table border="1" cellborder="1" cellspacing="0">
           <tr><td align="left">col 1</td></tr>
           <tr><td align="left">COL 2</td></tr>
         </table>
    
      >];
    
    }
    

    enter image description here

    推荐文章