How to create nice, bold, and bent arrows using Tikz?
How can a bold arrow be bent correctly?
I use the following code, but it looks horrible:
tikzset{%
thick arrow/.style={
-{Triangle[angle=90:1pt 1]},
line width=1.0cm,
draw=gray
}
}
tikzstyle{software} = [draw, text width=10em, minimum height=6em, text centered, line width=1pt, color=mydarkblue, fill=mylightgray, text=mydarkblue, font=normalsizebfsffamily]
centering
begin{tikzpicture}[node distance = 6em]
node[software](softA) {Software A};
node[software](softB)[left = of softA] {Software B};
draw [thick arrow] ($(softB.north)+(1,1em)$) [bend left=45] to ($(softA.north)+(-1,1em)$);
path [decorate,decoration={text along path,
text={|footnotesizebfseriessffamilycolor{white}|DATA A},text align=center}] ($(softB.north)+(1,1.5em)$) [bend left] to ($(softA.north)+(-1,1.5em)$);
draw [thick arrow] ($(softA.south)-(1,1em)$) [bend left=45] to ($(softB.south)+(1,-1em)$);
path [decorate,decoration={text along path, text={|footnotesizebfseriessffamilycolor{white}|DATA B},text align=center}] ($(softB.south)+(1,-1.5em)$) [bend right=45] to ($(softA.south)+(-1,-1.5em)$);
end{tikzpicture}
Here is what the code creates: the arrows are very strangely bent and don't look curved properly and uniformly.

tikz-arrows
add a comment |
How can a bold arrow be bent correctly?
I use the following code, but it looks horrible:
tikzset{%
thick arrow/.style={
-{Triangle[angle=90:1pt 1]},
line width=1.0cm,
draw=gray
}
}
tikzstyle{software} = [draw, text width=10em, minimum height=6em, text centered, line width=1pt, color=mydarkblue, fill=mylightgray, text=mydarkblue, font=normalsizebfsffamily]
centering
begin{tikzpicture}[node distance = 6em]
node[software](softA) {Software A};
node[software](softB)[left = of softA] {Software B};
draw [thick arrow] ($(softB.north)+(1,1em)$) [bend left=45] to ($(softA.north)+(-1,1em)$);
path [decorate,decoration={text along path,
text={|footnotesizebfseriessffamilycolor{white}|DATA A},text align=center}] ($(softB.north)+(1,1.5em)$) [bend left] to ($(softA.north)+(-1,1.5em)$);
draw [thick arrow] ($(softA.south)-(1,1em)$) [bend left=45] to ($(softB.south)+(1,-1em)$);
path [decorate,decoration={text along path, text={|footnotesizebfseriessffamilycolor{white}|DATA B},text align=center}] ($(softB.south)+(1,-1.5em)$) [bend right=45] to ($(softA.south)+(-1,-1.5em)$);
end{tikzpicture}
Here is what the code creates: the arrows are very strangely bent and don't look curved properly and uniformly.

tikz-arrows
"Very strange" is a bit vague. What do you have in mind? They look fine to me! Could you provide a drawing of what you want, or a more precise description?
– Clément
Jan 11 '17 at 15:41
3
Does addingusetikzlibrary{bending}help? (Incidentally, it is always best if you add adocumentclass(articleis usually fine), and a minimal preamble with the necessary packages, TikZ libraries and color definitions. It can be a bit tedious to work that out for ourselves sometimes. Ideally we should be able to copy-paste your code into our editor, and compile without having to do any modifications.)
– Torbjørn T.
Jan 11 '17 at 16:31
Using-Triangle[bend, ...]together with @TorbjørnT. may give even better results. That is, mostly it does, but occasionally it doesn't.
– cfr
Jan 11 '17 at 23:46
add a comment |
How can a bold arrow be bent correctly?
I use the following code, but it looks horrible:
tikzset{%
thick arrow/.style={
-{Triangle[angle=90:1pt 1]},
line width=1.0cm,
draw=gray
}
}
tikzstyle{software} = [draw, text width=10em, minimum height=6em, text centered, line width=1pt, color=mydarkblue, fill=mylightgray, text=mydarkblue, font=normalsizebfsffamily]
centering
begin{tikzpicture}[node distance = 6em]
node[software](softA) {Software A};
node[software](softB)[left = of softA] {Software B};
draw [thick arrow] ($(softB.north)+(1,1em)$) [bend left=45] to ($(softA.north)+(-1,1em)$);
path [decorate,decoration={text along path,
text={|footnotesizebfseriessffamilycolor{white}|DATA A},text align=center}] ($(softB.north)+(1,1.5em)$) [bend left] to ($(softA.north)+(-1,1.5em)$);
draw [thick arrow] ($(softA.south)-(1,1em)$) [bend left=45] to ($(softB.south)+(1,-1em)$);
path [decorate,decoration={text along path, text={|footnotesizebfseriessffamilycolor{white}|DATA B},text align=center}] ($(softB.south)+(1,-1.5em)$) [bend right=45] to ($(softA.south)+(-1,-1.5em)$);
end{tikzpicture}
Here is what the code creates: the arrows are very strangely bent and don't look curved properly and uniformly.

tikz-arrows
How can a bold arrow be bent correctly?
I use the following code, but it looks horrible:
tikzset{%
thick arrow/.style={
-{Triangle[angle=90:1pt 1]},
line width=1.0cm,
draw=gray
}
}
tikzstyle{software} = [draw, text width=10em, minimum height=6em, text centered, line width=1pt, color=mydarkblue, fill=mylightgray, text=mydarkblue, font=normalsizebfsffamily]
centering
begin{tikzpicture}[node distance = 6em]
node[software](softA) {Software A};
node[software](softB)[left = of softA] {Software B};
draw [thick arrow] ($(softB.north)+(1,1em)$) [bend left=45] to ($(softA.north)+(-1,1em)$);
path [decorate,decoration={text along path,
text={|footnotesizebfseriessffamilycolor{white}|DATA A},text align=center}] ($(softB.north)+(1,1.5em)$) [bend left] to ($(softA.north)+(-1,1.5em)$);
draw [thick arrow] ($(softA.south)-(1,1em)$) [bend left=45] to ($(softB.south)+(1,-1em)$);
path [decorate,decoration={text along path, text={|footnotesizebfseriessffamilycolor{white}|DATA B},text align=center}] ($(softB.south)+(1,-1.5em)$) [bend right=45] to ($(softA.south)+(-1,-1.5em)$);
end{tikzpicture}
Here is what the code creates: the arrows are very strangely bent and don't look curved properly and uniformly.

tikz-arrows
tikz-arrows
edited Jan 11 '17 at 15:59
egreg
717k8619023191
717k8619023191
asked Jan 11 '17 at 15:11
TobyToby
191
191
"Very strange" is a bit vague. What do you have in mind? They look fine to me! Could you provide a drawing of what you want, or a more precise description?
– Clément
Jan 11 '17 at 15:41
3
Does addingusetikzlibrary{bending}help? (Incidentally, it is always best if you add adocumentclass(articleis usually fine), and a minimal preamble with the necessary packages, TikZ libraries and color definitions. It can be a bit tedious to work that out for ourselves sometimes. Ideally we should be able to copy-paste your code into our editor, and compile without having to do any modifications.)
– Torbjørn T.
Jan 11 '17 at 16:31
Using-Triangle[bend, ...]together with @TorbjørnT. may give even better results. That is, mostly it does, but occasionally it doesn't.
– cfr
Jan 11 '17 at 23:46
add a comment |
"Very strange" is a bit vague. What do you have in mind? They look fine to me! Could you provide a drawing of what you want, or a more precise description?
– Clément
Jan 11 '17 at 15:41
3
Does addingusetikzlibrary{bending}help? (Incidentally, it is always best if you add adocumentclass(articleis usually fine), and a minimal preamble with the necessary packages, TikZ libraries and color definitions. It can be a bit tedious to work that out for ourselves sometimes. Ideally we should be able to copy-paste your code into our editor, and compile without having to do any modifications.)
– Torbjørn T.
Jan 11 '17 at 16:31
Using-Triangle[bend, ...]together with @TorbjørnT. may give even better results. That is, mostly it does, but occasionally it doesn't.
– cfr
Jan 11 '17 at 23:46
"Very strange" is a bit vague. What do you have in mind? They look fine to me! Could you provide a drawing of what you want, or a more precise description?
– Clément
Jan 11 '17 at 15:41
"Very strange" is a bit vague. What do you have in mind? They look fine to me! Could you provide a drawing of what you want, or a more precise description?
– Clément
Jan 11 '17 at 15:41
3
3
Does adding
usetikzlibrary{bending} help? (Incidentally, it is always best if you add a documentclass (article is usually fine), and a minimal preamble with the necessary packages, TikZ libraries and color definitions. It can be a bit tedious to work that out for ourselves sometimes. Ideally we should be able to copy-paste your code into our editor, and compile without having to do any modifications.)– Torbjørn T.
Jan 11 '17 at 16:31
Does adding
usetikzlibrary{bending} help? (Incidentally, it is always best if you add a documentclass (article is usually fine), and a minimal preamble with the necessary packages, TikZ libraries and color definitions. It can be a bit tedious to work that out for ourselves sometimes. Ideally we should be able to copy-paste your code into our editor, and compile without having to do any modifications.)– Torbjørn T.
Jan 11 '17 at 16:31
Using
-Triangle[bend, ...] together with @TorbjørnT. may give even better results. That is, mostly it does, but occasionally it doesn't.– cfr
Jan 11 '17 at 23:46
Using
-Triangle[bend, ...] together with @TorbjørnT. may give even better results. That is, mostly it does, but occasionally it doesn't.– cfr
Jan 11 '17 at 23:46
add a comment |
1 Answer
1
active
oldest
votes
I do not know yours documentclass{...} and usetikzlibrary{...}. You may want to consider this source where you can add the two rectangles.
My code is an adapt of this code.

documentclass{article}
usepackage[margin=0.3cm, paperwidth=3.3cm, paperheight=3.3cm]{geometry}
usepackage{tikz}
defarrow{
(10:1.1) -- (7:1) arc (7:120:1) [rounded corners=.8] --
(120:0.9) [rounded corners=1] -- (130:1.1) [rounded corners=.8] --
(120:1.3) [sharp corners] -- (120:1.2) arc (120:5.25:1.2)
[rounded corners=1] -- (10.4:1.05) -- (8:1.05) -- cycle
}
tikzset{
ashadow/.style={opacity=.6, shadow xshift=0.1, shadow yshift=-0.07},
}
defarrows[#1]{
begin{scope}[scale=#1]
draw[color=gray, left color=gray, right color=gray] [rotate=210] arrow;
draw[color=yellow, left color=yellow, right color=yellow] [rotate=20] arrow;
end{scope}
}
begin{document}
begin{center}
begin{tikzpicture}
arrows[1];
end{tikzpicture}
end{center}
end{document}
or you take this example at the link Drawing a diagram of a three-cycle.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f348169%2fhow-to-create-nice-bold-and-bent-arrows-using-tikz%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I do not know yours documentclass{...} and usetikzlibrary{...}. You may want to consider this source where you can add the two rectangles.
My code is an adapt of this code.

documentclass{article}
usepackage[margin=0.3cm, paperwidth=3.3cm, paperheight=3.3cm]{geometry}
usepackage{tikz}
defarrow{
(10:1.1) -- (7:1) arc (7:120:1) [rounded corners=.8] --
(120:0.9) [rounded corners=1] -- (130:1.1) [rounded corners=.8] --
(120:1.3) [sharp corners] -- (120:1.2) arc (120:5.25:1.2)
[rounded corners=1] -- (10.4:1.05) -- (8:1.05) -- cycle
}
tikzset{
ashadow/.style={opacity=.6, shadow xshift=0.1, shadow yshift=-0.07},
}
defarrows[#1]{
begin{scope}[scale=#1]
draw[color=gray, left color=gray, right color=gray] [rotate=210] arrow;
draw[color=yellow, left color=yellow, right color=yellow] [rotate=20] arrow;
end{scope}
}
begin{document}
begin{center}
begin{tikzpicture}
arrows[1];
end{tikzpicture}
end{center}
end{document}
or you take this example at the link Drawing a diagram of a three-cycle.
add a comment |
I do not know yours documentclass{...} and usetikzlibrary{...}. You may want to consider this source where you can add the two rectangles.
My code is an adapt of this code.

documentclass{article}
usepackage[margin=0.3cm, paperwidth=3.3cm, paperheight=3.3cm]{geometry}
usepackage{tikz}
defarrow{
(10:1.1) -- (7:1) arc (7:120:1) [rounded corners=.8] --
(120:0.9) [rounded corners=1] -- (130:1.1) [rounded corners=.8] --
(120:1.3) [sharp corners] -- (120:1.2) arc (120:5.25:1.2)
[rounded corners=1] -- (10.4:1.05) -- (8:1.05) -- cycle
}
tikzset{
ashadow/.style={opacity=.6, shadow xshift=0.1, shadow yshift=-0.07},
}
defarrows[#1]{
begin{scope}[scale=#1]
draw[color=gray, left color=gray, right color=gray] [rotate=210] arrow;
draw[color=yellow, left color=yellow, right color=yellow] [rotate=20] arrow;
end{scope}
}
begin{document}
begin{center}
begin{tikzpicture}
arrows[1];
end{tikzpicture}
end{center}
end{document}
or you take this example at the link Drawing a diagram of a three-cycle.
add a comment |
I do not know yours documentclass{...} and usetikzlibrary{...}. You may want to consider this source where you can add the two rectangles.
My code is an adapt of this code.

documentclass{article}
usepackage[margin=0.3cm, paperwidth=3.3cm, paperheight=3.3cm]{geometry}
usepackage{tikz}
defarrow{
(10:1.1) -- (7:1) arc (7:120:1) [rounded corners=.8] --
(120:0.9) [rounded corners=1] -- (130:1.1) [rounded corners=.8] --
(120:1.3) [sharp corners] -- (120:1.2) arc (120:5.25:1.2)
[rounded corners=1] -- (10.4:1.05) -- (8:1.05) -- cycle
}
tikzset{
ashadow/.style={opacity=.6, shadow xshift=0.1, shadow yshift=-0.07},
}
defarrows[#1]{
begin{scope}[scale=#1]
draw[color=gray, left color=gray, right color=gray] [rotate=210] arrow;
draw[color=yellow, left color=yellow, right color=yellow] [rotate=20] arrow;
end{scope}
}
begin{document}
begin{center}
begin{tikzpicture}
arrows[1];
end{tikzpicture}
end{center}
end{document}
or you take this example at the link Drawing a diagram of a three-cycle.
I do not know yours documentclass{...} and usetikzlibrary{...}. You may want to consider this source where you can add the two rectangles.
My code is an adapt of this code.

documentclass{article}
usepackage[margin=0.3cm, paperwidth=3.3cm, paperheight=3.3cm]{geometry}
usepackage{tikz}
defarrow{
(10:1.1) -- (7:1) arc (7:120:1) [rounded corners=.8] --
(120:0.9) [rounded corners=1] -- (130:1.1) [rounded corners=.8] --
(120:1.3) [sharp corners] -- (120:1.2) arc (120:5.25:1.2)
[rounded corners=1] -- (10.4:1.05) -- (8:1.05) -- cycle
}
tikzset{
ashadow/.style={opacity=.6, shadow xshift=0.1, shadow yshift=-0.07},
}
defarrows[#1]{
begin{scope}[scale=#1]
draw[color=gray, left color=gray, right color=gray] [rotate=210] arrow;
draw[color=yellow, left color=yellow, right color=yellow] [rotate=20] arrow;
end{scope}
}
begin{document}
begin{center}
begin{tikzpicture}
arrows[1];
end{tikzpicture}
end{center}
end{document}
or you take this example at the link Drawing a diagram of a three-cycle.
edited Jan 25 at 16:46
answered Jan 11 '17 at 22:16
SebastianoSebastiano
9,75541858
9,75541858
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f348169%2fhow-to-create-nice-bold-and-bent-arrows-using-tikz%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
"Very strange" is a bit vague. What do you have in mind? They look fine to me! Could you provide a drawing of what you want, or a more precise description?
– Clément
Jan 11 '17 at 15:41
3
Does adding
usetikzlibrary{bending}help? (Incidentally, it is always best if you add adocumentclass(articleis usually fine), and a minimal preamble with the necessary packages, TikZ libraries and color definitions. It can be a bit tedious to work that out for ourselves sometimes. Ideally we should be able to copy-paste your code into our editor, and compile without having to do any modifications.)– Torbjørn T.
Jan 11 '17 at 16:31
Using
-Triangle[bend, ...]together with @TorbjørnT. may give even better results. That is, mostly it does, but occasionally it doesn't.– cfr
Jan 11 '17 at 23:46