码迷,mamicode.com
首页 > 其他好文 > 详细

一个画图程序(特别适合程序员)

时间:2016-12-18 01:32:55      阅读:349      评论:0      收藏:0      [点我收藏+]

标签:otto   流程图   span   下载   title   graphviz   dir   order   document   

一个画图神器,以后快速画图又有了一个新武器

图一:

技术分享

代码:

digraph directed { 
    edge [fontname=NSimSun]; 
    {
        a -> b; 
        a -> c -> d [color=red,penwidth=3.0]; 
        c -> e;
        a -> d[color=blue,label = "rank增加"];
    }
}

 

 

图二:

技术分享

graph hmc_graph{
 "hmc01" -- "test520"
 "test520" -- "lpar2"
 "test520" -- "lpar3"
 "hmc01" -- "test570"
 "test570" -- "aixtest01"
 "test570" -- "aixtest02"
 "test570" -- "aixtest03"
 "hmc01" -- "test510"
 "test510" -- "lpar1"
}

 

使用前需下载Graphviz,此为官网:http://www.graphviz.org/Documentation.php

下载下来只需像上面一样,几行简单的代码就可以搞出一个效果图来(你听的没错,是写代码,不是用手画),程序员专用,尤其适合写程序流程图,逻辑图,这些画起来要好久,实际逻辑很简单的东西。

一个画图程序(特别适合程序员)

标签:otto   流程图   span   下载   title   graphviz   dir   order   document   

原文地址:http://www.cnblogs.com/luhouxiang/p/6193371.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!