Adding Tips to Axis Lines

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











up vote
4
down vote

favorite












I am trying to add arrows pointing on the axis lines for the following graph:



documentclassarticle
usepackagexcolor
usepackagepgfplots
usepackageamsmath

begindocument

beginfigure[ht]

centering

begintikzpicture[scale=1.75,line width=1pt]
beginaxis[
color= gray,
xmin=-4.9,
xmax=4.9,
ymin=-1.9,
ymax=2.9,
axis equal image,
axis lines=middle,
font=scriptsize,
xtick distance=1,
ytick distance=1,
xticklabels=,
yticklabels=,
legend pos=outer north east,
]

addplot[red, smooth, domain=-4.9:4.9] (8)/(4 + x^2);
addlegendentry$f(x)$

addplot[blue, smooth, domain=-4.9:4.9](-16*x)/((4+x^2)^2);
addlegendentry$f'(x)$

addplot[green, smooth, domain=-4.9:4.9]-(((16)*((4 + x^2)^2))-((4 + x^2)*
(64*(x^2))))/((4+x^2)^4);
addlegendentry$f''(x)$


endaxis
endtikzpicture

captionPlotting the curve when $r=1$.
labelfig:1

endfigure

enddocument


Here is the output of the code:



axis



See how only the top and the right end of the axis lines have arrow pointers, and the bottom and the left do not? Is there a way so I could get some on all four ends?



Thanks!










share|improve this question

























    up vote
    4
    down vote

    favorite












    I am trying to add arrows pointing on the axis lines for the following graph:



    documentclassarticle
    usepackagexcolor
    usepackagepgfplots
    usepackageamsmath

    begindocument

    beginfigure[ht]

    centering

    begintikzpicture[scale=1.75,line width=1pt]
    beginaxis[
    color= gray,
    xmin=-4.9,
    xmax=4.9,
    ymin=-1.9,
    ymax=2.9,
    axis equal image,
    axis lines=middle,
    font=scriptsize,
    xtick distance=1,
    ytick distance=1,
    xticklabels=,
    yticklabels=,
    legend pos=outer north east,
    ]

    addplot[red, smooth, domain=-4.9:4.9] (8)/(4 + x^2);
    addlegendentry$f(x)$

    addplot[blue, smooth, domain=-4.9:4.9](-16*x)/((4+x^2)^2);
    addlegendentry$f'(x)$

    addplot[green, smooth, domain=-4.9:4.9]-(((16)*((4 + x^2)^2))-((4 + x^2)*
    (64*(x^2))))/((4+x^2)^4);
    addlegendentry$f''(x)$


    endaxis
    endtikzpicture

    captionPlotting the curve when $r=1$.
    labelfig:1

    endfigure

    enddocument


    Here is the output of the code:



    axis



    See how only the top and the right end of the axis lines have arrow pointers, and the bottom and the left do not? Is there a way so I could get some on all four ends?



    Thanks!










    share|improve this question























      up vote
      4
      down vote

      favorite









      up vote
      4
      down vote

      favorite











      I am trying to add arrows pointing on the axis lines for the following graph:



      documentclassarticle
      usepackagexcolor
      usepackagepgfplots
      usepackageamsmath

      begindocument

      beginfigure[ht]

      centering

      begintikzpicture[scale=1.75,line width=1pt]
      beginaxis[
      color= gray,
      xmin=-4.9,
      xmax=4.9,
      ymin=-1.9,
      ymax=2.9,
      axis equal image,
      axis lines=middle,
      font=scriptsize,
      xtick distance=1,
      ytick distance=1,
      xticklabels=,
      yticklabels=,
      legend pos=outer north east,
      ]

      addplot[red, smooth, domain=-4.9:4.9] (8)/(4 + x^2);
      addlegendentry$f(x)$

      addplot[blue, smooth, domain=-4.9:4.9](-16*x)/((4+x^2)^2);
      addlegendentry$f'(x)$

      addplot[green, smooth, domain=-4.9:4.9]-(((16)*((4 + x^2)^2))-((4 + x^2)*
      (64*(x^2))))/((4+x^2)^4);
      addlegendentry$f''(x)$


      endaxis
      endtikzpicture

      captionPlotting the curve when $r=1$.
      labelfig:1

      endfigure

      enddocument


      Here is the output of the code:



      axis



      See how only the top and the right end of the axis lines have arrow pointers, and the bottom and the left do not? Is there a way so I could get some on all four ends?



      Thanks!










      share|improve this question













      I am trying to add arrows pointing on the axis lines for the following graph:



      documentclassarticle
      usepackagexcolor
      usepackagepgfplots
      usepackageamsmath

      begindocument

      beginfigure[ht]

      centering

      begintikzpicture[scale=1.75,line width=1pt]
      beginaxis[
      color= gray,
      xmin=-4.9,
      xmax=4.9,
      ymin=-1.9,
      ymax=2.9,
      axis equal image,
      axis lines=middle,
      font=scriptsize,
      xtick distance=1,
      ytick distance=1,
      xticklabels=,
      yticklabels=,
      legend pos=outer north east,
      ]

      addplot[red, smooth, domain=-4.9:4.9] (8)/(4 + x^2);
      addlegendentry$f(x)$

      addplot[blue, smooth, domain=-4.9:4.9](-16*x)/((4+x^2)^2);
      addlegendentry$f'(x)$

      addplot[green, smooth, domain=-4.9:4.9]-(((16)*((4 + x^2)^2))-((4 + x^2)*
      (64*(x^2))))/((4+x^2)^4);
      addlegendentry$f''(x)$


      endaxis
      endtikzpicture

      captionPlotting the curve when $r=1$.
      labelfig:1

      endfigure

      enddocument


      Here is the output of the code:



      axis



      See how only the top and the right end of the axis lines have arrow pointers, and the bottom and the left do not? Is there a way so I could get some on all four ends?



      Thanks!







      tikz-pgf pgfplots axis






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 4 hours ago









      Aiden Kenny

      553




      553




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          4
          down vote













          Add



          every inner x axis line/.append style=stealth-stealth,
          every inner y axis line/.append style=stealth-stealth,


          at the end of your axis options, just after the legend pos=outer north east, and just before the ]



          See section 4.9.9 of the current reference manual.



          If you are happy with them both being the same, you could just set a single key (as pointed out in the comments):



          inner axis line style=stealth-stealth





          share|improve this answer


















          • 1




            Slightly shorter would be inner axis line style=stealth-stealth.
            – Torbjørn T.
            2 hours ago










          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%2f456155%2fadding-tips-to-axis-lines%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
          4
          down vote













          Add



          every inner x axis line/.append style=stealth-stealth,
          every inner y axis line/.append style=stealth-stealth,


          at the end of your axis options, just after the legend pos=outer north east, and just before the ]



          See section 4.9.9 of the current reference manual.



          If you are happy with them both being the same, you could just set a single key (as pointed out in the comments):



          inner axis line style=stealth-stealth





          share|improve this answer


















          • 1




            Slightly shorter would be inner axis line style=stealth-stealth.
            – Torbjørn T.
            2 hours ago














          up vote
          4
          down vote













          Add



          every inner x axis line/.append style=stealth-stealth,
          every inner y axis line/.append style=stealth-stealth,


          at the end of your axis options, just after the legend pos=outer north east, and just before the ]



          See section 4.9.9 of the current reference manual.



          If you are happy with them both being the same, you could just set a single key (as pointed out in the comments):



          inner axis line style=stealth-stealth





          share|improve this answer


















          • 1




            Slightly shorter would be inner axis line style=stealth-stealth.
            – Torbjørn T.
            2 hours ago












          up vote
          4
          down vote










          up vote
          4
          down vote









          Add



          every inner x axis line/.append style=stealth-stealth,
          every inner y axis line/.append style=stealth-stealth,


          at the end of your axis options, just after the legend pos=outer north east, and just before the ]



          See section 4.9.9 of the current reference manual.



          If you are happy with them both being the same, you could just set a single key (as pointed out in the comments):



          inner axis line style=stealth-stealth





          share|improve this answer














          Add



          every inner x axis line/.append style=stealth-stealth,
          every inner y axis line/.append style=stealth-stealth,


          at the end of your axis options, just after the legend pos=outer north east, and just before the ]



          See section 4.9.9 of the current reference manual.



          If you are happy with them both being the same, you could just set a single key (as pointed out in the comments):



          inner axis line style=stealth-stealth






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 44 mins ago

























          answered 2 hours ago









          Thruston

          25.1k23988




          25.1k23988







          • 1




            Slightly shorter would be inner axis line style=stealth-stealth.
            – Torbjørn T.
            2 hours ago












          • 1




            Slightly shorter would be inner axis line style=stealth-stealth.
            – Torbjørn T.
            2 hours ago







          1




          1




          Slightly shorter would be inner axis line style=stealth-stealth.
          – Torbjørn T.
          2 hours ago




          Slightly shorter would be inner axis line style=stealth-stealth.
          – Torbjørn T.
          2 hours ago

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f456155%2fadding-tips-to-axis-lines%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          Long meetings (6-7 hours a day): Being “babysat” by supervisor

          Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

          Confectionery