Positioning edge label












2















I'm trying to position two edge labels over and below their respective edges. I'd like them to be center aligned in relation to the edge. This is my current code:



documentclass[tikz,border=9]{standalone}
usetikzlibrary{3d}
usepackage{amsfonts}

begin{document}
begin{tikzpicture}[box/.style={rectangle,thick}]

begin{scope}[x = {(0.5cm,0.5cm)},
y = {(0.95cm,-0.25cm)},
z = {(0cm,0.9cm)},
canvas is yz plane at x=-1]
draw (-1,-1) rectangle (1,1);
node[draw,circle,inner sep=1pt,fill=gray](A) at (-.9, -.9) {};
node[draw,circle,inner sep=1pt,fill=gray](B) at (-.6, -.7) {};
node[draw,circle,inner sep=1pt,fill=gray](C) at (.7, -.2) {};
end{scope}
begin{scope}[x = {(0.5cm,0.5cm)},
y = {(0.95cm,-0.25cm)},
z = {(0cm,0.9cm)},
canvas is xz plane at y=1]
draw (-1,-1) rectangle (1,1);
node[draw,circle,inner sep=1pt,fill=gray](D) at (-.5, -.55) {};
node[draw,circle,inner sep=1pt,fill=gray](E) at (.7, -.1) {};
node[draw,circle,inner sep=1pt,fill=gray](F) at (-.8, -.08) {};
end{scope}
begin{scope}[x = {(0.5cm,0.5cm)},
y = {(0.95cm,-0.25cm)},
z = {(0cm,0.9cm)},
canvas is yx plane at z=1]
draw (-1,-1) rectangle (1,1);
node[draw,circle,inner sep=1pt,fill=gray](G) at (.7, .7) {};
node[draw,circle,inner sep=1pt,fill=gray](H) at (-0.8, .4) {};
node[above] at (current bounding box.north) {$mathbb{R}^n$};
end{scope}

begin{scope}
draw[step=0.3,gray,very thin] (2,-2.5) grid ++(3,3);

node[box,fill=green] at (2.55,-2.25){};
node[box,fill=green] at (2.25,-2.25){};
node[box,fill=lime] at (4.05,-1.95){};
node[box,fill=lime] at (4.65,-1.95){};
node[box,fill=teal] at (4.65,-1.05){};
node[box,fill=lime] at (4.35,-1.65){};
node[box,fill=olive] at (4.65,0.15){};
node[box,fill=yellow] at (3.75,0.15){};

draw [<-,red](A.east) to [out=-60,in=-130] (2.55,-2.15);
draw [->,blue](A.south) to [out=-60,in=-130] (2.55,-2.25) node[sloped,below,font=tiny] {Label};
draw [<-,red](B.east) to [out=-60,in=-150] (2.25,-2.15);
draw [->,blue](B.south) to [out=-60,in=-150] (2.25,-2.25);
draw [<-,red](C.east) to [out=-60,in=-180] (4.05,-1.90);
draw [->,blue](C.south) to [out=-60,in=-180] (4.05,-2);
draw [<-,red](D.east) to [out=0,in=-190] (4.65,-1.90);
draw [->,blue](D.south) to [out=0,in=-190] (4.65,-2);
draw [<-,red](E.east) to [out=-30,in=-180] (4.65,-0.99);
draw [->,blue](E.south) to [out=-30,in=-180] (4.65,-1.09);
draw [<-,red](F.east) to [out=0,in=-200] (4.35,-1.60);
draw [->,blue](F.south) to [out=0,in=-200] (4.35,-1.70);
draw [<-,red](G.east) to [out=10,in=-220] (4.65,0.2) node[sloped,above,font=tiny] {$P^{-1}$};
draw [->,blue](G.south) to [out=10,in=-220] (4.65,0.1);
draw [<-,red](H.east) to [out=-5,in=180] (3.75,0.2);
draw [->,blue](H.south) to [out=-5,in=180] (3.75,0.1);
end{scope}

coordinate(grid) at (2.9,0.5);
node[above] at (grid.north) {$mathbb{R}^2$};

end{tikzpicture}
end{document}


Which produces:



enter image description here



I tried to used the midway keyword but the result was a misplaced (at least not what I was expecting) label:



enter image description here










share|improve this question



























    2















    I'm trying to position two edge labels over and below their respective edges. I'd like them to be center aligned in relation to the edge. This is my current code:



    documentclass[tikz,border=9]{standalone}
    usetikzlibrary{3d}
    usepackage{amsfonts}

    begin{document}
    begin{tikzpicture}[box/.style={rectangle,thick}]

    begin{scope}[x = {(0.5cm,0.5cm)},
    y = {(0.95cm,-0.25cm)},
    z = {(0cm,0.9cm)},
    canvas is yz plane at x=-1]
    draw (-1,-1) rectangle (1,1);
    node[draw,circle,inner sep=1pt,fill=gray](A) at (-.9, -.9) {};
    node[draw,circle,inner sep=1pt,fill=gray](B) at (-.6, -.7) {};
    node[draw,circle,inner sep=1pt,fill=gray](C) at (.7, -.2) {};
    end{scope}
    begin{scope}[x = {(0.5cm,0.5cm)},
    y = {(0.95cm,-0.25cm)},
    z = {(0cm,0.9cm)},
    canvas is xz plane at y=1]
    draw (-1,-1) rectangle (1,1);
    node[draw,circle,inner sep=1pt,fill=gray](D) at (-.5, -.55) {};
    node[draw,circle,inner sep=1pt,fill=gray](E) at (.7, -.1) {};
    node[draw,circle,inner sep=1pt,fill=gray](F) at (-.8, -.08) {};
    end{scope}
    begin{scope}[x = {(0.5cm,0.5cm)},
    y = {(0.95cm,-0.25cm)},
    z = {(0cm,0.9cm)},
    canvas is yx plane at z=1]
    draw (-1,-1) rectangle (1,1);
    node[draw,circle,inner sep=1pt,fill=gray](G) at (.7, .7) {};
    node[draw,circle,inner sep=1pt,fill=gray](H) at (-0.8, .4) {};
    node[above] at (current bounding box.north) {$mathbb{R}^n$};
    end{scope}

    begin{scope}
    draw[step=0.3,gray,very thin] (2,-2.5) grid ++(3,3);

    node[box,fill=green] at (2.55,-2.25){};
    node[box,fill=green] at (2.25,-2.25){};
    node[box,fill=lime] at (4.05,-1.95){};
    node[box,fill=lime] at (4.65,-1.95){};
    node[box,fill=teal] at (4.65,-1.05){};
    node[box,fill=lime] at (4.35,-1.65){};
    node[box,fill=olive] at (4.65,0.15){};
    node[box,fill=yellow] at (3.75,0.15){};

    draw [<-,red](A.east) to [out=-60,in=-130] (2.55,-2.15);
    draw [->,blue](A.south) to [out=-60,in=-130] (2.55,-2.25) node[sloped,below,font=tiny] {Label};
    draw [<-,red](B.east) to [out=-60,in=-150] (2.25,-2.15);
    draw [->,blue](B.south) to [out=-60,in=-150] (2.25,-2.25);
    draw [<-,red](C.east) to [out=-60,in=-180] (4.05,-1.90);
    draw [->,blue](C.south) to [out=-60,in=-180] (4.05,-2);
    draw [<-,red](D.east) to [out=0,in=-190] (4.65,-1.90);
    draw [->,blue](D.south) to [out=0,in=-190] (4.65,-2);
    draw [<-,red](E.east) to [out=-30,in=-180] (4.65,-0.99);
    draw [->,blue](E.south) to [out=-30,in=-180] (4.65,-1.09);
    draw [<-,red](F.east) to [out=0,in=-200] (4.35,-1.60);
    draw [->,blue](F.south) to [out=0,in=-200] (4.35,-1.70);
    draw [<-,red](G.east) to [out=10,in=-220] (4.65,0.2) node[sloped,above,font=tiny] {$P^{-1}$};
    draw [->,blue](G.south) to [out=10,in=-220] (4.65,0.1);
    draw [<-,red](H.east) to [out=-5,in=180] (3.75,0.2);
    draw [->,blue](H.south) to [out=-5,in=180] (3.75,0.1);
    end{scope}

    coordinate(grid) at (2.9,0.5);
    node[above] at (grid.north) {$mathbb{R}^2$};

    end{tikzpicture}
    end{document}


    Which produces:



    enter image description here



    I tried to used the midway keyword but the result was a misplaced (at least not what I was expecting) label:



    enter image description here










    share|improve this question

























      2












      2








      2








      I'm trying to position two edge labels over and below their respective edges. I'd like them to be center aligned in relation to the edge. This is my current code:



      documentclass[tikz,border=9]{standalone}
      usetikzlibrary{3d}
      usepackage{amsfonts}

      begin{document}
      begin{tikzpicture}[box/.style={rectangle,thick}]

      begin{scope}[x = {(0.5cm,0.5cm)},
      y = {(0.95cm,-0.25cm)},
      z = {(0cm,0.9cm)},
      canvas is yz plane at x=-1]
      draw (-1,-1) rectangle (1,1);
      node[draw,circle,inner sep=1pt,fill=gray](A) at (-.9, -.9) {};
      node[draw,circle,inner sep=1pt,fill=gray](B) at (-.6, -.7) {};
      node[draw,circle,inner sep=1pt,fill=gray](C) at (.7, -.2) {};
      end{scope}
      begin{scope}[x = {(0.5cm,0.5cm)},
      y = {(0.95cm,-0.25cm)},
      z = {(0cm,0.9cm)},
      canvas is xz plane at y=1]
      draw (-1,-1) rectangle (1,1);
      node[draw,circle,inner sep=1pt,fill=gray](D) at (-.5, -.55) {};
      node[draw,circle,inner sep=1pt,fill=gray](E) at (.7, -.1) {};
      node[draw,circle,inner sep=1pt,fill=gray](F) at (-.8, -.08) {};
      end{scope}
      begin{scope}[x = {(0.5cm,0.5cm)},
      y = {(0.95cm,-0.25cm)},
      z = {(0cm,0.9cm)},
      canvas is yx plane at z=1]
      draw (-1,-1) rectangle (1,1);
      node[draw,circle,inner sep=1pt,fill=gray](G) at (.7, .7) {};
      node[draw,circle,inner sep=1pt,fill=gray](H) at (-0.8, .4) {};
      node[above] at (current bounding box.north) {$mathbb{R}^n$};
      end{scope}

      begin{scope}
      draw[step=0.3,gray,very thin] (2,-2.5) grid ++(3,3);

      node[box,fill=green] at (2.55,-2.25){};
      node[box,fill=green] at (2.25,-2.25){};
      node[box,fill=lime] at (4.05,-1.95){};
      node[box,fill=lime] at (4.65,-1.95){};
      node[box,fill=teal] at (4.65,-1.05){};
      node[box,fill=lime] at (4.35,-1.65){};
      node[box,fill=olive] at (4.65,0.15){};
      node[box,fill=yellow] at (3.75,0.15){};

      draw [<-,red](A.east) to [out=-60,in=-130] (2.55,-2.15);
      draw [->,blue](A.south) to [out=-60,in=-130] (2.55,-2.25) node[sloped,below,font=tiny] {Label};
      draw [<-,red](B.east) to [out=-60,in=-150] (2.25,-2.15);
      draw [->,blue](B.south) to [out=-60,in=-150] (2.25,-2.25);
      draw [<-,red](C.east) to [out=-60,in=-180] (4.05,-1.90);
      draw [->,blue](C.south) to [out=-60,in=-180] (4.05,-2);
      draw [<-,red](D.east) to [out=0,in=-190] (4.65,-1.90);
      draw [->,blue](D.south) to [out=0,in=-190] (4.65,-2);
      draw [<-,red](E.east) to [out=-30,in=-180] (4.65,-0.99);
      draw [->,blue](E.south) to [out=-30,in=-180] (4.65,-1.09);
      draw [<-,red](F.east) to [out=0,in=-200] (4.35,-1.60);
      draw [->,blue](F.south) to [out=0,in=-200] (4.35,-1.70);
      draw [<-,red](G.east) to [out=10,in=-220] (4.65,0.2) node[sloped,above,font=tiny] {$P^{-1}$};
      draw [->,blue](G.south) to [out=10,in=-220] (4.65,0.1);
      draw [<-,red](H.east) to [out=-5,in=180] (3.75,0.2);
      draw [->,blue](H.south) to [out=-5,in=180] (3.75,0.1);
      end{scope}

      coordinate(grid) at (2.9,0.5);
      node[above] at (grid.north) {$mathbb{R}^2$};

      end{tikzpicture}
      end{document}


      Which produces:



      enter image description here



      I tried to used the midway keyword but the result was a misplaced (at least not what I was expecting) label:



      enter image description here










      share|improve this question














      I'm trying to position two edge labels over and below their respective edges. I'd like them to be center aligned in relation to the edge. This is my current code:



      documentclass[tikz,border=9]{standalone}
      usetikzlibrary{3d}
      usepackage{amsfonts}

      begin{document}
      begin{tikzpicture}[box/.style={rectangle,thick}]

      begin{scope}[x = {(0.5cm,0.5cm)},
      y = {(0.95cm,-0.25cm)},
      z = {(0cm,0.9cm)},
      canvas is yz plane at x=-1]
      draw (-1,-1) rectangle (1,1);
      node[draw,circle,inner sep=1pt,fill=gray](A) at (-.9, -.9) {};
      node[draw,circle,inner sep=1pt,fill=gray](B) at (-.6, -.7) {};
      node[draw,circle,inner sep=1pt,fill=gray](C) at (.7, -.2) {};
      end{scope}
      begin{scope}[x = {(0.5cm,0.5cm)},
      y = {(0.95cm,-0.25cm)},
      z = {(0cm,0.9cm)},
      canvas is xz plane at y=1]
      draw (-1,-1) rectangle (1,1);
      node[draw,circle,inner sep=1pt,fill=gray](D) at (-.5, -.55) {};
      node[draw,circle,inner sep=1pt,fill=gray](E) at (.7, -.1) {};
      node[draw,circle,inner sep=1pt,fill=gray](F) at (-.8, -.08) {};
      end{scope}
      begin{scope}[x = {(0.5cm,0.5cm)},
      y = {(0.95cm,-0.25cm)},
      z = {(0cm,0.9cm)},
      canvas is yx plane at z=1]
      draw (-1,-1) rectangle (1,1);
      node[draw,circle,inner sep=1pt,fill=gray](G) at (.7, .7) {};
      node[draw,circle,inner sep=1pt,fill=gray](H) at (-0.8, .4) {};
      node[above] at (current bounding box.north) {$mathbb{R}^n$};
      end{scope}

      begin{scope}
      draw[step=0.3,gray,very thin] (2,-2.5) grid ++(3,3);

      node[box,fill=green] at (2.55,-2.25){};
      node[box,fill=green] at (2.25,-2.25){};
      node[box,fill=lime] at (4.05,-1.95){};
      node[box,fill=lime] at (4.65,-1.95){};
      node[box,fill=teal] at (4.65,-1.05){};
      node[box,fill=lime] at (4.35,-1.65){};
      node[box,fill=olive] at (4.65,0.15){};
      node[box,fill=yellow] at (3.75,0.15){};

      draw [<-,red](A.east) to [out=-60,in=-130] (2.55,-2.15);
      draw [->,blue](A.south) to [out=-60,in=-130] (2.55,-2.25) node[sloped,below,font=tiny] {Label};
      draw [<-,red](B.east) to [out=-60,in=-150] (2.25,-2.15);
      draw [->,blue](B.south) to [out=-60,in=-150] (2.25,-2.25);
      draw [<-,red](C.east) to [out=-60,in=-180] (4.05,-1.90);
      draw [->,blue](C.south) to [out=-60,in=-180] (4.05,-2);
      draw [<-,red](D.east) to [out=0,in=-190] (4.65,-1.90);
      draw [->,blue](D.south) to [out=0,in=-190] (4.65,-2);
      draw [<-,red](E.east) to [out=-30,in=-180] (4.65,-0.99);
      draw [->,blue](E.south) to [out=-30,in=-180] (4.65,-1.09);
      draw [<-,red](F.east) to [out=0,in=-200] (4.35,-1.60);
      draw [->,blue](F.south) to [out=0,in=-200] (4.35,-1.70);
      draw [<-,red](G.east) to [out=10,in=-220] (4.65,0.2) node[sloped,above,font=tiny] {$P^{-1}$};
      draw [->,blue](G.south) to [out=10,in=-220] (4.65,0.1);
      draw [<-,red](H.east) to [out=-5,in=180] (3.75,0.2);
      draw [->,blue](H.south) to [out=-5,in=180] (3.75,0.1);
      end{scope}

      coordinate(grid) at (2.9,0.5);
      node[above] at (grid.north) {$mathbb{R}^2$};

      end{tikzpicture}
      end{document}


      Which produces:



      enter image description here



      I tried to used the midway keyword but the result was a misplaced (at least not what I was expecting) label:



      enter image description here







      labels edge






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 29 at 17:38









      pcecconpceccon

      4681617




      4681617






















          1 Answer
          1






          active

          oldest

          votes


















          3














          Something like this ?



          enter image description here



          Put the node before the edge end not after



          documentclass[tikz,border=9]{standalone}
          usetikzlibrary{3d}
          usepackage{amsfonts}

          begin{document}
          begin{tikzpicture}[box/.style={rectangle,thick}]

          begin{scope}[x = {(0.5cm,0.5cm)},
          y = {(0.95cm,-0.25cm)},
          z = {(0cm,0.9cm)},
          canvas is yz plane at x=-1]
          draw (-1,-1) rectangle (1,1);
          node[draw,circle,inner sep=1pt,fill=gray](A) at (-.9, -.9) {};
          node[draw,circle,inner sep=1pt,fill=gray](B) at (-.6, -.7) {};
          node[draw,circle,inner sep=1pt,fill=gray](C) at (.7, -.2) {};
          end{scope}
          begin{scope}[x = {(0.5cm,0.5cm)},
          y = {(0.95cm,-0.25cm)},
          z = {(0cm,0.9cm)},
          canvas is xz plane at y=1]
          draw (-1,-1) rectangle (1,1);
          node[draw,circle,inner sep=1pt,fill=gray](D) at (-.5, -.55) {};
          node[draw,circle,inner sep=1pt,fill=gray](E) at (.7, -.1) {};
          node[draw,circle,inner sep=1pt,fill=gray](F) at (-.8, -.08) {};
          end{scope}
          begin{scope}[x = {(0.5cm,0.5cm)},
          y = {(0.95cm,-0.25cm)},
          z = {(0cm,0.9cm)},
          canvas is yx plane at z=1]
          draw (-1,-1) rectangle (1,1);
          node[draw,circle,inner sep=1pt,fill=gray](G) at (.7, .7) {};
          node[draw,circle,inner sep=1pt,fill=gray](H) at (-0.8, .4) {};
          node[above] at (current bounding box.north) {$mathbb{R}^n$};
          end{scope}

          begin{scope}
          draw[step=0.3,gray,very thin] (2,-2.5) grid ++(3,3);

          node[box,fill=green] at (2.55,-2.25){};
          node[box,fill=green] at (2.25,-2.25){};
          node[box,fill=lime] at (4.05,-1.95){};
          node[box,fill=lime] at (4.65,-1.95){};
          node[box,fill=teal] at (4.65,-1.05){};
          node[box,fill=lime] at (4.35,-1.65){};
          node[box,fill=olive] at (4.65,0.15){};
          node[box,fill=yellow] at (3.75,0.15){};

          draw [<-,red](A.east) to [out=-60,in=-130] (2.55,-2.15);
          draw [->,blue](A.south) to [out=-60,in=-130]node[sloped,below,font=tiny] {Label} (2.55,-2.25) ; % modified
          draw [<-,red](B.east) to [out=-60,in=-150] (2.25,-2.15);
          draw [->,blue](B.south) to [out=-60,in=-150] (2.25,-2.25);
          draw [<-,red](C.east) to [out=-60,in=-180] (4.05,-1.90);
          draw [->,blue](C.south) to [out=-60,in=-180] (4.05,-2);
          draw [<-,red](D.east) to [out=0,in=-190] (4.65,-1.90);
          draw [->,blue](D.south) to [out=0,in=-190] (4.65,-2);
          draw [<-,red](E.east) to [out=-30,in=-180] (4.65,-0.99);
          draw [->,blue](E.south) to [out=-30,in=-180] (4.65,-1.09);
          draw [<-,red](F.east) to [out=0,in=-200] (4.35,-1.60);
          draw [->,blue](F.south) to [out=0,in=-200] (4.35,-1.70);
          draw [<-,red](G.east) to [out=10,in=-220] (4.65,0.2) node[sloped,above,font=tiny] {$P^{-1}$};
          draw [->,blue](G.south) to [out=10,in=-220] (4.65,0.1);
          draw [<-,red](H.east) to [out=-5,in=180] (3.75,0.2);
          draw [->,blue](H.south) to [out=-5,in=180] (3.75,0.1);
          end{scope}

          coordinate(grid) at (2.9,0.5);
          node[above] at (grid.north) {$mathbb{R}^2$};

          end{tikzpicture}
          end{document}





          share|improve this answer























            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
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f472422%2fpositioning-edge-label%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









            3














            Something like this ?



            enter image description here



            Put the node before the edge end not after



            documentclass[tikz,border=9]{standalone}
            usetikzlibrary{3d}
            usepackage{amsfonts}

            begin{document}
            begin{tikzpicture}[box/.style={rectangle,thick}]

            begin{scope}[x = {(0.5cm,0.5cm)},
            y = {(0.95cm,-0.25cm)},
            z = {(0cm,0.9cm)},
            canvas is yz plane at x=-1]
            draw (-1,-1) rectangle (1,1);
            node[draw,circle,inner sep=1pt,fill=gray](A) at (-.9, -.9) {};
            node[draw,circle,inner sep=1pt,fill=gray](B) at (-.6, -.7) {};
            node[draw,circle,inner sep=1pt,fill=gray](C) at (.7, -.2) {};
            end{scope}
            begin{scope}[x = {(0.5cm,0.5cm)},
            y = {(0.95cm,-0.25cm)},
            z = {(0cm,0.9cm)},
            canvas is xz plane at y=1]
            draw (-1,-1) rectangle (1,1);
            node[draw,circle,inner sep=1pt,fill=gray](D) at (-.5, -.55) {};
            node[draw,circle,inner sep=1pt,fill=gray](E) at (.7, -.1) {};
            node[draw,circle,inner sep=1pt,fill=gray](F) at (-.8, -.08) {};
            end{scope}
            begin{scope}[x = {(0.5cm,0.5cm)},
            y = {(0.95cm,-0.25cm)},
            z = {(0cm,0.9cm)},
            canvas is yx plane at z=1]
            draw (-1,-1) rectangle (1,1);
            node[draw,circle,inner sep=1pt,fill=gray](G) at (.7, .7) {};
            node[draw,circle,inner sep=1pt,fill=gray](H) at (-0.8, .4) {};
            node[above] at (current bounding box.north) {$mathbb{R}^n$};
            end{scope}

            begin{scope}
            draw[step=0.3,gray,very thin] (2,-2.5) grid ++(3,3);

            node[box,fill=green] at (2.55,-2.25){};
            node[box,fill=green] at (2.25,-2.25){};
            node[box,fill=lime] at (4.05,-1.95){};
            node[box,fill=lime] at (4.65,-1.95){};
            node[box,fill=teal] at (4.65,-1.05){};
            node[box,fill=lime] at (4.35,-1.65){};
            node[box,fill=olive] at (4.65,0.15){};
            node[box,fill=yellow] at (3.75,0.15){};

            draw [<-,red](A.east) to [out=-60,in=-130] (2.55,-2.15);
            draw [->,blue](A.south) to [out=-60,in=-130]node[sloped,below,font=tiny] {Label} (2.55,-2.25) ; % modified
            draw [<-,red](B.east) to [out=-60,in=-150] (2.25,-2.15);
            draw [->,blue](B.south) to [out=-60,in=-150] (2.25,-2.25);
            draw [<-,red](C.east) to [out=-60,in=-180] (4.05,-1.90);
            draw [->,blue](C.south) to [out=-60,in=-180] (4.05,-2);
            draw [<-,red](D.east) to [out=0,in=-190] (4.65,-1.90);
            draw [->,blue](D.south) to [out=0,in=-190] (4.65,-2);
            draw [<-,red](E.east) to [out=-30,in=-180] (4.65,-0.99);
            draw [->,blue](E.south) to [out=-30,in=-180] (4.65,-1.09);
            draw [<-,red](F.east) to [out=0,in=-200] (4.35,-1.60);
            draw [->,blue](F.south) to [out=0,in=-200] (4.35,-1.70);
            draw [<-,red](G.east) to [out=10,in=-220] (4.65,0.2) node[sloped,above,font=tiny] {$P^{-1}$};
            draw [->,blue](G.south) to [out=10,in=-220] (4.65,0.1);
            draw [<-,red](H.east) to [out=-5,in=180] (3.75,0.2);
            draw [->,blue](H.south) to [out=-5,in=180] (3.75,0.1);
            end{scope}

            coordinate(grid) at (2.9,0.5);
            node[above] at (grid.north) {$mathbb{R}^2$};

            end{tikzpicture}
            end{document}





            share|improve this answer




























              3














              Something like this ?



              enter image description here



              Put the node before the edge end not after



              documentclass[tikz,border=9]{standalone}
              usetikzlibrary{3d}
              usepackage{amsfonts}

              begin{document}
              begin{tikzpicture}[box/.style={rectangle,thick}]

              begin{scope}[x = {(0.5cm,0.5cm)},
              y = {(0.95cm,-0.25cm)},
              z = {(0cm,0.9cm)},
              canvas is yz plane at x=-1]
              draw (-1,-1) rectangle (1,1);
              node[draw,circle,inner sep=1pt,fill=gray](A) at (-.9, -.9) {};
              node[draw,circle,inner sep=1pt,fill=gray](B) at (-.6, -.7) {};
              node[draw,circle,inner sep=1pt,fill=gray](C) at (.7, -.2) {};
              end{scope}
              begin{scope}[x = {(0.5cm,0.5cm)},
              y = {(0.95cm,-0.25cm)},
              z = {(0cm,0.9cm)},
              canvas is xz plane at y=1]
              draw (-1,-1) rectangle (1,1);
              node[draw,circle,inner sep=1pt,fill=gray](D) at (-.5, -.55) {};
              node[draw,circle,inner sep=1pt,fill=gray](E) at (.7, -.1) {};
              node[draw,circle,inner sep=1pt,fill=gray](F) at (-.8, -.08) {};
              end{scope}
              begin{scope}[x = {(0.5cm,0.5cm)},
              y = {(0.95cm,-0.25cm)},
              z = {(0cm,0.9cm)},
              canvas is yx plane at z=1]
              draw (-1,-1) rectangle (1,1);
              node[draw,circle,inner sep=1pt,fill=gray](G) at (.7, .7) {};
              node[draw,circle,inner sep=1pt,fill=gray](H) at (-0.8, .4) {};
              node[above] at (current bounding box.north) {$mathbb{R}^n$};
              end{scope}

              begin{scope}
              draw[step=0.3,gray,very thin] (2,-2.5) grid ++(3,3);

              node[box,fill=green] at (2.55,-2.25){};
              node[box,fill=green] at (2.25,-2.25){};
              node[box,fill=lime] at (4.05,-1.95){};
              node[box,fill=lime] at (4.65,-1.95){};
              node[box,fill=teal] at (4.65,-1.05){};
              node[box,fill=lime] at (4.35,-1.65){};
              node[box,fill=olive] at (4.65,0.15){};
              node[box,fill=yellow] at (3.75,0.15){};

              draw [<-,red](A.east) to [out=-60,in=-130] (2.55,-2.15);
              draw [->,blue](A.south) to [out=-60,in=-130]node[sloped,below,font=tiny] {Label} (2.55,-2.25) ; % modified
              draw [<-,red](B.east) to [out=-60,in=-150] (2.25,-2.15);
              draw [->,blue](B.south) to [out=-60,in=-150] (2.25,-2.25);
              draw [<-,red](C.east) to [out=-60,in=-180] (4.05,-1.90);
              draw [->,blue](C.south) to [out=-60,in=-180] (4.05,-2);
              draw [<-,red](D.east) to [out=0,in=-190] (4.65,-1.90);
              draw [->,blue](D.south) to [out=0,in=-190] (4.65,-2);
              draw [<-,red](E.east) to [out=-30,in=-180] (4.65,-0.99);
              draw [->,blue](E.south) to [out=-30,in=-180] (4.65,-1.09);
              draw [<-,red](F.east) to [out=0,in=-200] (4.35,-1.60);
              draw [->,blue](F.south) to [out=0,in=-200] (4.35,-1.70);
              draw [<-,red](G.east) to [out=10,in=-220] (4.65,0.2) node[sloped,above,font=tiny] {$P^{-1}$};
              draw [->,blue](G.south) to [out=10,in=-220] (4.65,0.1);
              draw [<-,red](H.east) to [out=-5,in=180] (3.75,0.2);
              draw [->,blue](H.south) to [out=-5,in=180] (3.75,0.1);
              end{scope}

              coordinate(grid) at (2.9,0.5);
              node[above] at (grid.north) {$mathbb{R}^2$};

              end{tikzpicture}
              end{document}





              share|improve this answer


























                3












                3








                3







                Something like this ?



                enter image description here



                Put the node before the edge end not after



                documentclass[tikz,border=9]{standalone}
                usetikzlibrary{3d}
                usepackage{amsfonts}

                begin{document}
                begin{tikzpicture}[box/.style={rectangle,thick}]

                begin{scope}[x = {(0.5cm,0.5cm)},
                y = {(0.95cm,-0.25cm)},
                z = {(0cm,0.9cm)},
                canvas is yz plane at x=-1]
                draw (-1,-1) rectangle (1,1);
                node[draw,circle,inner sep=1pt,fill=gray](A) at (-.9, -.9) {};
                node[draw,circle,inner sep=1pt,fill=gray](B) at (-.6, -.7) {};
                node[draw,circle,inner sep=1pt,fill=gray](C) at (.7, -.2) {};
                end{scope}
                begin{scope}[x = {(0.5cm,0.5cm)},
                y = {(0.95cm,-0.25cm)},
                z = {(0cm,0.9cm)},
                canvas is xz plane at y=1]
                draw (-1,-1) rectangle (1,1);
                node[draw,circle,inner sep=1pt,fill=gray](D) at (-.5, -.55) {};
                node[draw,circle,inner sep=1pt,fill=gray](E) at (.7, -.1) {};
                node[draw,circle,inner sep=1pt,fill=gray](F) at (-.8, -.08) {};
                end{scope}
                begin{scope}[x = {(0.5cm,0.5cm)},
                y = {(0.95cm,-0.25cm)},
                z = {(0cm,0.9cm)},
                canvas is yx plane at z=1]
                draw (-1,-1) rectangle (1,1);
                node[draw,circle,inner sep=1pt,fill=gray](G) at (.7, .7) {};
                node[draw,circle,inner sep=1pt,fill=gray](H) at (-0.8, .4) {};
                node[above] at (current bounding box.north) {$mathbb{R}^n$};
                end{scope}

                begin{scope}
                draw[step=0.3,gray,very thin] (2,-2.5) grid ++(3,3);

                node[box,fill=green] at (2.55,-2.25){};
                node[box,fill=green] at (2.25,-2.25){};
                node[box,fill=lime] at (4.05,-1.95){};
                node[box,fill=lime] at (4.65,-1.95){};
                node[box,fill=teal] at (4.65,-1.05){};
                node[box,fill=lime] at (4.35,-1.65){};
                node[box,fill=olive] at (4.65,0.15){};
                node[box,fill=yellow] at (3.75,0.15){};

                draw [<-,red](A.east) to [out=-60,in=-130] (2.55,-2.15);
                draw [->,blue](A.south) to [out=-60,in=-130]node[sloped,below,font=tiny] {Label} (2.55,-2.25) ; % modified
                draw [<-,red](B.east) to [out=-60,in=-150] (2.25,-2.15);
                draw [->,blue](B.south) to [out=-60,in=-150] (2.25,-2.25);
                draw [<-,red](C.east) to [out=-60,in=-180] (4.05,-1.90);
                draw [->,blue](C.south) to [out=-60,in=-180] (4.05,-2);
                draw [<-,red](D.east) to [out=0,in=-190] (4.65,-1.90);
                draw [->,blue](D.south) to [out=0,in=-190] (4.65,-2);
                draw [<-,red](E.east) to [out=-30,in=-180] (4.65,-0.99);
                draw [->,blue](E.south) to [out=-30,in=-180] (4.65,-1.09);
                draw [<-,red](F.east) to [out=0,in=-200] (4.35,-1.60);
                draw [->,blue](F.south) to [out=0,in=-200] (4.35,-1.70);
                draw [<-,red](G.east) to [out=10,in=-220] (4.65,0.2) node[sloped,above,font=tiny] {$P^{-1}$};
                draw [->,blue](G.south) to [out=10,in=-220] (4.65,0.1);
                draw [<-,red](H.east) to [out=-5,in=180] (3.75,0.2);
                draw [->,blue](H.south) to [out=-5,in=180] (3.75,0.1);
                end{scope}

                coordinate(grid) at (2.9,0.5);
                node[above] at (grid.north) {$mathbb{R}^2$};

                end{tikzpicture}
                end{document}





                share|improve this answer













                Something like this ?



                enter image description here



                Put the node before the edge end not after



                documentclass[tikz,border=9]{standalone}
                usetikzlibrary{3d}
                usepackage{amsfonts}

                begin{document}
                begin{tikzpicture}[box/.style={rectangle,thick}]

                begin{scope}[x = {(0.5cm,0.5cm)},
                y = {(0.95cm,-0.25cm)},
                z = {(0cm,0.9cm)},
                canvas is yz plane at x=-1]
                draw (-1,-1) rectangle (1,1);
                node[draw,circle,inner sep=1pt,fill=gray](A) at (-.9, -.9) {};
                node[draw,circle,inner sep=1pt,fill=gray](B) at (-.6, -.7) {};
                node[draw,circle,inner sep=1pt,fill=gray](C) at (.7, -.2) {};
                end{scope}
                begin{scope}[x = {(0.5cm,0.5cm)},
                y = {(0.95cm,-0.25cm)},
                z = {(0cm,0.9cm)},
                canvas is xz plane at y=1]
                draw (-1,-1) rectangle (1,1);
                node[draw,circle,inner sep=1pt,fill=gray](D) at (-.5, -.55) {};
                node[draw,circle,inner sep=1pt,fill=gray](E) at (.7, -.1) {};
                node[draw,circle,inner sep=1pt,fill=gray](F) at (-.8, -.08) {};
                end{scope}
                begin{scope}[x = {(0.5cm,0.5cm)},
                y = {(0.95cm,-0.25cm)},
                z = {(0cm,0.9cm)},
                canvas is yx plane at z=1]
                draw (-1,-1) rectangle (1,1);
                node[draw,circle,inner sep=1pt,fill=gray](G) at (.7, .7) {};
                node[draw,circle,inner sep=1pt,fill=gray](H) at (-0.8, .4) {};
                node[above] at (current bounding box.north) {$mathbb{R}^n$};
                end{scope}

                begin{scope}
                draw[step=0.3,gray,very thin] (2,-2.5) grid ++(3,3);

                node[box,fill=green] at (2.55,-2.25){};
                node[box,fill=green] at (2.25,-2.25){};
                node[box,fill=lime] at (4.05,-1.95){};
                node[box,fill=lime] at (4.65,-1.95){};
                node[box,fill=teal] at (4.65,-1.05){};
                node[box,fill=lime] at (4.35,-1.65){};
                node[box,fill=olive] at (4.65,0.15){};
                node[box,fill=yellow] at (3.75,0.15){};

                draw [<-,red](A.east) to [out=-60,in=-130] (2.55,-2.15);
                draw [->,blue](A.south) to [out=-60,in=-130]node[sloped,below,font=tiny] {Label} (2.55,-2.25) ; % modified
                draw [<-,red](B.east) to [out=-60,in=-150] (2.25,-2.15);
                draw [->,blue](B.south) to [out=-60,in=-150] (2.25,-2.25);
                draw [<-,red](C.east) to [out=-60,in=-180] (4.05,-1.90);
                draw [->,blue](C.south) to [out=-60,in=-180] (4.05,-2);
                draw [<-,red](D.east) to [out=0,in=-190] (4.65,-1.90);
                draw [->,blue](D.south) to [out=0,in=-190] (4.65,-2);
                draw [<-,red](E.east) to [out=-30,in=-180] (4.65,-0.99);
                draw [->,blue](E.south) to [out=-30,in=-180] (4.65,-1.09);
                draw [<-,red](F.east) to [out=0,in=-200] (4.35,-1.60);
                draw [->,blue](F.south) to [out=0,in=-200] (4.35,-1.70);
                draw [<-,red](G.east) to [out=10,in=-220] (4.65,0.2) node[sloped,above,font=tiny] {$P^{-1}$};
                draw [->,blue](G.south) to [out=10,in=-220] (4.65,0.1);
                draw [<-,red](H.east) to [out=-5,in=180] (3.75,0.2);
                draw [->,blue](H.south) to [out=-5,in=180] (3.75,0.1);
                end{scope}

                coordinate(grid) at (2.9,0.5);
                node[above] at (grid.north) {$mathbb{R}^2$};

                end{tikzpicture}
                end{document}






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 29 at 19:27









                Hafid BoukhouldaHafid Boukhoulda

                3,1571521




                3,1571521






























                    draft saved

                    draft discarded




















































                    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.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f472422%2fpositioning-edge-label%23new-answer', 'question_page');
                    }
                    );

                    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







                    Popular posts from this blog

                    How to send String Array data to Server using php in android

                    Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                    Is anime1.com a legal site for watching anime?