Add Arrow to Bordermatrix
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
I have the following code for a border Matrix:
$bordermatrix%
& A& B& C& D& E cr
CV_1 & 0.16 & 0.31 & 0.76 & 0.82 & 0.042 cr
CV_2 & 0.35 & 0.54 & 0.21 & 0.12 & 0.48 cr
CV_3 & 0.07& 0.44 & 0.23 & 0.71 & 0.90 6 cr
CV_4 & 0.37 & 0.31 & 0.91 & 0.75 & 0.22 cr
}$
I want to add arrows in the following way (the top one above the indices):
Thank you very much for your help.
bordermatrix
add a comment |Â
up vote
2
down vote
favorite
I have the following code for a border Matrix:
$bordermatrix%
& A& B& C& D& E cr
CV_1 & 0.16 & 0.31 & 0.76 & 0.82 & 0.042 cr
CV_2 & 0.35 & 0.54 & 0.21 & 0.12 & 0.48 cr
CV_3 & 0.07& 0.44 & 0.23 & 0.71 & 0.90 6 cr
CV_4 & 0.37 & 0.31 & 0.91 & 0.75 & 0.22 cr
}$
I want to add arrows in the following way (the top one above the indices):
Thank you very much for your help.
bordermatrix
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I have the following code for a border Matrix:
$bordermatrix%
& A& B& C& D& E cr
CV_1 & 0.16 & 0.31 & 0.76 & 0.82 & 0.042 cr
CV_2 & 0.35 & 0.54 & 0.21 & 0.12 & 0.48 cr
CV_3 & 0.07& 0.44 & 0.23 & 0.71 & 0.90 6 cr
CV_4 & 0.37 & 0.31 & 0.91 & 0.75 & 0.22 cr
}$
I want to add arrows in the following way (the top one above the indices):
Thank you very much for your help.
bordermatrix
I have the following code for a border Matrix:
$bordermatrix%
& A& B& C& D& E cr
CV_1 & 0.16 & 0.31 & 0.76 & 0.82 & 0.042 cr
CV_2 & 0.35 & 0.54 & 0.21 & 0.12 & 0.48 cr
CV_3 & 0.07& 0.44 & 0.23 & 0.71 & 0.90 6 cr
CV_4 & 0.37 & 0.31 & 0.91 & 0.75 & 0.22 cr
}$
I want to add arrows in the following way (the top one above the indices):
Thank you very much for your help.
bordermatrix
asked Sep 3 at 18:48
IschaIschratioh
132
132
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
3
down vote
accepted
I guess there are other possibilities to achieve this without tikz
. But with the following, you will get what you want. Note that the arrow above overlaps the stuff that is typeset above the matrix, so maybe you add a vspace
there. Alike, the arrow on the right overlaps stuff there.
documentclassarticle
usepackageamsmath,tikz
usetikzlibrarytikzmark
begindocument
$bordermatrix%
tikzmarktl & A & B & C & D & E tikzmarktrcr
tikzmarkbt CV_1 & 0.16 & 0.31 & 0.76 & 0.82 & 0.042 cr
CV_2 & 0.35 & 0.54 & 0.21 & 0.12 & 0.48 cr
CV_3 & 0.07 & 0.44 & 0.23 & 0.71 & 0.906 cr
tikzmarkbb CV_4 & 0.37 & 0.31 & 0.91 & 0.75 & 0.22 cr
$
begintikzpicture[remember picture,overlay,
every path/.style=->,
every node/.style=draw,circle,inner sep=2pt,fill=white]
draw ([xshift=23pt,yshift=18pt]pic cs:tl) -- node 1 ([xshift=12pt,yshift=18pt]pic cs:tr);
draw ([xshift=-12pt,yshift=8pt]pic cs:bt) -- node 2 ([xshift=-12pt]pic cs:bb);
endtikzpicture
enddocument
Thank you very much Jasper.
– IschaIschratioh
Sep 3 at 21:05
add a comment |Â
up vote
3
down vote
A simple code with pstricks
: I make 4 elements in the matrix nodes, connect these nodes with lines (with arrows), using an offset, and add a label on these connections:
documentclassarticle
usepackageamsmath
usepackagepst-node, auto-pst-pdf
begindocument
$ beginpostscript
bordermatrix%
& rnodeAA & B & C & D & rnodeEE cr
rnode[t]C1CV_1 & 0.16 & 0.31 & 0.76 & 0.82 & 0.042 cr
CV_2 & 0.35 & 0.54 & 0.21 & 0.12 & 0.48phantom0 cr
CV_3 & 0.07 & 0.44 & 0.23 & 0.71 & 0.906 cr
rnode[b]C4CV_4 & 0.37 & 0.31 & 0.91 & 0.75 & 0.22phantom0 cr
pssetframesep=2pt, arrowinset=0.1, fillstyle=solid
pcline[offset=3ex]->(A)(E)thput*pscirclebox1
pcline[offset=-4.5ex]->(C1)(C4)tvput*pscirclebox[fillstyle=solid]2
endpostscript$
enddocument
Hello Bernard, thank you for your solution as well.
– IschaIschratioh
2 days ago
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
I guess there are other possibilities to achieve this without tikz
. But with the following, you will get what you want. Note that the arrow above overlaps the stuff that is typeset above the matrix, so maybe you add a vspace
there. Alike, the arrow on the right overlaps stuff there.
documentclassarticle
usepackageamsmath,tikz
usetikzlibrarytikzmark
begindocument
$bordermatrix%
tikzmarktl & A & B & C & D & E tikzmarktrcr
tikzmarkbt CV_1 & 0.16 & 0.31 & 0.76 & 0.82 & 0.042 cr
CV_2 & 0.35 & 0.54 & 0.21 & 0.12 & 0.48 cr
CV_3 & 0.07 & 0.44 & 0.23 & 0.71 & 0.906 cr
tikzmarkbb CV_4 & 0.37 & 0.31 & 0.91 & 0.75 & 0.22 cr
$
begintikzpicture[remember picture,overlay,
every path/.style=->,
every node/.style=draw,circle,inner sep=2pt,fill=white]
draw ([xshift=23pt,yshift=18pt]pic cs:tl) -- node 1 ([xshift=12pt,yshift=18pt]pic cs:tr);
draw ([xshift=-12pt,yshift=8pt]pic cs:bt) -- node 2 ([xshift=-12pt]pic cs:bb);
endtikzpicture
enddocument
Thank you very much Jasper.
– IschaIschratioh
Sep 3 at 21:05
add a comment |Â
up vote
3
down vote
accepted
I guess there are other possibilities to achieve this without tikz
. But with the following, you will get what you want. Note that the arrow above overlaps the stuff that is typeset above the matrix, so maybe you add a vspace
there. Alike, the arrow on the right overlaps stuff there.
documentclassarticle
usepackageamsmath,tikz
usetikzlibrarytikzmark
begindocument
$bordermatrix%
tikzmarktl & A & B & C & D & E tikzmarktrcr
tikzmarkbt CV_1 & 0.16 & 0.31 & 0.76 & 0.82 & 0.042 cr
CV_2 & 0.35 & 0.54 & 0.21 & 0.12 & 0.48 cr
CV_3 & 0.07 & 0.44 & 0.23 & 0.71 & 0.906 cr
tikzmarkbb CV_4 & 0.37 & 0.31 & 0.91 & 0.75 & 0.22 cr
$
begintikzpicture[remember picture,overlay,
every path/.style=->,
every node/.style=draw,circle,inner sep=2pt,fill=white]
draw ([xshift=23pt,yshift=18pt]pic cs:tl) -- node 1 ([xshift=12pt,yshift=18pt]pic cs:tr);
draw ([xshift=-12pt,yshift=8pt]pic cs:bt) -- node 2 ([xshift=-12pt]pic cs:bb);
endtikzpicture
enddocument
Thank you very much Jasper.
– IschaIschratioh
Sep 3 at 21:05
add a comment |Â
up vote
3
down vote
accepted
up vote
3
down vote
accepted
I guess there are other possibilities to achieve this without tikz
. But with the following, you will get what you want. Note that the arrow above overlaps the stuff that is typeset above the matrix, so maybe you add a vspace
there. Alike, the arrow on the right overlaps stuff there.
documentclassarticle
usepackageamsmath,tikz
usetikzlibrarytikzmark
begindocument
$bordermatrix%
tikzmarktl & A & B & C & D & E tikzmarktrcr
tikzmarkbt CV_1 & 0.16 & 0.31 & 0.76 & 0.82 & 0.042 cr
CV_2 & 0.35 & 0.54 & 0.21 & 0.12 & 0.48 cr
CV_3 & 0.07 & 0.44 & 0.23 & 0.71 & 0.906 cr
tikzmarkbb CV_4 & 0.37 & 0.31 & 0.91 & 0.75 & 0.22 cr
$
begintikzpicture[remember picture,overlay,
every path/.style=->,
every node/.style=draw,circle,inner sep=2pt,fill=white]
draw ([xshift=23pt,yshift=18pt]pic cs:tl) -- node 1 ([xshift=12pt,yshift=18pt]pic cs:tr);
draw ([xshift=-12pt,yshift=8pt]pic cs:bt) -- node 2 ([xshift=-12pt]pic cs:bb);
endtikzpicture
enddocument
I guess there are other possibilities to achieve this without tikz
. But with the following, you will get what you want. Note that the arrow above overlaps the stuff that is typeset above the matrix, so maybe you add a vspace
there. Alike, the arrow on the right overlaps stuff there.
documentclassarticle
usepackageamsmath,tikz
usetikzlibrarytikzmark
begindocument
$bordermatrix%
tikzmarktl & A & B & C & D & E tikzmarktrcr
tikzmarkbt CV_1 & 0.16 & 0.31 & 0.76 & 0.82 & 0.042 cr
CV_2 & 0.35 & 0.54 & 0.21 & 0.12 & 0.48 cr
CV_3 & 0.07 & 0.44 & 0.23 & 0.71 & 0.906 cr
tikzmarkbb CV_4 & 0.37 & 0.31 & 0.91 & 0.75 & 0.22 cr
$
begintikzpicture[remember picture,overlay,
every path/.style=->,
every node/.style=draw,circle,inner sep=2pt,fill=white]
draw ([xshift=23pt,yshift=18pt]pic cs:tl) -- node 1 ([xshift=12pt,yshift=18pt]pic cs:tr);
draw ([xshift=-12pt,yshift=8pt]pic cs:bt) -- node 2 ([xshift=-12pt]pic cs:bb);
endtikzpicture
enddocument
answered Sep 3 at 19:36


Jasper Habicht
5,18111033
5,18111033
Thank you very much Jasper.
– IschaIschratioh
Sep 3 at 21:05
add a comment |Â
Thank you very much Jasper.
– IschaIschratioh
Sep 3 at 21:05
Thank you very much Jasper.
– IschaIschratioh
Sep 3 at 21:05
Thank you very much Jasper.
– IschaIschratioh
Sep 3 at 21:05
add a comment |Â
up vote
3
down vote
A simple code with pstricks
: I make 4 elements in the matrix nodes, connect these nodes with lines (with arrows), using an offset, and add a label on these connections:
documentclassarticle
usepackageamsmath
usepackagepst-node, auto-pst-pdf
begindocument
$ beginpostscript
bordermatrix%
& rnodeAA & B & C & D & rnodeEE cr
rnode[t]C1CV_1 & 0.16 & 0.31 & 0.76 & 0.82 & 0.042 cr
CV_2 & 0.35 & 0.54 & 0.21 & 0.12 & 0.48phantom0 cr
CV_3 & 0.07 & 0.44 & 0.23 & 0.71 & 0.906 cr
rnode[b]C4CV_4 & 0.37 & 0.31 & 0.91 & 0.75 & 0.22phantom0 cr
pssetframesep=2pt, arrowinset=0.1, fillstyle=solid
pcline[offset=3ex]->(A)(E)thput*pscirclebox1
pcline[offset=-4.5ex]->(C1)(C4)tvput*pscirclebox[fillstyle=solid]2
endpostscript$
enddocument
Hello Bernard, thank you for your solution as well.
– IschaIschratioh
2 days ago
add a comment |Â
up vote
3
down vote
A simple code with pstricks
: I make 4 elements in the matrix nodes, connect these nodes with lines (with arrows), using an offset, and add a label on these connections:
documentclassarticle
usepackageamsmath
usepackagepst-node, auto-pst-pdf
begindocument
$ beginpostscript
bordermatrix%
& rnodeAA & B & C & D & rnodeEE cr
rnode[t]C1CV_1 & 0.16 & 0.31 & 0.76 & 0.82 & 0.042 cr
CV_2 & 0.35 & 0.54 & 0.21 & 0.12 & 0.48phantom0 cr
CV_3 & 0.07 & 0.44 & 0.23 & 0.71 & 0.906 cr
rnode[b]C4CV_4 & 0.37 & 0.31 & 0.91 & 0.75 & 0.22phantom0 cr
pssetframesep=2pt, arrowinset=0.1, fillstyle=solid
pcline[offset=3ex]->(A)(E)thput*pscirclebox1
pcline[offset=-4.5ex]->(C1)(C4)tvput*pscirclebox[fillstyle=solid]2
endpostscript$
enddocument
Hello Bernard, thank you for your solution as well.
– IschaIschratioh
2 days ago
add a comment |Â
up vote
3
down vote
up vote
3
down vote
A simple code with pstricks
: I make 4 elements in the matrix nodes, connect these nodes with lines (with arrows), using an offset, and add a label on these connections:
documentclassarticle
usepackageamsmath
usepackagepst-node, auto-pst-pdf
begindocument
$ beginpostscript
bordermatrix%
& rnodeAA & B & C & D & rnodeEE cr
rnode[t]C1CV_1 & 0.16 & 0.31 & 0.76 & 0.82 & 0.042 cr
CV_2 & 0.35 & 0.54 & 0.21 & 0.12 & 0.48phantom0 cr
CV_3 & 0.07 & 0.44 & 0.23 & 0.71 & 0.906 cr
rnode[b]C4CV_4 & 0.37 & 0.31 & 0.91 & 0.75 & 0.22phantom0 cr
pssetframesep=2pt, arrowinset=0.1, fillstyle=solid
pcline[offset=3ex]->(A)(E)thput*pscirclebox1
pcline[offset=-4.5ex]->(C1)(C4)tvput*pscirclebox[fillstyle=solid]2
endpostscript$
enddocument
A simple code with pstricks
: I make 4 elements in the matrix nodes, connect these nodes with lines (with arrows), using an offset, and add a label on these connections:
documentclassarticle
usepackageamsmath
usepackagepst-node, auto-pst-pdf
begindocument
$ beginpostscript
bordermatrix%
& rnodeAA & B & C & D & rnodeEE cr
rnode[t]C1CV_1 & 0.16 & 0.31 & 0.76 & 0.82 & 0.042 cr
CV_2 & 0.35 & 0.54 & 0.21 & 0.12 & 0.48phantom0 cr
CV_3 & 0.07 & 0.44 & 0.23 & 0.71 & 0.906 cr
rnode[b]C4CV_4 & 0.37 & 0.31 & 0.91 & 0.75 & 0.22phantom0 cr
pssetframesep=2pt, arrowinset=0.1, fillstyle=solid
pcline[offset=3ex]->(A)(E)thput*pscirclebox1
pcline[offset=-4.5ex]->(C1)(C4)tvput*pscirclebox[fillstyle=solid]2
endpostscript$
enddocument
edited Sep 3 at 22:34
answered Sep 3 at 22:13
Bernard
156k763189
156k763189
Hello Bernard, thank you for your solution as well.
– IschaIschratioh
2 days ago
add a comment |Â
Hello Bernard, thank you for your solution as well.
– IschaIschratioh
2 days ago
Hello Bernard, thank you for your solution as well.
– IschaIschratioh
2 days ago
Hello Bernard, thank you for your solution as well.
– IschaIschratioh
2 days ago
add a comment |Â
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f449165%2fadd-arrow-to-bordermatrix%23new-answer', 'question_page');
);
Post as a guest
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
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
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