How to change the rotation of the angle with tikz












2















I have the following code:



documentclass{article}

usepackage{tikz}
usetikzlibrary{calc,patterns,angles,quotes}

begin{document}
begin{figure}
begin{tikzpicture}[scale=1]
node (x1) at (0, 0, 0) {};
node (x2) at (2, 0, 0) {};
node (x3) at (3.45, 1.45, 0) {};
node (x4) at (4, 0, 0) {};
shade [ball color=black] (x1) circle (0.15);
shade [ball color=black] (x2) circle (0.15);
shade [ball color=black] (x3) circle (0.15);
shade [ball color=gray] (x4) circle (0.15);
draw (x1) -- (x2) -- (x3);
draw[gray] (x1) -- (x2) -- (x4);
draw[gray,dashed] (4, 0, 0) arc (0:26:3cm);
pic [draw, ->, "$theta$", angle eccentricity=1.5] {angle = x1--x2--x3};
end{tikzpicture}
end{figure}
end{document}


I get the following figure:



enter image description here



But I want the rotation of the angle arrow to be the opposite. Any help is appreciated.










share|improve this question





























    2















    I have the following code:



    documentclass{article}

    usepackage{tikz}
    usetikzlibrary{calc,patterns,angles,quotes}

    begin{document}
    begin{figure}
    begin{tikzpicture}[scale=1]
    node (x1) at (0, 0, 0) {};
    node (x2) at (2, 0, 0) {};
    node (x3) at (3.45, 1.45, 0) {};
    node (x4) at (4, 0, 0) {};
    shade [ball color=black] (x1) circle (0.15);
    shade [ball color=black] (x2) circle (0.15);
    shade [ball color=black] (x3) circle (0.15);
    shade [ball color=gray] (x4) circle (0.15);
    draw (x1) -- (x2) -- (x3);
    draw[gray] (x1) -- (x2) -- (x4);
    draw[gray,dashed] (4, 0, 0) arc (0:26:3cm);
    pic [draw, ->, "$theta$", angle eccentricity=1.5] {angle = x1--x2--x3};
    end{tikzpicture}
    end{figure}
    end{document}


    I get the following figure:



    enter image description here



    But I want the rotation of the angle arrow to be the opposite. Any help is appreciated.










    share|improve this question



























      2












      2








      2








      I have the following code:



      documentclass{article}

      usepackage{tikz}
      usetikzlibrary{calc,patterns,angles,quotes}

      begin{document}
      begin{figure}
      begin{tikzpicture}[scale=1]
      node (x1) at (0, 0, 0) {};
      node (x2) at (2, 0, 0) {};
      node (x3) at (3.45, 1.45, 0) {};
      node (x4) at (4, 0, 0) {};
      shade [ball color=black] (x1) circle (0.15);
      shade [ball color=black] (x2) circle (0.15);
      shade [ball color=black] (x3) circle (0.15);
      shade [ball color=gray] (x4) circle (0.15);
      draw (x1) -- (x2) -- (x3);
      draw[gray] (x1) -- (x2) -- (x4);
      draw[gray,dashed] (4, 0, 0) arc (0:26:3cm);
      pic [draw, ->, "$theta$", angle eccentricity=1.5] {angle = x1--x2--x3};
      end{tikzpicture}
      end{figure}
      end{document}


      I get the following figure:



      enter image description here



      But I want the rotation of the angle arrow to be the opposite. Any help is appreciated.










      share|improve this question
















      I have the following code:



      documentclass{article}

      usepackage{tikz}
      usetikzlibrary{calc,patterns,angles,quotes}

      begin{document}
      begin{figure}
      begin{tikzpicture}[scale=1]
      node (x1) at (0, 0, 0) {};
      node (x2) at (2, 0, 0) {};
      node (x3) at (3.45, 1.45, 0) {};
      node (x4) at (4, 0, 0) {};
      shade [ball color=black] (x1) circle (0.15);
      shade [ball color=black] (x2) circle (0.15);
      shade [ball color=black] (x3) circle (0.15);
      shade [ball color=gray] (x4) circle (0.15);
      draw (x1) -- (x2) -- (x3);
      draw[gray] (x1) -- (x2) -- (x4);
      draw[gray,dashed] (4, 0, 0) arc (0:26:3cm);
      pic [draw, ->, "$theta$", angle eccentricity=1.5] {angle = x1--x2--x3};
      end{tikzpicture}
      end{figure}
      end{document}


      I get the following figure:



      enter image description here



      But I want the rotation of the angle arrow to be the opposite. Any help is appreciated.







      tikz-pgf






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 16 at 15:02







      beliz

















      asked Mar 16 at 14:57









      belizbeliz

      277




      277






















          1 Answer
          1






          active

          oldest

          votes


















          3














          As far as I know, pic makes angles anti-clockwise. Therefore, it should be x3--x2--x1 instead of x1--x2--x3.



          By the way, option scale=1 is unnecessary.



          documentclass[tikz]{standalone}
          usetikzlibrary{calc,patterns,angles,quotes}

          begin{document}
          begin{tikzpicture}
          node (x1) at (0, 0, 0) {};
          node (x2) at (2, 0, 0) {};
          node (x3) at (3.45, 1.45, 0) {};
          node (x4) at (4, 0, 0) {};
          shade [ball color=black] (x1) circle (0.15);
          shade [ball color=black] (x2) circle (0.15);
          shade [ball color=black] (x3) circle (0.15);
          shade [ball color=gray] (x4) circle (0.15);
          draw (x1) -- (x2) -- (x3);
          draw[gray] (x1) -- (x2) -- (x4);
          draw[gray,dashed] (4, 0, 0) arc (0:26:3cm);
          pic [draw, <-, "$theta$", angle eccentricity=1.5] {angle = x3--x2--x1};
          end{tikzpicture}
          end{document}


          enter image description here





          Edit 1



          Better version IMHO



          documentclass[tikz]{standalone}
          usetikzlibrary{calc,patterns,angles,quotes}

          begin{document}
          begin{tikzpicture}
          node (x1) at (0, 0, 0) {};
          node (x2) at (2, 0, 0) {};
          node (x3) at ({cos(26)*3+1}, {sin(26)*3}, 0) {};
          node (x4) at (4, 0, 0) {};
          pic [draw, <-, "$theta$", angle eccentricity=1.5] {angle = x3--x2--x1};
          draw (x1) -- (x2) -- (x3);
          draw[gray] (x1) -- (x2) -- (x4);
          draw[gray,dashed] (4, 0, 0) arc (0:26:3cm);
          shade [ball color=black] (x1) circle (0.15);
          shade [ball color=black] (x2) circle (0.15);
          shade [ball color=black] (x3) circle (0.15);
          shade [ball color=gray] (x4) circle (0.15);
          end{tikzpicture}
          end{document}


          enter image description here






          share|improve this answer


























          • Very nice :-). For my humble opinion the two gray horizontal segments should be in the background. So for the balls you don't see the dashes upstairs.

            – Sebastiano
            Mar 16 at 16:57






          • 1





            @Sebastiano Edited!

            – JouleV
            Mar 16 at 17:14











          • That's really good. I didn't know I could put cos and sin there. Thanks

            – beliz
            Mar 16 at 19:56













          • @beliz You are welcome.

            – JouleV
            Mar 17 at 4:14











          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%2f479797%2fhow-to-change-the-rotation-of-the-angle-with-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









          3














          As far as I know, pic makes angles anti-clockwise. Therefore, it should be x3--x2--x1 instead of x1--x2--x3.



          By the way, option scale=1 is unnecessary.



          documentclass[tikz]{standalone}
          usetikzlibrary{calc,patterns,angles,quotes}

          begin{document}
          begin{tikzpicture}
          node (x1) at (0, 0, 0) {};
          node (x2) at (2, 0, 0) {};
          node (x3) at (3.45, 1.45, 0) {};
          node (x4) at (4, 0, 0) {};
          shade [ball color=black] (x1) circle (0.15);
          shade [ball color=black] (x2) circle (0.15);
          shade [ball color=black] (x3) circle (0.15);
          shade [ball color=gray] (x4) circle (0.15);
          draw (x1) -- (x2) -- (x3);
          draw[gray] (x1) -- (x2) -- (x4);
          draw[gray,dashed] (4, 0, 0) arc (0:26:3cm);
          pic [draw, <-, "$theta$", angle eccentricity=1.5] {angle = x3--x2--x1};
          end{tikzpicture}
          end{document}


          enter image description here





          Edit 1



          Better version IMHO



          documentclass[tikz]{standalone}
          usetikzlibrary{calc,patterns,angles,quotes}

          begin{document}
          begin{tikzpicture}
          node (x1) at (0, 0, 0) {};
          node (x2) at (2, 0, 0) {};
          node (x3) at ({cos(26)*3+1}, {sin(26)*3}, 0) {};
          node (x4) at (4, 0, 0) {};
          pic [draw, <-, "$theta$", angle eccentricity=1.5] {angle = x3--x2--x1};
          draw (x1) -- (x2) -- (x3);
          draw[gray] (x1) -- (x2) -- (x4);
          draw[gray,dashed] (4, 0, 0) arc (0:26:3cm);
          shade [ball color=black] (x1) circle (0.15);
          shade [ball color=black] (x2) circle (0.15);
          shade [ball color=black] (x3) circle (0.15);
          shade [ball color=gray] (x4) circle (0.15);
          end{tikzpicture}
          end{document}


          enter image description here






          share|improve this answer


























          • Very nice :-). For my humble opinion the two gray horizontal segments should be in the background. So for the balls you don't see the dashes upstairs.

            – Sebastiano
            Mar 16 at 16:57






          • 1





            @Sebastiano Edited!

            – JouleV
            Mar 16 at 17:14











          • That's really good. I didn't know I could put cos and sin there. Thanks

            – beliz
            Mar 16 at 19:56













          • @beliz You are welcome.

            – JouleV
            Mar 17 at 4:14
















          3














          As far as I know, pic makes angles anti-clockwise. Therefore, it should be x3--x2--x1 instead of x1--x2--x3.



          By the way, option scale=1 is unnecessary.



          documentclass[tikz]{standalone}
          usetikzlibrary{calc,patterns,angles,quotes}

          begin{document}
          begin{tikzpicture}
          node (x1) at (0, 0, 0) {};
          node (x2) at (2, 0, 0) {};
          node (x3) at (3.45, 1.45, 0) {};
          node (x4) at (4, 0, 0) {};
          shade [ball color=black] (x1) circle (0.15);
          shade [ball color=black] (x2) circle (0.15);
          shade [ball color=black] (x3) circle (0.15);
          shade [ball color=gray] (x4) circle (0.15);
          draw (x1) -- (x2) -- (x3);
          draw[gray] (x1) -- (x2) -- (x4);
          draw[gray,dashed] (4, 0, 0) arc (0:26:3cm);
          pic [draw, <-, "$theta$", angle eccentricity=1.5] {angle = x3--x2--x1};
          end{tikzpicture}
          end{document}


          enter image description here





          Edit 1



          Better version IMHO



          documentclass[tikz]{standalone}
          usetikzlibrary{calc,patterns,angles,quotes}

          begin{document}
          begin{tikzpicture}
          node (x1) at (0, 0, 0) {};
          node (x2) at (2, 0, 0) {};
          node (x3) at ({cos(26)*3+1}, {sin(26)*3}, 0) {};
          node (x4) at (4, 0, 0) {};
          pic [draw, <-, "$theta$", angle eccentricity=1.5] {angle = x3--x2--x1};
          draw (x1) -- (x2) -- (x3);
          draw[gray] (x1) -- (x2) -- (x4);
          draw[gray,dashed] (4, 0, 0) arc (0:26:3cm);
          shade [ball color=black] (x1) circle (0.15);
          shade [ball color=black] (x2) circle (0.15);
          shade [ball color=black] (x3) circle (0.15);
          shade [ball color=gray] (x4) circle (0.15);
          end{tikzpicture}
          end{document}


          enter image description here






          share|improve this answer


























          • Very nice :-). For my humble opinion the two gray horizontal segments should be in the background. So for the balls you don't see the dashes upstairs.

            – Sebastiano
            Mar 16 at 16:57






          • 1





            @Sebastiano Edited!

            – JouleV
            Mar 16 at 17:14











          • That's really good. I didn't know I could put cos and sin there. Thanks

            – beliz
            Mar 16 at 19:56













          • @beliz You are welcome.

            – JouleV
            Mar 17 at 4:14














          3












          3








          3







          As far as I know, pic makes angles anti-clockwise. Therefore, it should be x3--x2--x1 instead of x1--x2--x3.



          By the way, option scale=1 is unnecessary.



          documentclass[tikz]{standalone}
          usetikzlibrary{calc,patterns,angles,quotes}

          begin{document}
          begin{tikzpicture}
          node (x1) at (0, 0, 0) {};
          node (x2) at (2, 0, 0) {};
          node (x3) at (3.45, 1.45, 0) {};
          node (x4) at (4, 0, 0) {};
          shade [ball color=black] (x1) circle (0.15);
          shade [ball color=black] (x2) circle (0.15);
          shade [ball color=black] (x3) circle (0.15);
          shade [ball color=gray] (x4) circle (0.15);
          draw (x1) -- (x2) -- (x3);
          draw[gray] (x1) -- (x2) -- (x4);
          draw[gray,dashed] (4, 0, 0) arc (0:26:3cm);
          pic [draw, <-, "$theta$", angle eccentricity=1.5] {angle = x3--x2--x1};
          end{tikzpicture}
          end{document}


          enter image description here





          Edit 1



          Better version IMHO



          documentclass[tikz]{standalone}
          usetikzlibrary{calc,patterns,angles,quotes}

          begin{document}
          begin{tikzpicture}
          node (x1) at (0, 0, 0) {};
          node (x2) at (2, 0, 0) {};
          node (x3) at ({cos(26)*3+1}, {sin(26)*3}, 0) {};
          node (x4) at (4, 0, 0) {};
          pic [draw, <-, "$theta$", angle eccentricity=1.5] {angle = x3--x2--x1};
          draw (x1) -- (x2) -- (x3);
          draw[gray] (x1) -- (x2) -- (x4);
          draw[gray,dashed] (4, 0, 0) arc (0:26:3cm);
          shade [ball color=black] (x1) circle (0.15);
          shade [ball color=black] (x2) circle (0.15);
          shade [ball color=black] (x3) circle (0.15);
          shade [ball color=gray] (x4) circle (0.15);
          end{tikzpicture}
          end{document}


          enter image description here






          share|improve this answer















          As far as I know, pic makes angles anti-clockwise. Therefore, it should be x3--x2--x1 instead of x1--x2--x3.



          By the way, option scale=1 is unnecessary.



          documentclass[tikz]{standalone}
          usetikzlibrary{calc,patterns,angles,quotes}

          begin{document}
          begin{tikzpicture}
          node (x1) at (0, 0, 0) {};
          node (x2) at (2, 0, 0) {};
          node (x3) at (3.45, 1.45, 0) {};
          node (x4) at (4, 0, 0) {};
          shade [ball color=black] (x1) circle (0.15);
          shade [ball color=black] (x2) circle (0.15);
          shade [ball color=black] (x3) circle (0.15);
          shade [ball color=gray] (x4) circle (0.15);
          draw (x1) -- (x2) -- (x3);
          draw[gray] (x1) -- (x2) -- (x4);
          draw[gray,dashed] (4, 0, 0) arc (0:26:3cm);
          pic [draw, <-, "$theta$", angle eccentricity=1.5] {angle = x3--x2--x1};
          end{tikzpicture}
          end{document}


          enter image description here





          Edit 1



          Better version IMHO



          documentclass[tikz]{standalone}
          usetikzlibrary{calc,patterns,angles,quotes}

          begin{document}
          begin{tikzpicture}
          node (x1) at (0, 0, 0) {};
          node (x2) at (2, 0, 0) {};
          node (x3) at ({cos(26)*3+1}, {sin(26)*3}, 0) {};
          node (x4) at (4, 0, 0) {};
          pic [draw, <-, "$theta$", angle eccentricity=1.5] {angle = x3--x2--x1};
          draw (x1) -- (x2) -- (x3);
          draw[gray] (x1) -- (x2) -- (x4);
          draw[gray,dashed] (4, 0, 0) arc (0:26:3cm);
          shade [ball color=black] (x1) circle (0.15);
          shade [ball color=black] (x2) circle (0.15);
          shade [ball color=black] (x3) circle (0.15);
          shade [ball color=gray] (x4) circle (0.15);
          end{tikzpicture}
          end{document}


          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 16 at 17:14

























          answered Mar 16 at 15:01









          JouleVJouleV

          7,89222053




          7,89222053













          • Very nice :-). For my humble opinion the two gray horizontal segments should be in the background. So for the balls you don't see the dashes upstairs.

            – Sebastiano
            Mar 16 at 16:57






          • 1





            @Sebastiano Edited!

            – JouleV
            Mar 16 at 17:14











          • That's really good. I didn't know I could put cos and sin there. Thanks

            – beliz
            Mar 16 at 19:56













          • @beliz You are welcome.

            – JouleV
            Mar 17 at 4:14



















          • Very nice :-). For my humble opinion the two gray horizontal segments should be in the background. So for the balls you don't see the dashes upstairs.

            – Sebastiano
            Mar 16 at 16:57






          • 1





            @Sebastiano Edited!

            – JouleV
            Mar 16 at 17:14











          • That's really good. I didn't know I could put cos and sin there. Thanks

            – beliz
            Mar 16 at 19:56













          • @beliz You are welcome.

            – JouleV
            Mar 17 at 4:14

















          Very nice :-). For my humble opinion the two gray horizontal segments should be in the background. So for the balls you don't see the dashes upstairs.

          – Sebastiano
          Mar 16 at 16:57





          Very nice :-). For my humble opinion the two gray horizontal segments should be in the background. So for the balls you don't see the dashes upstairs.

          – Sebastiano
          Mar 16 at 16:57




          1




          1





          @Sebastiano Edited!

          – JouleV
          Mar 16 at 17:14





          @Sebastiano Edited!

          – JouleV
          Mar 16 at 17:14













          That's really good. I didn't know I could put cos and sin there. Thanks

          – beliz
          Mar 16 at 19:56







          That's really good. I didn't know I could put cos and sin there. Thanks

          – beliz
          Mar 16 at 19:56















          @beliz You are welcome.

          – JouleV
          Mar 17 at 4:14





          @beliz You are welcome.

          – JouleV
          Mar 17 at 4:14


















          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%2f479797%2fhow-to-change-the-rotation-of-the-angle-with-tikz%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 change which sound is reproduced for terminal bell?

          Can I use Tabulator js library in my java Spring + Thymeleaf project?

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents