Forgot password?
 Create new account
View 211|Reply 2

[TikZ] graphs 如何创建文本相同的节点?

[Copy link]

3147

Threads

8493

Posts

610K

Credits

Credits
66163
QQ

Show all posts

hbghlyj Posted at 2022-8-25 11:58:21 |Read mode
用tree
\tikz \node {root}
child {node {left}}
child {node {right}
  child {node {child}}
  child {node {child}}
};
image-147[1].png
用graphs
\usetikzlibrary {graphs}
\tikz \graph [grow down, branch right] {
  root -> { left, right -> {child, child} }
};
image-150[1].png
两个节点的文本都是child, 被合并了. 如何绘制两个“文本是child的节点” ?

701

Threads

110K

Posts

910K

Credits

Credits
94177
QQ

Show all posts

kuing Posted at 2022-8-25 14:28:17
明显没认真看 tikz 手册,后面都有讲,看 /tikz/graphs/fresh nodes 那段,此帖多余。

3147

Threads

8493

Posts

610K

Credits

Credits
66163
QQ

Show all posts

 Author| hbghlyj Posted at 2023-5-6 18:54:04

我会了

手机版Mobile version|Leisure Math Forum

2025-4-20 22:28 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list