bloc rectangle with several arrows as input with tikz
I want this :
With arrows aligned and the possibility to add or remove some at the left or right sides. And the possibility to add labels at arrows extremities.
I try this technique but it does not work well for my case.
EDIT 1: I tried this :
begin{tikzpicture}[node distance=2cm]
node[draw, rectangle, minimum height=2cm, minimum width=2cm,align=center] (bloc) {};
node[rectangle, minimum height=2cm, minimum width=0cm, left of=bloc] (hide) {};
draw[->] (hide.40) -- (bloc.220) {};
draw[->] (hide) -- (bloc) {};
end{tikzpicture}
tikz-pgf tikz-arrows
add a comment |
I want this :
With arrows aligned and the possibility to add or remove some at the left or right sides. And the possibility to add labels at arrows extremities.
I try this technique but it does not work well for my case.
EDIT 1: I tried this :
begin{tikzpicture}[node distance=2cm]
node[draw, rectangle, minimum height=2cm, minimum width=2cm,align=center] (bloc) {};
node[rectangle, minimum height=2cm, minimum width=0cm, left of=bloc] (hide) {};
draw[->] (hide.40) -- (bloc.220) {};
draw[->] (hide) -- (bloc) {};
end{tikzpicture}
tikz-pgf tikz-arrows
You can keep only(bloc)
node and then usedraw[->] ([xshift=-1cm]bloc.220) -- (bloc.220);
or simplerdraw[<-] (bloc.220)-- +(-1,0);
.
– Kpym
10 hours ago
add a comment |
I want this :
With arrows aligned and the possibility to add or remove some at the left or right sides. And the possibility to add labels at arrows extremities.
I try this technique but it does not work well for my case.
EDIT 1: I tried this :
begin{tikzpicture}[node distance=2cm]
node[draw, rectangle, minimum height=2cm, minimum width=2cm,align=center] (bloc) {};
node[rectangle, minimum height=2cm, minimum width=0cm, left of=bloc] (hide) {};
draw[->] (hide.40) -- (bloc.220) {};
draw[->] (hide) -- (bloc) {};
end{tikzpicture}
tikz-pgf tikz-arrows
I want this :
With arrows aligned and the possibility to add or remove some at the left or right sides. And the possibility to add labels at arrows extremities.
I try this technique but it does not work well for my case.
EDIT 1: I tried this :
begin{tikzpicture}[node distance=2cm]
node[draw, rectangle, minimum height=2cm, minimum width=2cm,align=center] (bloc) {};
node[rectangle, minimum height=2cm, minimum width=0cm, left of=bloc] (hide) {};
draw[->] (hide.40) -- (bloc.220) {};
draw[->] (hide) -- (bloc) {};
end{tikzpicture}
tikz-pgf tikz-arrows
tikz-pgf tikz-arrows
edited 11 hours ago
Welgriv
asked 11 hours ago
WelgrivWelgriv
133
133
You can keep only(bloc)
node and then usedraw[->] ([xshift=-1cm]bloc.220) -- (bloc.220);
or simplerdraw[<-] (bloc.220)-- +(-1,0);
.
– Kpym
10 hours ago
add a comment |
You can keep only(bloc)
node and then usedraw[->] ([xshift=-1cm]bloc.220) -- (bloc.220);
or simplerdraw[<-] (bloc.220)-- +(-1,0);
.
– Kpym
10 hours ago
You can keep only
(bloc)
node and then use draw[->] ([xshift=-1cm]bloc.220) -- (bloc.220);
or simpler draw[<-] (bloc.220)-- +(-1,0);
.– Kpym
10 hours ago
You can keep only
(bloc)
node and then use draw[->] ([xshift=-1cm]bloc.220) -- (bloc.220);
or simpler draw[<-] (bloc.220)-- +(-1,0);
.– Kpym
10 hours ago
add a comment |
1 Answer
1
active
oldest
votes
Think in a simple way.
documentclass[tikz]{standalone}
begin{document}
begin{tikzpicture}[>=latex]
draw (0,0) rectangle (2.5,2);
draw[->] (2.5,1)--++(1,0);
draw[<-] (0,.3)--++(-1,0);
draw[<-] (0,.9)--++(-1,0);
draw[<-] (0,1.2)--++(-1,0);
draw[<-] (0,1.6)--++(-1,0);
end{tikzpicture}
end{document}
Shorter code
documentclass[tikz]{standalone}
begin{document}
begin{tikzpicture}[>=latex]
draw (0,0) rectangle (2.5,2);
foreach i in {1,1.3} % Add to this list
draw[->] (2.5,i)--++(1,0);
foreach i in {.3,.9,1.2,1.6} % Add to this list
draw[<-] (0,i)--++(-1,0);
end{tikzpicture}
end{document}
I don't know how you want the labels to be, but this may be a start
documentclass[tikz]{standalone}
begin{document}
begin{tikzpicture}[>=latex]
draw (0,0) rectangle (2.5,2);
draw[->] (2.5,1)--++(1,0) node[right] {xyz};
draw[<-] (0,.3)--++(-1,0) node[left] {mnp};
draw[<-] (0,.9)--++(-1,0);
draw[<-] (0,1.2)--++(-1,0) node[left] {abc};
draw[<-] (0,1.6)--++(-1,0);
end{tikzpicture}
end{document}
Remember increasing the size of the picture in case the size of the label is too big.
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%2f483177%2fbloc-rectangle-with-several-arrows-as-input-with-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
Think in a simple way.
documentclass[tikz]{standalone}
begin{document}
begin{tikzpicture}[>=latex]
draw (0,0) rectangle (2.5,2);
draw[->] (2.5,1)--++(1,0);
draw[<-] (0,.3)--++(-1,0);
draw[<-] (0,.9)--++(-1,0);
draw[<-] (0,1.2)--++(-1,0);
draw[<-] (0,1.6)--++(-1,0);
end{tikzpicture}
end{document}
Shorter code
documentclass[tikz]{standalone}
begin{document}
begin{tikzpicture}[>=latex]
draw (0,0) rectangle (2.5,2);
foreach i in {1,1.3} % Add to this list
draw[->] (2.5,i)--++(1,0);
foreach i in {.3,.9,1.2,1.6} % Add to this list
draw[<-] (0,i)--++(-1,0);
end{tikzpicture}
end{document}
I don't know how you want the labels to be, but this may be a start
documentclass[tikz]{standalone}
begin{document}
begin{tikzpicture}[>=latex]
draw (0,0) rectangle (2.5,2);
draw[->] (2.5,1)--++(1,0) node[right] {xyz};
draw[<-] (0,.3)--++(-1,0) node[left] {mnp};
draw[<-] (0,.9)--++(-1,0);
draw[<-] (0,1.2)--++(-1,0) node[left] {abc};
draw[<-] (0,1.6)--++(-1,0);
end{tikzpicture}
end{document}
Remember increasing the size of the picture in case the size of the label is too big.
add a comment |
Think in a simple way.
documentclass[tikz]{standalone}
begin{document}
begin{tikzpicture}[>=latex]
draw (0,0) rectangle (2.5,2);
draw[->] (2.5,1)--++(1,0);
draw[<-] (0,.3)--++(-1,0);
draw[<-] (0,.9)--++(-1,0);
draw[<-] (0,1.2)--++(-1,0);
draw[<-] (0,1.6)--++(-1,0);
end{tikzpicture}
end{document}
Shorter code
documentclass[tikz]{standalone}
begin{document}
begin{tikzpicture}[>=latex]
draw (0,0) rectangle (2.5,2);
foreach i in {1,1.3} % Add to this list
draw[->] (2.5,i)--++(1,0);
foreach i in {.3,.9,1.2,1.6} % Add to this list
draw[<-] (0,i)--++(-1,0);
end{tikzpicture}
end{document}
I don't know how you want the labels to be, but this may be a start
documentclass[tikz]{standalone}
begin{document}
begin{tikzpicture}[>=latex]
draw (0,0) rectangle (2.5,2);
draw[->] (2.5,1)--++(1,0) node[right] {xyz};
draw[<-] (0,.3)--++(-1,0) node[left] {mnp};
draw[<-] (0,.9)--++(-1,0);
draw[<-] (0,1.2)--++(-1,0) node[left] {abc};
draw[<-] (0,1.6)--++(-1,0);
end{tikzpicture}
end{document}
Remember increasing the size of the picture in case the size of the label is too big.
add a comment |
Think in a simple way.
documentclass[tikz]{standalone}
begin{document}
begin{tikzpicture}[>=latex]
draw (0,0) rectangle (2.5,2);
draw[->] (2.5,1)--++(1,0);
draw[<-] (0,.3)--++(-1,0);
draw[<-] (0,.9)--++(-1,0);
draw[<-] (0,1.2)--++(-1,0);
draw[<-] (0,1.6)--++(-1,0);
end{tikzpicture}
end{document}
Shorter code
documentclass[tikz]{standalone}
begin{document}
begin{tikzpicture}[>=latex]
draw (0,0) rectangle (2.5,2);
foreach i in {1,1.3} % Add to this list
draw[->] (2.5,i)--++(1,0);
foreach i in {.3,.9,1.2,1.6} % Add to this list
draw[<-] (0,i)--++(-1,0);
end{tikzpicture}
end{document}
I don't know how you want the labels to be, but this may be a start
documentclass[tikz]{standalone}
begin{document}
begin{tikzpicture}[>=latex]
draw (0,0) rectangle (2.5,2);
draw[->] (2.5,1)--++(1,0) node[right] {xyz};
draw[<-] (0,.3)--++(-1,0) node[left] {mnp};
draw[<-] (0,.9)--++(-1,0);
draw[<-] (0,1.2)--++(-1,0) node[left] {abc};
draw[<-] (0,1.6)--++(-1,0);
end{tikzpicture}
end{document}
Remember increasing the size of the picture in case the size of the label is too big.
Think in a simple way.
documentclass[tikz]{standalone}
begin{document}
begin{tikzpicture}[>=latex]
draw (0,0) rectangle (2.5,2);
draw[->] (2.5,1)--++(1,0);
draw[<-] (0,.3)--++(-1,0);
draw[<-] (0,.9)--++(-1,0);
draw[<-] (0,1.2)--++(-1,0);
draw[<-] (0,1.6)--++(-1,0);
end{tikzpicture}
end{document}
Shorter code
documentclass[tikz]{standalone}
begin{document}
begin{tikzpicture}[>=latex]
draw (0,0) rectangle (2.5,2);
foreach i in {1,1.3} % Add to this list
draw[->] (2.5,i)--++(1,0);
foreach i in {.3,.9,1.2,1.6} % Add to this list
draw[<-] (0,i)--++(-1,0);
end{tikzpicture}
end{document}
I don't know how you want the labels to be, but this may be a start
documentclass[tikz]{standalone}
begin{document}
begin{tikzpicture}[>=latex]
draw (0,0) rectangle (2.5,2);
draw[->] (2.5,1)--++(1,0) node[right] {xyz};
draw[<-] (0,.3)--++(-1,0) node[left] {mnp};
draw[<-] (0,.9)--++(-1,0);
draw[<-] (0,1.2)--++(-1,0) node[left] {abc};
draw[<-] (0,1.6)--++(-1,0);
end{tikzpicture}
end{document}
Remember increasing the size of the picture in case the size of the label is too big.
edited 10 hours ago
answered 11 hours ago
JouleVJouleV
10.5k22559
10.5k22559
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%2f483177%2fbloc-rectangle-with-several-arrows-as-input-with-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
You can keep only
(bloc)
node and then usedraw[->] ([xshift=-1cm]bloc.220) -- (bloc.220);
or simplerdraw[<-] (bloc.220)-- +(-1,0);
.– Kpym
10 hours ago