Forgot password
 Register account
View 289|Reply 2

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

[Copy link]

3211

Threads

7832

Posts

52

Reputation

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的节点” ?

673

Threads

110K

Posts

218

Reputation

Show all posts

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

3211

Threads

7832

Posts

52

Reputation

Show all posts

original poster hbghlyj posted 2023-5-6 18:54

我会了

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | Register account

$\LaTeX$ formula tutorial

Mobile version

2025-7-20 06:23 GMT+8

Powered by Discuz!

Processed in 0.021862 seconds, 48 queries