Add Arrow to Bordermatrix

The name of the pictureThe name of the pictureThe name of the pictureClash 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):



enter image description here



Thank you very much for your help.







share|improve this question
























    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):



    enter image description here



    Thank you very much for your help.







    share|improve this question






















      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):



      enter image description here



      Thank you very much for your help.







      share|improve this question












      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):



      enter image description here



      Thank you very much for your help.









      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 3 at 18:48









      IschaIschratioh

      132




      132




















          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


          enter image description here






          share|improve this answer




















          • Thank you very much Jasper.
            – IschaIschratioh
            Sep 3 at 21:05

















          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


          enter image description here






          share|improve this answer






















          • Hello Bernard, thank you for your solution as well.
            – IschaIschratioh
            2 days ago










          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',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          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






























          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


          enter image description here






          share|improve this answer




















          • Thank you very much Jasper.
            – IschaIschratioh
            Sep 3 at 21:05














          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


          enter image description here






          share|improve this answer




















          • Thank you very much Jasper.
            – IschaIschratioh
            Sep 3 at 21:05












          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


          enter image description here






          share|improve this answer












          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


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 3 at 19:36









          Jasper Habicht

          5,18111033




          5,18111033











          • 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




          Thank you very much Jasper.
          – IschaIschratioh
          Sep 3 at 21:05










          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


          enter image description here






          share|improve this answer






















          • Hello Bernard, thank you for your solution as well.
            – IschaIschratioh
            2 days ago














          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


          enter image description here






          share|improve this answer






















          • Hello Bernard, thank you for your solution as well.
            – IschaIschratioh
            2 days ago












          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


          enter image description here






          share|improve this answer














          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


          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          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
















          • 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

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          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













































































          Comments

          Popular posts from this blog

          What does second last employer means? [closed]

          List of Gilmore Girls characters

          Confectionery