How to draw a region of non-uniform electric field in TikZ?
How to draw this diagram in TikZ?
I'm sorry for not providing an minimal example here, because I am totally stuck from the very first. I can't find a solution for many sub-problems which occured during my attempts. Here are the most difficult ones:
The curved lines: They clearly should have the same center, but if I use that center, the height of the picture is extremely huge, which doesn't fit the page. If I usearc
, I can avoid the unnecessary huge height, but it is too difficult to make the arcs concentric.
The right angle notations: I found a solution: draw a small square that has the dashed line and the curves as two sides of it. Of course I can't usepic
here (or can I?). But there are 8 such square here, so drawing such a large number of squares will make my code extremely long, which I don't like.
The curved arrows: I thinkin
andout
is good, but it is too hard for me to find the coordinates and find the tangency angles. I am not "sensitive" incontrols
enough to find the control points.
Can you help me? Thank you in advance!
tikz-pgf diagrams
add a comment |
How to draw this diagram in TikZ?
I'm sorry for not providing an minimal example here, because I am totally stuck from the very first. I can't find a solution for many sub-problems which occured during my attempts. Here are the most difficult ones:
The curved lines: They clearly should have the same center, but if I use that center, the height of the picture is extremely huge, which doesn't fit the page. If I usearc
, I can avoid the unnecessary huge height, but it is too difficult to make the arcs concentric.
The right angle notations: I found a solution: draw a small square that has the dashed line and the curves as two sides of it. Of course I can't usepic
here (or can I?). But there are 8 such square here, so drawing such a large number of squares will make my code extremely long, which I don't like.
The curved arrows: I thinkin
andout
is good, but it is too hard for me to find the coordinates and find the tangency angles. I am not "sensitive" incontrols
enough to find the control points.
Can you help me? Thank you in advance!
tikz-pgf diagrams
1
For the circles: Useclip (boundaryone) rectangle (boundarytwo)
(with correct boundary values) to clip your picture to the relevant part. For the right angles: TikZ provides for loops that can be used to automate it (maybe in combination with the intersections library).
– TeXnician
Feb 21 at 12:48
add a comment |
How to draw this diagram in TikZ?
I'm sorry for not providing an minimal example here, because I am totally stuck from the very first. I can't find a solution for many sub-problems which occured during my attempts. Here are the most difficult ones:
The curved lines: They clearly should have the same center, but if I use that center, the height of the picture is extremely huge, which doesn't fit the page. If I usearc
, I can avoid the unnecessary huge height, but it is too difficult to make the arcs concentric.
The right angle notations: I found a solution: draw a small square that has the dashed line and the curves as two sides of it. Of course I can't usepic
here (or can I?). But there are 8 such square here, so drawing such a large number of squares will make my code extremely long, which I don't like.
The curved arrows: I thinkin
andout
is good, but it is too hard for me to find the coordinates and find the tangency angles. I am not "sensitive" incontrols
enough to find the control points.
Can you help me? Thank you in advance!
tikz-pgf diagrams
How to draw this diagram in TikZ?
I'm sorry for not providing an minimal example here, because I am totally stuck from the very first. I can't find a solution for many sub-problems which occured during my attempts. Here are the most difficult ones:
The curved lines: They clearly should have the same center, but if I use that center, the height of the picture is extremely huge, which doesn't fit the page. If I usearc
, I can avoid the unnecessary huge height, but it is too difficult to make the arcs concentric.
The right angle notations: I found a solution: draw a small square that has the dashed line and the curves as two sides of it. Of course I can't usepic
here (or can I?). But there are 8 such square here, so drawing such a large number of squares will make my code extremely long, which I don't like.
The curved arrows: I thinkin
andout
is good, but it is too hard for me to find the coordinates and find the tangency angles. I am not "sensitive" incontrols
enough to find the control points.
Can you help me? Thank you in advance!
tikz-pgf diagrams
tikz-pgf diagrams
asked Feb 21 at 12:40
SomeoneSomeone
1377
1377
1
For the circles: Useclip (boundaryone) rectangle (boundarytwo)
(with correct boundary values) to clip your picture to the relevant part. For the right angles: TikZ provides for loops that can be used to automate it (maybe in combination with the intersections library).
– TeXnician
Feb 21 at 12:48
add a comment |
1
For the circles: Useclip (boundaryone) rectangle (boundarytwo)
(with correct boundary values) to clip your picture to the relevant part. For the right angles: TikZ provides for loops that can be used to automate it (maybe in combination with the intersections library).
– TeXnician
Feb 21 at 12:48
1
1
For the circles: Use
clip (boundaryone) rectangle (boundarytwo)
(with correct boundary values) to clip your picture to the relevant part. For the right angles: TikZ provides for loops that can be used to automate it (maybe in combination with the intersections library).– TeXnician
Feb 21 at 12:48
For the circles: Use
clip (boundaryone) rectangle (boundarytwo)
(with correct boundary values) to clip your picture to the relevant part. For the right angles: TikZ provides for loops that can be used to automate it (maybe in combination with the intersections library).– TeXnician
Feb 21 at 12:48
add a comment |
1 Answer
1
active
oldest
votes
According to what I find you can get reasonable results by adjusting the looseness. (And you may draw the right angle symbols in a loop.)
documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{arrows.meta,bending}
begin{document}
begin{tikzpicture}[scale=1.5,font=sffamily]
begin{scope}
path[preaction={draw,thick},clip] (-4,3) rectangle (4,8);
foreach Y [count=Z,evaluate=Z as Voltage using {int(440-Z*40)}] in {1.2,1.4,...,2.2}
{draw (0,0) circle ({exp(Y)});
node[rotate=-22.5,fill=white] at (67.5:{exp(Y)}){Voltage~V};}
foreach X in {60,75,...,120}
{draw[dashed] (0,0) -- ++ (X:10);
foreach Y in {1.2,1.4,...,2.2}
{draw ({X-10/exp(Y)}:{exp(Y)}) -- ({X-10/exp(Y)}:{exp(Y)+0.2})
-- ({X}:{exp(Y)+0.2});}}
end{scope}
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=-110] (0.5,8.5) node[right]{A};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=-105,looseness=1.3] (75:8.7) node[right]{B};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=95,looseness=0.8] (90:2.7) node[left]{C};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=75,looseness=1.5] (75:2.7) node[right]{D};
draw[thick,{Circle}-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4.5,5.5)
node[midway,above]{$v$} node[midway,below,align=center]{charged\ particle};
end{tikzpicture}
end{document}
I do not know how inhomogeneous your field is. One could definitely also draw the circles according to Coulombs law.
documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{arrows.meta,bending}
begin{document}
begin{tikzpicture}[scale=1.5,font=sffamily]
begin{scope}
path[preaction={draw,thick},clip] (-4,3) rectangle (4,8);
foreach Voltage in {440,400,...,200}
{draw (0,0) circle ({4*(400/Voltage)});
node[rotate=-22.5,fill=white] at (67.5:{4*(400/Voltage)}){Voltage~V};}
foreach X in {60,75,...,120}
{draw[dashed] (0,0) -- ++ (X:10);
foreach Voltage in {440,400,...,200}
{draw ({X-2*Voltage/400}:{4*(400/Voltage)}) --
({X-2*Voltage/400)}:{4*(400/Voltage)+0.15})
-- ({X}:{4*(400/Voltage)+0.15});}}
end{scope}
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=-110] (0.5,8.5) node[right]{A};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=-105,looseness=1.3] (75:8.7) node[right]{B};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=95,looseness=0.8] (90:2.7) node[left]{C};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=75,looseness=1.5] (75:2.7) node[right]{D};
draw[thick,{Circle}-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4.5,5.5)
node[midway,above]{$v$} node[midway,below,align=center]{charged\ particle};
end{tikzpicture}
end{document}
2
It is wonderful. My best compliments.
– Sebastiano
Feb 21 at 19:53
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%2f475990%2fhow-to-draw-a-region-of-non-uniform-electric-field-in-tikz%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
According to what I find you can get reasonable results by adjusting the looseness. (And you may draw the right angle symbols in a loop.)
documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{arrows.meta,bending}
begin{document}
begin{tikzpicture}[scale=1.5,font=sffamily]
begin{scope}
path[preaction={draw,thick},clip] (-4,3) rectangle (4,8);
foreach Y [count=Z,evaluate=Z as Voltage using {int(440-Z*40)}] in {1.2,1.4,...,2.2}
{draw (0,0) circle ({exp(Y)});
node[rotate=-22.5,fill=white] at (67.5:{exp(Y)}){Voltage~V};}
foreach X in {60,75,...,120}
{draw[dashed] (0,0) -- ++ (X:10);
foreach Y in {1.2,1.4,...,2.2}
{draw ({X-10/exp(Y)}:{exp(Y)}) -- ({X-10/exp(Y)}:{exp(Y)+0.2})
-- ({X}:{exp(Y)+0.2});}}
end{scope}
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=-110] (0.5,8.5) node[right]{A};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=-105,looseness=1.3] (75:8.7) node[right]{B};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=95,looseness=0.8] (90:2.7) node[left]{C};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=75,looseness=1.5] (75:2.7) node[right]{D};
draw[thick,{Circle}-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4.5,5.5)
node[midway,above]{$v$} node[midway,below,align=center]{charged\ particle};
end{tikzpicture}
end{document}
I do not know how inhomogeneous your field is. One could definitely also draw the circles according to Coulombs law.
documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{arrows.meta,bending}
begin{document}
begin{tikzpicture}[scale=1.5,font=sffamily]
begin{scope}
path[preaction={draw,thick},clip] (-4,3) rectangle (4,8);
foreach Voltage in {440,400,...,200}
{draw (0,0) circle ({4*(400/Voltage)});
node[rotate=-22.5,fill=white] at (67.5:{4*(400/Voltage)}){Voltage~V};}
foreach X in {60,75,...,120}
{draw[dashed] (0,0) -- ++ (X:10);
foreach Voltage in {440,400,...,200}
{draw ({X-2*Voltage/400}:{4*(400/Voltage)}) --
({X-2*Voltage/400)}:{4*(400/Voltage)+0.15})
-- ({X}:{4*(400/Voltage)+0.15});}}
end{scope}
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=-110] (0.5,8.5) node[right]{A};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=-105,looseness=1.3] (75:8.7) node[right]{B};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=95,looseness=0.8] (90:2.7) node[left]{C};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=75,looseness=1.5] (75:2.7) node[right]{D};
draw[thick,{Circle}-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4.5,5.5)
node[midway,above]{$v$} node[midway,below,align=center]{charged\ particle};
end{tikzpicture}
end{document}
2
It is wonderful. My best compliments.
– Sebastiano
Feb 21 at 19:53
add a comment |
According to what I find you can get reasonable results by adjusting the looseness. (And you may draw the right angle symbols in a loop.)
documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{arrows.meta,bending}
begin{document}
begin{tikzpicture}[scale=1.5,font=sffamily]
begin{scope}
path[preaction={draw,thick},clip] (-4,3) rectangle (4,8);
foreach Y [count=Z,evaluate=Z as Voltage using {int(440-Z*40)}] in {1.2,1.4,...,2.2}
{draw (0,0) circle ({exp(Y)});
node[rotate=-22.5,fill=white] at (67.5:{exp(Y)}){Voltage~V};}
foreach X in {60,75,...,120}
{draw[dashed] (0,0) -- ++ (X:10);
foreach Y in {1.2,1.4,...,2.2}
{draw ({X-10/exp(Y)}:{exp(Y)}) -- ({X-10/exp(Y)}:{exp(Y)+0.2})
-- ({X}:{exp(Y)+0.2});}}
end{scope}
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=-110] (0.5,8.5) node[right]{A};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=-105,looseness=1.3] (75:8.7) node[right]{B};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=95,looseness=0.8] (90:2.7) node[left]{C};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=75,looseness=1.5] (75:2.7) node[right]{D};
draw[thick,{Circle}-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4.5,5.5)
node[midway,above]{$v$} node[midway,below,align=center]{charged\ particle};
end{tikzpicture}
end{document}
I do not know how inhomogeneous your field is. One could definitely also draw the circles according to Coulombs law.
documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{arrows.meta,bending}
begin{document}
begin{tikzpicture}[scale=1.5,font=sffamily]
begin{scope}
path[preaction={draw,thick},clip] (-4,3) rectangle (4,8);
foreach Voltage in {440,400,...,200}
{draw (0,0) circle ({4*(400/Voltage)});
node[rotate=-22.5,fill=white] at (67.5:{4*(400/Voltage)}){Voltage~V};}
foreach X in {60,75,...,120}
{draw[dashed] (0,0) -- ++ (X:10);
foreach Voltage in {440,400,...,200}
{draw ({X-2*Voltage/400}:{4*(400/Voltage)}) --
({X-2*Voltage/400)}:{4*(400/Voltage)+0.15})
-- ({X}:{4*(400/Voltage)+0.15});}}
end{scope}
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=-110] (0.5,8.5) node[right]{A};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=-105,looseness=1.3] (75:8.7) node[right]{B};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=95,looseness=0.8] (90:2.7) node[left]{C};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=75,looseness=1.5] (75:2.7) node[right]{D};
draw[thick,{Circle}-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4.5,5.5)
node[midway,above]{$v$} node[midway,below,align=center]{charged\ particle};
end{tikzpicture}
end{document}
2
It is wonderful. My best compliments.
– Sebastiano
Feb 21 at 19:53
add a comment |
According to what I find you can get reasonable results by adjusting the looseness. (And you may draw the right angle symbols in a loop.)
documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{arrows.meta,bending}
begin{document}
begin{tikzpicture}[scale=1.5,font=sffamily]
begin{scope}
path[preaction={draw,thick},clip] (-4,3) rectangle (4,8);
foreach Y [count=Z,evaluate=Z as Voltage using {int(440-Z*40)}] in {1.2,1.4,...,2.2}
{draw (0,0) circle ({exp(Y)});
node[rotate=-22.5,fill=white] at (67.5:{exp(Y)}){Voltage~V};}
foreach X in {60,75,...,120}
{draw[dashed] (0,0) -- ++ (X:10);
foreach Y in {1.2,1.4,...,2.2}
{draw ({X-10/exp(Y)}:{exp(Y)}) -- ({X-10/exp(Y)}:{exp(Y)+0.2})
-- ({X}:{exp(Y)+0.2});}}
end{scope}
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=-110] (0.5,8.5) node[right]{A};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=-105,looseness=1.3] (75:8.7) node[right]{B};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=95,looseness=0.8] (90:2.7) node[left]{C};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=75,looseness=1.5] (75:2.7) node[right]{D};
draw[thick,{Circle}-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4.5,5.5)
node[midway,above]{$v$} node[midway,below,align=center]{charged\ particle};
end{tikzpicture}
end{document}
I do not know how inhomogeneous your field is. One could definitely also draw the circles according to Coulombs law.
documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{arrows.meta,bending}
begin{document}
begin{tikzpicture}[scale=1.5,font=sffamily]
begin{scope}
path[preaction={draw,thick},clip] (-4,3) rectangle (4,8);
foreach Voltage in {440,400,...,200}
{draw (0,0) circle ({4*(400/Voltage)});
node[rotate=-22.5,fill=white] at (67.5:{4*(400/Voltage)}){Voltage~V};}
foreach X in {60,75,...,120}
{draw[dashed] (0,0) -- ++ (X:10);
foreach Voltage in {440,400,...,200}
{draw ({X-2*Voltage/400}:{4*(400/Voltage)}) --
({X-2*Voltage/400)}:{4*(400/Voltage)+0.15})
-- ({X}:{4*(400/Voltage)+0.15});}}
end{scope}
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=-110] (0.5,8.5) node[right]{A};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=-105,looseness=1.3] (75:8.7) node[right]{B};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=95,looseness=0.8] (90:2.7) node[left]{C};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=75,looseness=1.5] (75:2.7) node[right]{D};
draw[thick,{Circle}-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4.5,5.5)
node[midway,above]{$v$} node[midway,below,align=center]{charged\ particle};
end{tikzpicture}
end{document}
According to what I find you can get reasonable results by adjusting the looseness. (And you may draw the right angle symbols in a loop.)
documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{arrows.meta,bending}
begin{document}
begin{tikzpicture}[scale=1.5,font=sffamily]
begin{scope}
path[preaction={draw,thick},clip] (-4,3) rectangle (4,8);
foreach Y [count=Z,evaluate=Z as Voltage using {int(440-Z*40)}] in {1.2,1.4,...,2.2}
{draw (0,0) circle ({exp(Y)});
node[rotate=-22.5,fill=white] at (67.5:{exp(Y)}){Voltage~V};}
foreach X in {60,75,...,120}
{draw[dashed] (0,0) -- ++ (X:10);
foreach Y in {1.2,1.4,...,2.2}
{draw ({X-10/exp(Y)}:{exp(Y)}) -- ({X-10/exp(Y)}:{exp(Y)+0.2})
-- ({X}:{exp(Y)+0.2});}}
end{scope}
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=-110] (0.5,8.5) node[right]{A};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=-105,looseness=1.3] (75:8.7) node[right]{B};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=95,looseness=0.8] (90:2.7) node[left]{C};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=75,looseness=1.5] (75:2.7) node[right]{D};
draw[thick,{Circle}-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4.5,5.5)
node[midway,above]{$v$} node[midway,below,align=center]{charged\ particle};
end{tikzpicture}
end{document}
I do not know how inhomogeneous your field is. One could definitely also draw the circles according to Coulombs law.
documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{arrows.meta,bending}
begin{document}
begin{tikzpicture}[scale=1.5,font=sffamily]
begin{scope}
path[preaction={draw,thick},clip] (-4,3) rectangle (4,8);
foreach Voltage in {440,400,...,200}
{draw (0,0) circle ({4*(400/Voltage)});
node[rotate=-22.5,fill=white] at (67.5:{4*(400/Voltage)}){Voltage~V};}
foreach X in {60,75,...,120}
{draw[dashed] (0,0) -- ++ (X:10);
foreach Voltage in {440,400,...,200}
{draw ({X-2*Voltage/400}:{4*(400/Voltage)}) --
({X-2*Voltage/400)}:{4*(400/Voltage)+0.15})
-- ({X}:{4*(400/Voltage)+0.15});}}
end{scope}
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=-110] (0.5,8.5) node[right]{A};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=-105,looseness=1.3] (75:8.7) node[right]{B};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=95,looseness=0.8] (90:2.7) node[left]{C};
draw[thick,-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4,5.5)
to[out=0,in=75,looseness=1.5] (75:2.7) node[right]{D};
draw[thick,{Circle}-{Stealth[length=2mm,bend]}] (-5.5,5.5) -- (-4.5,5.5)
node[midway,above]{$v$} node[midway,below,align=center]{charged\ particle};
end{tikzpicture}
end{document}
edited Feb 21 at 15:40
answered Feb 21 at 15:31
marmotmarmot
104k4124236
104k4124236
2
It is wonderful. My best compliments.
– Sebastiano
Feb 21 at 19:53
add a comment |
2
It is wonderful. My best compliments.
– Sebastiano
Feb 21 at 19:53
2
2
It is wonderful. My best compliments.
– Sebastiano
Feb 21 at 19:53
It is wonderful. My best compliments.
– Sebastiano
Feb 21 at 19:53
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%2f475990%2fhow-to-draw-a-region-of-non-uniform-electric-field-in-tikz%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
For the circles: Use
clip (boundaryone) rectangle (boundarytwo)
(with correct boundary values) to clip your picture to the relevant part. For the right angles: TikZ provides for loops that can be used to automate it (maybe in combination with the intersections library).– TeXnician
Feb 21 at 12:48