Draw circle and vectors

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
3
down vote

favorite












I've plotted the following graph, using tikz:



circle



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









share|improve this question























  • 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














up vote
3
down vote

favorite












I've plotted the following graph, using tikz:



circle



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









share|improve this question























  • 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












up vote
3
down vote

favorite









up vote
3
down vote

favorite











I've plotted the following graph, using tikz:



circle



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









share|improve this question















I've plotted the following graph, using tikz:



circle



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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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
















  • 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










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


enter image description here






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



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f455072%2fdraw-circle-and-vectors%23new-answer', 'question_page');

    );

    Post as a guest






























    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


    enter image description here






    share|improve this answer
























      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


      enter image description here






      share|improve this answer






















        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


        enter image description here






        share|improve this answer












        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


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 1 hour ago









        marmot

        65.1k471139




        65.1k471139



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            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













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Christian Cage

            How to properly install USB display driver for Fresco Logic FL2000DX on Ubuntu?