graphviz好用的程序员画图工具

本文仅用于记述我自己的一点使用,如果有需要请百度其他文章入门

digraph G{
node[shape=record,width=.1,height=.1,fontname="yahei",fontsize=14]
a[label="你好"]
}




设置字体,可以兼容中文,微软的雅黑比较漂亮,

----------------------------------------

digraph G{

node[shape=record,width=.1,height=.1,fontname="yahei"]
rankdir = LR; 

node1[label = "<title>1 if first tag byte has next byte|  { {8| }|{7| }|{6| }|{5|1}|{4|1}|{3|1}|{2|1}|{1|1}}"];

node2[label = "<title>2 if next tag byte has next byte|  { {8|1}|{7| }|{6| }|{5| }|{4| }|{3| }|{2| }|{1| }}"];

node3[label = "<title>3 if this tlv is a constract shows|  { {8| }|{7| }|{6|1}|{5| }|{4| }|{3| }|{2| }|{1| }}"];

}




设置数据结构


------------------------------------------------------------------------

digraph G{
node[shape=record,width=.1,height=.1,fontname="yahei"]
//rankdir = LR; 

node1[label = "<title>1 if first tag byte has next byte|  { {8| }|{7| }|{6| }|{5|1}|{4|1}|{3|1}|{2|1}|{1|1}}"];

node2[label = "<title>2 if next tag byte has next byte|  { {8|1}|{7| }|{6| }|{5| }|{4| }|{3| }|{2| }|{1| }}"];

node3[label = "<title>3 if this tlv is a constract shows|  { {8| }|{7| }|{6|1}|{5| }|{4| }|{3| }|{2| }|{1| }}"];

}


排布方向LR,left to right


-----------------------------------------------------




可以通过代码构造整个流程,不过这种方式构造不太好


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值