Positioning edge label
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:

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

labels edge
add a comment |
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:

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

labels edge
add a comment |
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:

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

labels edge
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:

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

labels edge
labels edge
asked Jan 29 at 17:38
pcecconpceccon
4681617
4681617
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Something like this ?

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}
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%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
Something like this ?

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}
add a comment |
Something like this ?

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}
add a comment |
Something like this ?

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}
Something like this ?

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}
answered Jan 29 at 19:27
Hafid BoukhouldaHafid Boukhoulda
3,1571521
3,1571521
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%2f472422%2fpositioning-edge-label%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