请选择 进入手机版 | 继续访问电脑版
楼主: oliyiyi
822 1

Write text on arrow conneting two nodes in TikZ [推广有奖]

版主

泰斗

0%

还不是VIP/贵宾

-

TA的文库  其他...

计量文库

威望
7
论坛币
271951 个
通用积分
31269.3519
学术水平
1435 点
热心指数
1554 点
信用等级
1345 点
经验
383775 点
帖子
9598
精华
66
在线时间
5468 小时
注册时间
2007-5-21
最后登录
2024-4-18

初级学术勋章 初级热心勋章 初级信用勋章 中级信用勋章 中级学术勋章 中级热心勋章 高级热心勋章 高级学术勋章 高级信用勋章 特级热心勋章 特级学术勋章 特级信用勋章

oliyiyi 发表于 2016-10-17 10:50:12 |显示全部楼层 |坛友微信交流群

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

[backcolor=rgba(255, 255, 255, 0.529412)]I'm trying to create a simple flowchart. The final step would be to connect the first and last nodes with an arrow and write some text on the arrow.

[backcolor=rgba(255, 255, 255, 0.529412)]I'm struggling with getting the text on the arrow.

[backcolor=rgba(255, 255, 255, 0.529412)]Here's what I have done:

  1. \begin{tikzpicture}[node distance = 2cm, auto]
  2.     \node [block] (init) {A};
  3.     \node [block] (init2) {A};
  4.    \node [block, below of=init] (init3) {B};
  5.    \node [block, below of=init3] (init4) {C};

  6.     \path [line] (init) -- (init2);
  7.     \path [line] (init2) -- (init3);
  8.     \path [line] (init3) -- (init4);
  9.    \draw [->] (init4.west) -| ++(-1,0) |- (init.west);


  10. \end{tikzpicture}
复制代码

[backcolor=rgba(255, 255, 255, 0.529412)]The last line: \draw [->] (init4.west) -| ++(-1,0) |- (init.west); connects the two nodes. However, I am unable to add text on this arrow.


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:write Nodes arrow Node Text

已有 1 人评分学术水平 热心指数 信用等级 收起 理由
janyiyi + 3 + 3 + 3 精彩帖子

总评分: 学术水平 + 3  热心指数 + 3  信用等级 + 3   查看全部评分

缺少币币的网友请访问有奖回帖集合
https://bbs.pinggu.org/thread-3990750-1-1.html
Kamize 学生认证  发表于 2016-10-17 21:07:23 来自手机 |显示全部楼层 |坛友微信交流群
oliyiyi 发表于 2016-10-17 10:50
I'm trying to create a simple flowchart. The final step would be to connect the first and last nodes ...
谢谢楼主分享

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-19 09:50