如何在Dot中绘制更好看的图表(A4尺寸)?

发布于 2024-08-27 01:24:27 字数 446 浏览 4 评论 0原文

我有一个项目,几个小时后就要到期,我还有一份报告要写……这个项目与 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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浊酒尽余欢 2024-09-03 01:24:27

有很多选项可以帮助解决这个问题。将 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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文