我有一个项目,几个小时后就要到期,我还有一份报告要写……这个项目与 Dot 无关,但我们被要求用 Dot 绘制一个图表,我照做了。
它看起来像这样:
http://img683.imageshack.us/img683/9735/dotj.jpg
较长的箭头代表较小的权重,较短的箭头代表较大的权重。像这样提交我的项目没有任何问题,它做了应该做的事情,而这个 Dot 的东西只是一个额外的东西。
但我想让它变得漂亮,我只是现在没有时间了解 Dot。基本上,我想要的只是变得漂亮。也许,页面的高度更大,比如 A4 纸尺寸。并且让图表更多地显示在底部而不是侧面的所有内容。
我应该在 .dot 文件中添加什么内容才能使其看起来更好?
I have this project that it's due in a few hours and I still have a report to write... The project has nothing to do with Dot, but we were asked to draw a Graph with Dot, which I did.
It looks something like this:
http://img683.imageshack.us/img683/9735/dotj.jpg
The longer arrows represent smaller weights and the shorter arrows represent bigger weights. There isn't any problem in submitting my project like this, it does what's is supposed to do and this Dot thing is just an extra.
But I would like to make it pretty, I just don't have time to learn about Dot right now. Basically, all I want is make pretty. Perhaps, a bigger height for the page, like A4 paper size. And have the graph display more to the bottom than everything to the side.
What should I put on my .dot file to make it look better?
发布评论
评论(1)
有很多选项可以帮助解决这个问题。将
size
选项设置为 A4 纸的尺寸将是一个好的开始。 GraphViz 指南非常彻底地介绍了大多数相关选项(请参阅此 pdf 的第 14 页) ,它并不像看起来那么长,只有2或3页的相关信息)。There are a lot of options that can help to fix this problem. Setting the
size
option to be whatever the dimensions of an A4 sheet of paper are would be a good start. The GraphViz guide goes over most of the relevant options pretty thoroughly (see page 14 of this pdf, it's not as long as it looks, only 2 or 3 pages for the relevant info).