Forgot password?
 Register account
View 372|Reply 2

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

[Copy link]

3153

Threads

7906

Posts

610K

Credits

Credits
64096
QQ

Show all posts

hbghlyj Posted 2022-8-25 11:58 |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的节点” ?

682

Threads

110K

Posts

910K

Credits

Credits
90973
QQ

Show all posts

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

3153

Threads

7906

Posts

610K

Credits

Credits
64096
QQ

Show all posts

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

我会了

Mobile version|Discuz Math Forum

2025-6-5 01:54 GMT+8

Powered by Discuz!

× Quick Reply To Top Edit