Draw circle and vectors
Clash Royale CLAN TAG#URR8PPP
up vote
3
down vote
favorite
I've plotted the following graph, using tikz
:
But I don't know how to make the vectors end exactly on the circle. Is there any simple way to do it?
CODE
documentclassstandalone
usepackagetikz
usetikzlibrarypositioning% To get more advances positioning options
usetikzlibraryarrows
usepackagemathtools
begindocument
begintikzpicture
draw[step=1cm,gray!25!,very thin] (-5,-5) grid (5,5);
draw[thick,->] (-3,0) -- (3,0) node[anchor=north west] x axis;
draw[thick,->] (0,-3) -- (0,3) node[anchor=south east] y axis;
draw[thick,->] (0,0) -- (2,2) node[midway,above] $veca$;
draw[thick,->] (-2,0) -- (2,2) node[midway, above] $veca'$;
draw[blue, thick,->] (-2,0) -- (0,0) node[midway, above] $Delta x$;
draw[red, thick] (0,0) circle (2 cm);
endtikzpicture
enddocument
tikz-pgf
add a comment |Â
up vote
3
down vote
favorite
I've plotted the following graph, using tikz
:
But I don't know how to make the vectors end exactly on the circle. Is there any simple way to do it?
CODE
documentclassstandalone
usepackagetikz
usetikzlibrarypositioning% To get more advances positioning options
usetikzlibraryarrows
usepackagemathtools
begindocument
begintikzpicture
draw[step=1cm,gray!25!,very thin] (-5,-5) grid (5,5);
draw[thick,->] (-3,0) -- (3,0) node[anchor=north west] x axis;
draw[thick,->] (0,-3) -- (0,3) node[anchor=south east] y axis;
draw[thick,->] (0,0) -- (2,2) node[midway,above] $veca$;
draw[thick,->] (-2,0) -- (2,2) node[midway, above] $veca'$;
draw[blue, thick,->] (-2,0) -- (0,0) node[midway, above] $Delta x$;
draw[red, thick] (0,0) circle (2 cm);
endtikzpicture
enddocument
tikz-pgf
You can use functions like cosine as coordinate x or yâ¦
â TeXnician
2 hours ago
You could use polar coordinates, e.g.(60:2)
instead of(2,2)
.
â marmot
2 hours ago
do you want to add an answer? @marmot otherwise I'll remove the post ( too simple and unuseful question I think).
â santimirandarp
2 hours ago
I had a couple of comments, all very minor, so I added an answer. You can still decide to delete the question, I am not doing this for reputation. Yet I do not think that everyone but you knows polar coordinates, so the question is OK IMHO.
â marmot
1 hour ago
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I've plotted the following graph, using tikz
:
But I don't know how to make the vectors end exactly on the circle. Is there any simple way to do it?
CODE
documentclassstandalone
usepackagetikz
usetikzlibrarypositioning% To get more advances positioning options
usetikzlibraryarrows
usepackagemathtools
begindocument
begintikzpicture
draw[step=1cm,gray!25!,very thin] (-5,-5) grid (5,5);
draw[thick,->] (-3,0) -- (3,0) node[anchor=north west] x axis;
draw[thick,->] (0,-3) -- (0,3) node[anchor=south east] y axis;
draw[thick,->] (0,0) -- (2,2) node[midway,above] $veca$;
draw[thick,->] (-2,0) -- (2,2) node[midway, above] $veca'$;
draw[blue, thick,->] (-2,0) -- (0,0) node[midway, above] $Delta x$;
draw[red, thick] (0,0) circle (2 cm);
endtikzpicture
enddocument
tikz-pgf
I've plotted the following graph, using tikz
:
But I don't know how to make the vectors end exactly on the circle. Is there any simple way to do it?
CODE
documentclassstandalone
usepackagetikz
usetikzlibrarypositioning% To get more advances positioning options
usetikzlibraryarrows
usepackagemathtools
begindocument
begintikzpicture
draw[step=1cm,gray!25!,very thin] (-5,-5) grid (5,5);
draw[thick,->] (-3,0) -- (3,0) node[anchor=north west] x axis;
draw[thick,->] (0,-3) -- (0,3) node[anchor=south east] y axis;
draw[thick,->] (0,0) -- (2,2) node[midway,above] $veca$;
draw[thick,->] (-2,0) -- (2,2) node[midway, above] $veca'$;
draw[blue, thick,->] (-2,0) -- (0,0) node[midway, above] $Delta x$;
draw[red, thick] (0,0) circle (2 cm);
endtikzpicture
enddocument
tikz-pgf
tikz-pgf
edited 2 hours ago
asked 2 hours ago
santimirandarp
1,3033620
1,3033620
You can use functions like cosine as coordinate x or yâ¦
â TeXnician
2 hours ago
You could use polar coordinates, e.g.(60:2)
instead of(2,2)
.
â marmot
2 hours ago
do you want to add an answer? @marmot otherwise I'll remove the post ( too simple and unuseful question I think).
â santimirandarp
2 hours ago
I had a couple of comments, all very minor, so I added an answer. You can still decide to delete the question, I am not doing this for reputation. Yet I do not think that everyone but you knows polar coordinates, so the question is OK IMHO.
â marmot
1 hour ago
add a comment |Â
You can use functions like cosine as coordinate x or yâ¦
â TeXnician
2 hours ago
You could use polar coordinates, e.g.(60:2)
instead of(2,2)
.
â marmot
2 hours ago
do you want to add an answer? @marmot otherwise I'll remove the post ( too simple and unuseful question I think).
â santimirandarp
2 hours ago
I had a couple of comments, all very minor, so I added an answer. You can still decide to delete the question, I am not doing this for reputation. Yet I do not think that everyone but you knows polar coordinates, so the question is OK IMHO.
â marmot
1 hour ago
You can use functions like cosine as coordinate x or yâ¦
â TeXnician
2 hours ago
You can use functions like cosine as coordinate x or yâ¦
â TeXnician
2 hours ago
You could use polar coordinates, e.g.
(60:2)
instead of (2,2)
.â marmot
2 hours ago
You could use polar coordinates, e.g.
(60:2)
instead of (2,2)
.â marmot
2 hours ago
do you want to add an answer? @marmot otherwise I'll remove the post ( too simple and unuseful question I think).
â santimirandarp
2 hours ago
do you want to add an answer? @marmot otherwise I'll remove the post ( too simple and unuseful question I think).
â santimirandarp
2 hours ago
I had a couple of comments, all very minor, so I added an answer. You can still decide to delete the question, I am not doing this for reputation. Yet I do not think that everyone but you knows polar coordinates, so the question is OK IMHO.
â marmot
1 hour ago
I had a couple of comments, all very minor, so I added an answer. You can still decide to delete the question, I am not doing this for reputation. Yet I do not think that everyone but you knows polar coordinates, so the question is OK IMHO.
â marmot
1 hour ago
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
3
down vote
accepted
You could use polar coordinates. And you do not need the libraries you are loading here, and in any case I would prefer arrows.meta
over arrows
. mathtools
is not used either. And I would label repeating coordinates such that the diagram becomes easier to adjust.
documentclass[tikz,border=3.14mm]standalone
begindocument
begintikzpicture[>=latex]
draw[step=1cm,gray!25!,very thin] (-5,-5) grid (5,5);
draw[thick,->] (-3,0) -- (3,0) node[anchor=north west] x axis;
draw[thick,->] (0,-3) -- (0,3) node[anchor=south east] y axis;
draw[thick,->] (0,0) coordinate (O) -- (50:2) coordinate (oc)
node[midway,below] $veca$;
draw[thick,->] (-2,0) coordinate (L) -- (oc) node[midway, above] $veca'$;
draw[blue, thick,->] (L) -- (O) node[midway, above] $Delta x$;
draw[red, thick] (O) circle (2 cm);
endtikzpicture
enddocument
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
You could use polar coordinates. And you do not need the libraries you are loading here, and in any case I would prefer arrows.meta
over arrows
. mathtools
is not used either. And I would label repeating coordinates such that the diagram becomes easier to adjust.
documentclass[tikz,border=3.14mm]standalone
begindocument
begintikzpicture[>=latex]
draw[step=1cm,gray!25!,very thin] (-5,-5) grid (5,5);
draw[thick,->] (-3,0) -- (3,0) node[anchor=north west] x axis;
draw[thick,->] (0,-3) -- (0,3) node[anchor=south east] y axis;
draw[thick,->] (0,0) coordinate (O) -- (50:2) coordinate (oc)
node[midway,below] $veca$;
draw[thick,->] (-2,0) coordinate (L) -- (oc) node[midway, above] $veca'$;
draw[blue, thick,->] (L) -- (O) node[midway, above] $Delta x$;
draw[red, thick] (O) circle (2 cm);
endtikzpicture
enddocument
add a comment |Â
up vote
3
down vote
accepted
You could use polar coordinates. And you do not need the libraries you are loading here, and in any case I would prefer arrows.meta
over arrows
. mathtools
is not used either. And I would label repeating coordinates such that the diagram becomes easier to adjust.
documentclass[tikz,border=3.14mm]standalone
begindocument
begintikzpicture[>=latex]
draw[step=1cm,gray!25!,very thin] (-5,-5) grid (5,5);
draw[thick,->] (-3,0) -- (3,0) node[anchor=north west] x axis;
draw[thick,->] (0,-3) -- (0,3) node[anchor=south east] y axis;
draw[thick,->] (0,0) coordinate (O) -- (50:2) coordinate (oc)
node[midway,below] $veca$;
draw[thick,->] (-2,0) coordinate (L) -- (oc) node[midway, above] $veca'$;
draw[blue, thick,->] (L) -- (O) node[midway, above] $Delta x$;
draw[red, thick] (O) circle (2 cm);
endtikzpicture
enddocument
add a comment |Â
up vote
3
down vote
accepted
up vote
3
down vote
accepted
You could use polar coordinates. And you do not need the libraries you are loading here, and in any case I would prefer arrows.meta
over arrows
. mathtools
is not used either. And I would label repeating coordinates such that the diagram becomes easier to adjust.
documentclass[tikz,border=3.14mm]standalone
begindocument
begintikzpicture[>=latex]
draw[step=1cm,gray!25!,very thin] (-5,-5) grid (5,5);
draw[thick,->] (-3,0) -- (3,0) node[anchor=north west] x axis;
draw[thick,->] (0,-3) -- (0,3) node[anchor=south east] y axis;
draw[thick,->] (0,0) coordinate (O) -- (50:2) coordinate (oc)
node[midway,below] $veca$;
draw[thick,->] (-2,0) coordinate (L) -- (oc) node[midway, above] $veca'$;
draw[blue, thick,->] (L) -- (O) node[midway, above] $Delta x$;
draw[red, thick] (O) circle (2 cm);
endtikzpicture
enddocument
You could use polar coordinates. And you do not need the libraries you are loading here, and in any case I would prefer arrows.meta
over arrows
. mathtools
is not used either. And I would label repeating coordinates such that the diagram becomes easier to adjust.
documentclass[tikz,border=3.14mm]standalone
begindocument
begintikzpicture[>=latex]
draw[step=1cm,gray!25!,very thin] (-5,-5) grid (5,5);
draw[thick,->] (-3,0) -- (3,0) node[anchor=north west] x axis;
draw[thick,->] (0,-3) -- (0,3) node[anchor=south east] y axis;
draw[thick,->] (0,0) coordinate (O) -- (50:2) coordinate (oc)
node[midway,below] $veca$;
draw[thick,->] (-2,0) coordinate (L) -- (oc) node[midway, above] $veca'$;
draw[blue, thick,->] (L) -- (O) node[midway, above] $Delta x$;
draw[red, thick] (O) circle (2 cm);
endtikzpicture
enddocument
answered 1 hour ago
marmot
65.1k471139
65.1k471139
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f455072%2fdraw-circle-and-vectors%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
You can use functions like cosine as coordinate x or yâ¦
â TeXnician
2 hours ago
You could use polar coordinates, e.g.
(60:2)
instead of(2,2)
.â marmot
2 hours ago
do you want to add an answer? @marmot otherwise I'll remove the post ( too simple and unuseful question I think).
â santimirandarp
2 hours ago
I had a couple of comments, all very minor, so I added an answer. You can still decide to delete the question, I am not doing this for reputation. Yet I do not think that everyone but you knows polar coordinates, so the question is OK IMHO.
â marmot
1 hour ago