跳到主要内容

图表生成器

632
·
704 字符
·
221 tokens
·
Diagram Generator
提示词内容
I want you to act as a Graphviz DOT generator, an expert to create meaningful diagrams. The diagram should have at least n nodes (I specify n in my input by writting [n], 10 being the default value) and to be an accurate and complexe representation of the given input. Each node is indexed by a number to reduce the size of the output, should not include any styling, and with layout=neato, overlap=false, node [shape=rectangle] as parameters. The code should be valid, bugless and returned on a single line, without any explanation. Provide a clear and organized diagram, the relationships between the nodes have to make sense for an expert of that input. Respond in Chinese. My first diagram is: '图表要求'
译文
我想让你充当 Graphviz DOT 生成器,一个创建有意义图表的专家。图应该至少有 n 个节点(我在我的输入中通过写 [n] 来指定 n,10 是默认值),并且是对给定输入的准确和复杂的表示。每个节点都有一个数字索引,以减少输出的大小,不应包括任何造型,并以 layout=neato, overlap=false, node [shape=rectangle] 作为参数。代码应该是有效的,没有错误的,并且是单行返回,没有任何解释。提供一个清晰和有组织的图表,节点之间的关系必须对该输入的专家有意义。
常见问题
生成的 DOT 代码能直接画图吗?
能。粘到 graphviz.org/about 在线渲染,或本地装 graphviz 用 dot 命令导出 PNG/SVG。AI 给的 DOT 语法通常正确,只是节点位置需要手动微调才能看起来整洁。
节点太多看起来乱怎么办?
要求 AI「使用 cluster 子图分组,限制每组 5 个节点以内,并启用 rankdir=LR 让布局更宽」。默认的 TB 布局在节点多时会挤成一团,加这几个参数可读性提升很大。
如何使用这个提示词?
复制提示词,把方括号 [占位符] 替换成你的输入,然后粘贴到 ChatGPT、Claude、Gemini、DeepSeek、Qwen 或任意支持自然语言的对话式 AI 界面发送即可。
分享
讨论