TikZ: How to reverse arrow direction without switching start/end point? The Next CEO of Stack OverflowTikz: Arrowheads in the centerspiral 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

Where do students learn to solve polynomial equations these days?

What connection does MS Office have to Netscape Navigator?

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

The exact meaning of 'Mom made me a sandwich'

Domestic-to-international connection at Orlando (MCO)

How do I align (1) and (2)?

Chain wire methods together in Lightning Web Components

Can this equation be simplified further?

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

Which one is the true statement?

Why does standard notation not preserve intervals (visually)

Writing differences on a blackboard

When you upcast Blindness/Deafness, do all targets suffer the same effect?

Necessary condition on homology group for a set to be contractible

What does "Its cash flow is deeply negative" mean?

How many extra stops do monopods offer for tele photographs?

0-rank tensor vs vector in 1D

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

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

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

Is micro rebar a better way to reinforce concrete than rebar?

Grabbing quick drinks

Is French Guiana a (hard) EU border?

What steps are necessary to read a Modern SSD in Medieval Europe?



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



The Next CEO of Stack OverflowTikz: Arrowheads in the centerspiral 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










3















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
    6 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
    6 hours ago















3















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
    6 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
    6 hours ago













3












3








3








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 7 hours ago







Dave

















asked 7 hours ago









DaveDave

969619




969619












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

    – Zarko
    6 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
    6 hours ago

















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

    – Zarko
    6 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
    6 hours ago
















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

– Zarko
6 hours ago






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

– Zarko
6 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
6 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
6 hours ago










2 Answers
2






active

oldest

votes


















4














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























  • It would be great if you could mention that you used the position 0.84 because it does not work for much smaller values of the position, e.g. ... at position .14 with ... throws a dimension too large error. In fact, any position below .34 has that problem. And then you may want to add that your proposal is, let's say, strongly inspired by tex.stackexchange.com/a/39282/121799.

    – marmot
    1 hour ago



















1














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









    4














    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























    • It would be great if you could mention that you used the position 0.84 because it does not work for much smaller values of the position, e.g. ... at position .14 with ... throws a dimension too large error. In fact, any position below .34 has that problem. And then you may want to add that your proposal is, let's say, strongly inspired by tex.stackexchange.com/a/39282/121799.

      – marmot
      1 hour ago
















    4














    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























    • It would be great if you could mention that you used the position 0.84 because it does not work for much smaller values of the position, e.g. ... at position .14 with ... throws a dimension too large error. In fact, any position below .34 has that problem. And then you may want to add that your proposal is, let's say, strongly inspired by tex.stackexchange.com/a/39282/121799.

      – marmot
      1 hour ago














    4












    4








    4







    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 6 hours ago









    ZarkoZarko

    128k868168




    128k868168












    • It would be great if you could mention that you used the position 0.84 because it does not work for much smaller values of the position, e.g. ... at position .14 with ... throws a dimension too large error. In fact, any position below .34 has that problem. And then you may want to add that your proposal is, let's say, strongly inspired by tex.stackexchange.com/a/39282/121799.

      – marmot
      1 hour ago


















    • It would be great if you could mention that you used the position 0.84 because it does not work for much smaller values of the position, e.g. ... at position .14 with ... throws a dimension too large error. In fact, any position below .34 has that problem. And then you may want to add that your proposal is, let's say, strongly inspired by tex.stackexchange.com/a/39282/121799.

      – marmot
      1 hour ago

















    It would be great if you could mention that you used the position 0.84 because it does not work for much smaller values of the position, e.g. ... at position .14 with ... throws a dimension too large error. In fact, any position below .34 has that problem. And then you may want to add that your proposal is, let's say, strongly inspired by tex.stackexchange.com/a/39282/121799.

    – marmot
    1 hour ago






    It would be great if you could mention that you used the position 0.84 because it does not work for much smaller values of the position, e.g. ... at position .14 with ... throws a dimension too large error. In fact, any position below .34 has that problem. And then you may want to add that your proposal is, let's say, strongly inspired by tex.stackexchange.com/a/39282/121799.

    – marmot
    1 hour ago












    1














    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



























      1














      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

























        1












        1








        1







        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 4 hours 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

            Wikipedia:Contact us Navigation menu Navigation menuLeave a Reply Cancel reply Post navigationRecent PostsRecent CommentsArchivesCategoriesMeta

            Farafra Inhaltsverzeichnis Geschichte | Badr-Museum Farafra | Nationalpark Weiße Wüste (as-Sahra al-baida) | Literatur | Weblinks | Navigationsmenü27° 3′ N, 27° 58′ OCommons: Farafra

            Tórshavn Kliima | Partnerstääden | Luke uk diar | Nawigatsjuun62° 1′ N, 6° 46′ W62° 1′ 0″ N, 6° 46′ 0″ WWMOTórshavn