TikZ: How to reverse arrow direction without switching start/end point? The Next CEO of Stack Overflowspiral spring in tikzHow can I improve the look of an arrowhead at the end of a small-radius arc?tikz - stealth arrow makes a drift in a curved lineRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeNumerical conditional within tikz keys?Why do I get an extra white page before my TikZ picture?How to prevent rounded and duplicated tick labels in pgfplots with fixed precision?Line up nested tikz enviroments or how to get rid of themHow to draw a square and its diagonals with arrows?tikz arrow directionVertical spacing between arrow and caption with unicode-math

Can you be charged for obstruction for refusing to answer questions?

Would this house-rule that treats advantage as a +1 to the roll instead (and disadvantage as -1) and allows them to stack be balanced?

Find non-case sensitive string in a mixed list of elements?

Why do remote US companies require working in the US?

Is it possible to replace duplicates of a character with one character using tr

What happened in Rome, when the western empire "fell"?

Why doesn't UK go for the same deal Japan has with EU to resolve Brexit?

Why don't programming languages automatically manage the synchronous/asynchronous problem?

Is a distribution that is normal, but highly skewed considered Gaussian?

Is the D&D universe the same as the Forgotten Realms universe?

Can we say or write : "No, it'sn't"?

Domestic-to-international connection at Orlando (MCO)

I believe this to be a fraud - hired, then asked to cash check and send cash as Bitcoin

Example of a Mathematician/Physicist whose Other Publications during their PhD eclipsed their PhD Thesis

Is it convenient to ask the journal's editor for two additional days to complete a review?

What flight has the highest ratio of time difference to flight time?

Do I need to write [sic] when a number is less than 10 but isn't written out?

What was the first Unix version to run on a microcomputer?

Unclear about dynamic binding

Why didn't Khan get resurrected in the Genesis Explosion?

Legal workarounds for testamentary trust perceived as unfair

Help understanding this unsettling image of Titan, Epimetheus, and Saturn's rings?

Where do students learn to solve polynomial equations these days?

Method for adding error messages to a dictionary given a key



TikZ: How to reverse arrow direction without switching start/end point?



The Next CEO of Stack Overflowspiral spring in tikzHow can I improve the look of an arrowhead at the end of a small-radius arc?tikz - stealth arrow makes a drift in a curved lineRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeNumerical conditional within tikz keys?Why do I get an extra white page before my TikZ picture?How to prevent rounded and duplicated tick labels in pgfplots with fixed precision?Line up nested tikz enviroments or how to get rid of themHow to draw a square and its diagonals with arrows?tikz arrow directionVertical spacing between arrow and caption with unicode-math










2















Assumed we have this MWE from user Caramdir:



documentclassarticle
usepackagetikz
usetikzlibraryarrows,calc,decorations.markings,decorations.pathmorphing,arrows.meta

begindocument
begintikzpicture
draw [domain=0:25.1327,variable=t,smooth,samples=75, -Latex]
plot (t r: 0.002*t*t);
endtikzpicture
enddocument



Screenshot of the result




I want to reverse the arrow head position, so that the arrow tip is located at the inner end of the spiral and directs to the center.



How to do so?










share|improve this question
























  • instead -Latex use Latex-? however, the result be ugly ....

    – Zarko
    3 hours ago












  • You just place the arrow in the other end in the options: Latex- -and then you will need to have a look at: tex.stackexchange.com/questions/176779/…

    – hpekristiansen
    3 hours ago















2















Assumed we have this MWE from user Caramdir:



documentclassarticle
usepackagetikz
usetikzlibraryarrows,calc,decorations.markings,decorations.pathmorphing,arrows.meta

begindocument
begintikzpicture
draw [domain=0:25.1327,variable=t,smooth,samples=75, -Latex]
plot (t r: 0.002*t*t);
endtikzpicture
enddocument



Screenshot of the result




I want to reverse the arrow head position, so that the arrow tip is located at the inner end of the spiral and directs to the center.



How to do so?










share|improve this question
























  • instead -Latex use Latex-? however, the result be ugly ....

    – Zarko
    3 hours ago












  • You just place the arrow in the other end in the options: Latex- -and then you will need to have a look at: tex.stackexchange.com/questions/176779/…

    – hpekristiansen
    3 hours ago













2












2








2








Assumed we have this MWE from user Caramdir:



documentclassarticle
usepackagetikz
usetikzlibraryarrows,calc,decorations.markings,decorations.pathmorphing,arrows.meta

begindocument
begintikzpicture
draw [domain=0:25.1327,variable=t,smooth,samples=75, -Latex]
plot (t r: 0.002*t*t);
endtikzpicture
enddocument



Screenshot of the result




I want to reverse the arrow head position, so that the arrow tip is located at the inner end of the spiral and directs to the center.



How to do so?










share|improve this question
















Assumed we have this MWE from user Caramdir:



documentclassarticle
usepackagetikz
usetikzlibraryarrows,calc,decorations.markings,decorations.pathmorphing,arrows.meta

begindocument
begintikzpicture
draw [domain=0:25.1327,variable=t,smooth,samples=75, -Latex]
plot (t r: 0.002*t*t);
endtikzpicture
enddocument



Screenshot of the result




I want to reverse the arrow head position, so that the arrow tip is located at the inner end of the spiral and directs to the center.



How to do so?







tikz-pgf arrows tikz-arrows tikz-node






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 4 hours ago







Dave

















asked 4 hours ago









DaveDave

964619




964619












  • instead -Latex use Latex-? however, the result be ugly ....

    – Zarko
    3 hours ago












  • You just place the arrow in the other end in the options: Latex- -and then you will need to have a look at: tex.stackexchange.com/questions/176779/…

    – hpekristiansen
    3 hours ago

















  • instead -Latex use Latex-? however, the result be ugly ....

    – Zarko
    3 hours ago












  • You just place the arrow in the other end in the options: Latex- -and then you will need to have a look at: tex.stackexchange.com/questions/176779/…

    – hpekristiansen
    3 hours ago
















instead -Latex use Latex-? however, the result be ugly ....

– Zarko
3 hours ago






instead -Latex use Latex-? however, the result be ugly ....

– Zarko
3 hours ago














You just place the arrow in the other end in the options: Latex- -and then you will need to have a look at: tex.stackexchange.com/questions/176779/…

– hpekristiansen
3 hours ago





You just place the arrow in the other end in the options: Latex- -and then you will need to have a look at: tex.stackexchange.com/questions/176779/…

– hpekristiansen
3 hours ago










2 Answers
2






active

oldest

votes


















2














To have arrow's head on opposition side of the spiral curve, you only need to change -Latex to Latex-. However result is quite unexpected (read unusable) ...



It might be more acceptable solution to move the arrow head close to the end of the spiral. For this you can exploit the package decorations.markings:



documentclass[tikz, margin=3mm]standalone
usetikzlibraryarrows.meta, bending, decorations.markings

begindocument
begintikzpicture[
decoration = markings,mark=at position .84 with
arrowreversed[black]Latex[length=1.5mm]
]
draw[postaction=decorate]
plot[domain=0:25,variable=t,smooth,samples=101,
Latex[length=1mm]-]
(t r: 0.002*t*t);
endtikzpicture
enddocument


enter image description here






share|improve this answer






























    0














    First of all, I would like to argue that bent arrows look better, also in the original plot. But since the curve becomes singular at 0, this does not immediately work because of dimension too large errors. However, it does once we approximate the inner-most stretch by an arc.



    documentclassarticle
    usepackagetikz
    usetikzlibraryarrows.meta,bending

    begindocument
    begintikzpicture[scale=2]
    pgfmathsetmacromytpi
    draw[Latex[bend,length=2pt]-]
    (0: 0.002*myt*myt)
    arc(0:180:0.002*myt*myt);
    draw plot[domain=pi:25.1327,variable=t,samples=75,smooth]
    (t r: 0.002*t*t);
    endtikzpicture
    enddocument


    enter image description here



    And here is the original pic with a bent arrow.



    documentclassarticle
    usepackagetikz
    usetikzlibraryarrows.meta,bending

    begindocument
    begintikzpicture
    draw [domain=0:25.1327,variable=t,smooth,samples=75, -Latex[bend]]
    plot (t r: 0.002*t*t);
    endtikzpicture
    enddocument


    enter image description here



    Note that one should always load bending when one attaches arrows to curved paths, regardless of whether or not one bends the arrows, since otherwise the paths get distorted. Bending cures the distortion even when not explicitly used.






    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',
      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%2f482341%2ftikz-how-to-reverse-arrow-direction-without-switching-start-end-point%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      2














      To have arrow's head on opposition side of the spiral curve, you only need to change -Latex to Latex-. However result is quite unexpected (read unusable) ...



      It might be more acceptable solution to move the arrow head close to the end of the spiral. For this you can exploit the package decorations.markings:



      documentclass[tikz, margin=3mm]standalone
      usetikzlibraryarrows.meta, bending, decorations.markings

      begindocument
      begintikzpicture[
      decoration = markings,mark=at position .84 with
      arrowreversed[black]Latex[length=1.5mm]
      ]
      draw[postaction=decorate]
      plot[domain=0:25,variable=t,smooth,samples=101,
      Latex[length=1mm]-]
      (t r: 0.002*t*t);
      endtikzpicture
      enddocument


      enter image description here






      share|improve this answer



























        2














        To have arrow's head on opposition side of the spiral curve, you only need to change -Latex to Latex-. However result is quite unexpected (read unusable) ...



        It might be more acceptable solution to move the arrow head close to the end of the spiral. For this you can exploit the package decorations.markings:



        documentclass[tikz, margin=3mm]standalone
        usetikzlibraryarrows.meta, bending, decorations.markings

        begindocument
        begintikzpicture[
        decoration = markings,mark=at position .84 with
        arrowreversed[black]Latex[length=1.5mm]
        ]
        draw[postaction=decorate]
        plot[domain=0:25,variable=t,smooth,samples=101,
        Latex[length=1mm]-]
        (t r: 0.002*t*t);
        endtikzpicture
        enddocument


        enter image description here






        share|improve this answer

























          2












          2








          2







          To have arrow's head on opposition side of the spiral curve, you only need to change -Latex to Latex-. However result is quite unexpected (read unusable) ...



          It might be more acceptable solution to move the arrow head close to the end of the spiral. For this you can exploit the package decorations.markings:



          documentclass[tikz, margin=3mm]standalone
          usetikzlibraryarrows.meta, bending, decorations.markings

          begindocument
          begintikzpicture[
          decoration = markings,mark=at position .84 with
          arrowreversed[black]Latex[length=1.5mm]
          ]
          draw[postaction=decorate]
          plot[domain=0:25,variable=t,smooth,samples=101,
          Latex[length=1mm]-]
          (t r: 0.002*t*t);
          endtikzpicture
          enddocument


          enter image description here






          share|improve this answer













          To have arrow's head on opposition side of the spiral curve, you only need to change -Latex to Latex-. However result is quite unexpected (read unusable) ...



          It might be more acceptable solution to move the arrow head close to the end of the spiral. For this you can exploit the package decorations.markings:



          documentclass[tikz, margin=3mm]standalone
          usetikzlibraryarrows.meta, bending, decorations.markings

          begindocument
          begintikzpicture[
          decoration = markings,mark=at position .84 with
          arrowreversed[black]Latex[length=1.5mm]
          ]
          draw[postaction=decorate]
          plot[domain=0:25,variable=t,smooth,samples=101,
          Latex[length=1mm]-]
          (t r: 0.002*t*t);
          endtikzpicture
          enddocument


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 3 hours ago









          ZarkoZarko

          128k868168




          128k868168





















              0














              First of all, I would like to argue that bent arrows look better, also in the original plot. But since the curve becomes singular at 0, this does not immediately work because of dimension too large errors. However, it does once we approximate the inner-most stretch by an arc.



              documentclassarticle
              usepackagetikz
              usetikzlibraryarrows.meta,bending

              begindocument
              begintikzpicture[scale=2]
              pgfmathsetmacromytpi
              draw[Latex[bend,length=2pt]-]
              (0: 0.002*myt*myt)
              arc(0:180:0.002*myt*myt);
              draw plot[domain=pi:25.1327,variable=t,samples=75,smooth]
              (t r: 0.002*t*t);
              endtikzpicture
              enddocument


              enter image description here



              And here is the original pic with a bent arrow.



              documentclassarticle
              usepackagetikz
              usetikzlibraryarrows.meta,bending

              begindocument
              begintikzpicture
              draw [domain=0:25.1327,variable=t,smooth,samples=75, -Latex[bend]]
              plot (t r: 0.002*t*t);
              endtikzpicture
              enddocument


              enter image description here



              Note that one should always load bending when one attaches arrows to curved paths, regardless of whether or not one bends the arrows, since otherwise the paths get distorted. Bending cures the distortion even when not explicitly used.






              share|improve this answer



























                0














                First of all, I would like to argue that bent arrows look better, also in the original plot. But since the curve becomes singular at 0, this does not immediately work because of dimension too large errors. However, it does once we approximate the inner-most stretch by an arc.



                documentclassarticle
                usepackagetikz
                usetikzlibraryarrows.meta,bending

                begindocument
                begintikzpicture[scale=2]
                pgfmathsetmacromytpi
                draw[Latex[bend,length=2pt]-]
                (0: 0.002*myt*myt)
                arc(0:180:0.002*myt*myt);
                draw plot[domain=pi:25.1327,variable=t,samples=75,smooth]
                (t r: 0.002*t*t);
                endtikzpicture
                enddocument


                enter image description here



                And here is the original pic with a bent arrow.



                documentclassarticle
                usepackagetikz
                usetikzlibraryarrows.meta,bending

                begindocument
                begintikzpicture
                draw [domain=0:25.1327,variable=t,smooth,samples=75, -Latex[bend]]
                plot (t r: 0.002*t*t);
                endtikzpicture
                enddocument


                enter image description here



                Note that one should always load bending when one attaches arrows to curved paths, regardless of whether or not one bends the arrows, since otherwise the paths get distorted. Bending cures the distortion even when not explicitly used.






                share|improve this answer

























                  0












                  0








                  0







                  First of all, I would like to argue that bent arrows look better, also in the original plot. But since the curve becomes singular at 0, this does not immediately work because of dimension too large errors. However, it does once we approximate the inner-most stretch by an arc.



                  documentclassarticle
                  usepackagetikz
                  usetikzlibraryarrows.meta,bending

                  begindocument
                  begintikzpicture[scale=2]
                  pgfmathsetmacromytpi
                  draw[Latex[bend,length=2pt]-]
                  (0: 0.002*myt*myt)
                  arc(0:180:0.002*myt*myt);
                  draw plot[domain=pi:25.1327,variable=t,samples=75,smooth]
                  (t r: 0.002*t*t);
                  endtikzpicture
                  enddocument


                  enter image description here



                  And here is the original pic with a bent arrow.



                  documentclassarticle
                  usepackagetikz
                  usetikzlibraryarrows.meta,bending

                  begindocument
                  begintikzpicture
                  draw [domain=0:25.1327,variable=t,smooth,samples=75, -Latex[bend]]
                  plot (t r: 0.002*t*t);
                  endtikzpicture
                  enddocument


                  enter image description here



                  Note that one should always load bending when one attaches arrows to curved paths, regardless of whether or not one bends the arrows, since otherwise the paths get distorted. Bending cures the distortion even when not explicitly used.






                  share|improve this answer













                  First of all, I would like to argue that bent arrows look better, also in the original plot. But since the curve becomes singular at 0, this does not immediately work because of dimension too large errors. However, it does once we approximate the inner-most stretch by an arc.



                  documentclassarticle
                  usepackagetikz
                  usetikzlibraryarrows.meta,bending

                  begindocument
                  begintikzpicture[scale=2]
                  pgfmathsetmacromytpi
                  draw[Latex[bend,length=2pt]-]
                  (0: 0.002*myt*myt)
                  arc(0:180:0.002*myt*myt);
                  draw plot[domain=pi:25.1327,variable=t,samples=75,smooth]
                  (t r: 0.002*t*t);
                  endtikzpicture
                  enddocument


                  enter image description here



                  And here is the original pic with a bent arrow.



                  documentclassarticle
                  usepackagetikz
                  usetikzlibraryarrows.meta,bending

                  begindocument
                  begintikzpicture
                  draw [domain=0:25.1327,variable=t,smooth,samples=75, -Latex[bend]]
                  plot (t r: 0.002*t*t);
                  endtikzpicture
                  enddocument


                  enter image description here



                  Note that one should always load bending when one attaches arrows to curved paths, regardless of whether or not one bends the arrows, since otherwise the paths get distorted. Bending cures the distortion even when not explicitly used.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 1 hour ago









                  marmotmarmot

                  113k5145274




                  113k5145274



























                      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%2f482341%2ftikz-how-to-reverse-arrow-direction-without-switching-start-end-point%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

                      名間水力發電廠 目录 沿革 設施 鄰近設施 註釋 外部連結 导航菜单23°50′10″N 120°42′41″E / 23.83611°N 120.71139°E / 23.83611; 120.7113923°50′10″N 120°42′41″E / 23.83611°N 120.71139°E / 23.83611; 120.71139計畫概要原始内容臺灣第一座BOT 模式開發的水力發電廠-名間水力電廠名間水力發電廠 水利署首件BOT案原始内容《小檔案》名間電廠 首座BOT水力發電廠原始内容名間電廠BOT - 經濟部水利署中區水資源局

                      Prove that NP is closed under karp reduction?Space(n) not closed under Karp reductions - what about NTime(n)?Class P is closed under rotation?Prove or disprove that $NL$ is closed under polynomial many-one reductions$mathbfNC_2$ is closed under log-space reductionOn Karp reductionwhen can I know if a class (complexity) is closed under reduction (cook/karp)Check if class $PSPACE$ is closed under polyonomially space reductionIs NPSPACE also closed under polynomial-time reduction and under log-space reduction?Prove PSPACE is closed under complement?Prove PSPACE is closed under union?

                      Is my guitar’s action too high? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)Strings too stiff on a recently purchased acoustic guitar | Cort AD880CEIs the action of my guitar really high?Μy little finger is too weak to play guitarWith guitar, how long should I give my fingers to strengthen / callous?When playing a fret the guitar sounds mutedPlaying (Barre) chords up the guitar neckI think my guitar strings are wound too tight and I can't play barre chordsF barre chord on an SG guitarHow to find to the right strings of a barre chord by feel?High action on higher fret on my steel acoustic guitar