Precision improvement — sequence plot

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











up vote
3
down vote

favorite












I want to plot the graph of a sequence relating to continuous compounding with some annual interest rate and an input capital. However, it seems that the precision of the generated plot is insufficient (see the graph fluctuations below).



Output:



enter image description here



MWE:



documentclass[border=5pt]standalone%

usepackagetikz,pgfplots


begindocument
begintikzpicture[font=scriptsize]
beginaxis[%
axis x line=bottom,
axis y line=center,
tick align=outside,
axis y discontinuity=crunch,
xtickmax=55,
ytickmin=2100,
ytickmax=2103,
ymin=2098,
enlargelimits=true,
mark size=1pt,
yticklabel style=/pgf/number format/1000 sep=,
]
addplot[%
mark=none,
domain=1:55,
samples=55,
only marks,
orange!50,
draw=black] 2000*(1+0.05/x)^x;
endaxis
endtikzpicture
enddocument


Question:



Is there any (simple) way for improving the precision of the addplot-command (possibly without gnuplot)?







share|improve this question
























    up vote
    3
    down vote

    favorite












    I want to plot the graph of a sequence relating to continuous compounding with some annual interest rate and an input capital. However, it seems that the precision of the generated plot is insufficient (see the graph fluctuations below).



    Output:



    enter image description here



    MWE:



    documentclass[border=5pt]standalone%

    usepackagetikz,pgfplots


    begindocument
    begintikzpicture[font=scriptsize]
    beginaxis[%
    axis x line=bottom,
    axis y line=center,
    tick align=outside,
    axis y discontinuity=crunch,
    xtickmax=55,
    ytickmin=2100,
    ytickmax=2103,
    ymin=2098,
    enlargelimits=true,
    mark size=1pt,
    yticklabel style=/pgf/number format/1000 sep=,
    ]
    addplot[%
    mark=none,
    domain=1:55,
    samples=55,
    only marks,
    orange!50,
    draw=black] 2000*(1+0.05/x)^x;
    endaxis
    endtikzpicture
    enddocument


    Question:



    Is there any (simple) way for improving the precision of the addplot-command (possibly without gnuplot)?







    share|improve this question






















      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      I want to plot the graph of a sequence relating to continuous compounding with some annual interest rate and an input capital. However, it seems that the precision of the generated plot is insufficient (see the graph fluctuations below).



      Output:



      enter image description here



      MWE:



      documentclass[border=5pt]standalone%

      usepackagetikz,pgfplots


      begindocument
      begintikzpicture[font=scriptsize]
      beginaxis[%
      axis x line=bottom,
      axis y line=center,
      tick align=outside,
      axis y discontinuity=crunch,
      xtickmax=55,
      ytickmin=2100,
      ytickmax=2103,
      ymin=2098,
      enlargelimits=true,
      mark size=1pt,
      yticklabel style=/pgf/number format/1000 sep=,
      ]
      addplot[%
      mark=none,
      domain=1:55,
      samples=55,
      only marks,
      orange!50,
      draw=black] 2000*(1+0.05/x)^x;
      endaxis
      endtikzpicture
      enddocument


      Question:



      Is there any (simple) way for improving the precision of the addplot-command (possibly without gnuplot)?







      share|improve this question












      I want to plot the graph of a sequence relating to continuous compounding with some annual interest rate and an input capital. However, it seems that the precision of the generated plot is insufficient (see the graph fluctuations below).



      Output:



      enter image description here



      MWE:



      documentclass[border=5pt]standalone%

      usepackagetikz,pgfplots


      begindocument
      begintikzpicture[font=scriptsize]
      beginaxis[%
      axis x line=bottom,
      axis y line=center,
      tick align=outside,
      axis y discontinuity=crunch,
      xtickmax=55,
      ytickmin=2100,
      ytickmax=2103,
      ymin=2098,
      enlargelimits=true,
      mark size=1pt,
      yticklabel style=/pgf/number format/1000 sep=,
      ]
      addplot[%
      mark=none,
      domain=1:55,
      samples=55,
      only marks,
      orange!50,
      draw=black] 2000*(1+0.05/x)^x;
      endaxis
      endtikzpicture
      enddocument


      Question:



      Is there any (simple) way for improving the precision of the addplot-command (possibly without gnuplot)?









      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 23 at 7:15









      Marian G.

      35518




      35518




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          5
          down vote



          accepted










          Here is an approach letting xint do the computations.



          Fortunately only integer (half-integers would be ok) exponents are needed. Indeed, xint still waits for addition of support of mathematical functions such as log and exp.



          Advantage is that it works will all engines (I used pdflatex).



          documentclass[border=5pt]standalone

          usepackagetikz,pgfplots

          usepackagexintexpr
          begindocument
          begintikzpicture[font=scriptsize]
          beginaxis[%
          axis x line=bottom,
          axis y line=center,
          tick align=outside,
          axis y discontinuity=crunch,
          xtickmax=55,
          ytickmin=2100,
          ytickmax=2103,
          ymin=2098,
          enlargelimits=true,
          mark size=1pt,
          yticklabel style=/pgf/number format/1000 sep=,
          ]
          xintDigits:=8;% no need to use 16 digits of precision
          addplot[%
          mark=none,
          % domain=1:55,
          % samples=55,
          only marks,
          orange!50,
          draw=black] coordinates %
          xintthecoords% (converts x1,y1,x2,y2,... into (x1, y1) (x2, y2)...
          % format, as expected by "coordinates")
          xintfloatexpr
          seq((x,2000*(1+0.05/x)^x), x=1..55)
          % works with xint float engine
          % because exponent is integer (or half-integer)
          relax
          ;
          endaxis
          endtikzpicture
          enddocument


          enter image description here






          share|improve this answer




















          • Your approach works fine for me. I slightly changed the setting of precision digits to xintDigits:=10. Now, the result is perfect for my needs.
            – Marian G.
            Aug 23 at 9:53






          • 1




            luckily there were no sine or cosine... they need to be added to xint. If you entirely drop the xintDigits line, computations will be done with 16 digits of (floating point) precision. It is also possible to set it to higher than 16 but of course this has no interest for plotting here and would only slow down pgfplots code parsing the coordinates.
            – jfbu
            Aug 23 at 10:08

















          up vote
          3
          down vote













          Warning: This answer is LuaLaTeX-based.



          pgfplots warns you about one important detail: You should use a newer compatibility setting. Just copying the line from the warning to the file solves the fluctuations (as pgpfplots will use Lua to calculate the points).



          compatibility mode



          documentclassarticle%

          usepackagetikz,pgfplots
          pgfplotssetcompat=1.16

          begindocument
          begintikzpicture[font=scriptsize]
          beginaxis[%
          axis x line=bottom,
          axis y line=center,
          tick align=outside,
          axis y discontinuity=crunch,
          xtickmax=55,
          ytickmin=2100,
          ytickmax=2103,
          ymin=2098,
          enlargelimits=true,
          mark size=1pt,
          yticklabel style=/pgf/number format/1000 sep=,
          ]
          addplot[%
          mark=none,
          domain=1:55,
          samples=55,
          only marks,
          orange!50,
          draw=black] 2000*(1+0.05/x)^x;
          endaxis
          endtikzpicture
          enddocument





          share|improve this answer


















          • 1




            This is only true, if you run your code with LuaLaTeX, because with compat=1.12 or higher then Lua is used for the calculation. Of course Lua can't be used when compiling with pdfLaTeX.
            – Stefan Pinnow
            Aug 23 at 7:58






          • 1




            @StefanPinnow Oops, there's a drawback having LuaLaTeX as default compiler :| I'll edit the post.
            – TeXnician
            Aug 23 at 8:08










          • @TeXnician: Thank you for your reply. I forgott to mention the fact that I'm using pdfLaTeX (TeXLive 2017). Adding the line pgfplotssetcompat=1.14 to my source does not change anything in the output in combination with pdfLaTeX. Unfortunatelly, I have no experiences with LuaLaTeX.
            – Marian G.
            Aug 23 at 9:42










          • @MarianG. No problem, most people use pdflatex, I just forgot that the compatibility option is only relevant for lualatex for the reason Stefan Pinnow mentioned. Luckily jfbu's answer will work, so everything is fine :)
            – TeXnician
            Aug 23 at 9:50










          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%2f447279%2fprecision-improvement-sequence-plot%23new-answer', 'question_page');

          );

          Post as a guest






























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          5
          down vote



          accepted










          Here is an approach letting xint do the computations.



          Fortunately only integer (half-integers would be ok) exponents are needed. Indeed, xint still waits for addition of support of mathematical functions such as log and exp.



          Advantage is that it works will all engines (I used pdflatex).



          documentclass[border=5pt]standalone

          usepackagetikz,pgfplots

          usepackagexintexpr
          begindocument
          begintikzpicture[font=scriptsize]
          beginaxis[%
          axis x line=bottom,
          axis y line=center,
          tick align=outside,
          axis y discontinuity=crunch,
          xtickmax=55,
          ytickmin=2100,
          ytickmax=2103,
          ymin=2098,
          enlargelimits=true,
          mark size=1pt,
          yticklabel style=/pgf/number format/1000 sep=,
          ]
          xintDigits:=8;% no need to use 16 digits of precision
          addplot[%
          mark=none,
          % domain=1:55,
          % samples=55,
          only marks,
          orange!50,
          draw=black] coordinates %
          xintthecoords% (converts x1,y1,x2,y2,... into (x1, y1) (x2, y2)...
          % format, as expected by "coordinates")
          xintfloatexpr
          seq((x,2000*(1+0.05/x)^x), x=1..55)
          % works with xint float engine
          % because exponent is integer (or half-integer)
          relax
          ;
          endaxis
          endtikzpicture
          enddocument


          enter image description here






          share|improve this answer




















          • Your approach works fine for me. I slightly changed the setting of precision digits to xintDigits:=10. Now, the result is perfect for my needs.
            – Marian G.
            Aug 23 at 9:53






          • 1




            luckily there were no sine or cosine... they need to be added to xint. If you entirely drop the xintDigits line, computations will be done with 16 digits of (floating point) precision. It is also possible to set it to higher than 16 but of course this has no interest for plotting here and would only slow down pgfplots code parsing the coordinates.
            – jfbu
            Aug 23 at 10:08














          up vote
          5
          down vote



          accepted










          Here is an approach letting xint do the computations.



          Fortunately only integer (half-integers would be ok) exponents are needed. Indeed, xint still waits for addition of support of mathematical functions such as log and exp.



          Advantage is that it works will all engines (I used pdflatex).



          documentclass[border=5pt]standalone

          usepackagetikz,pgfplots

          usepackagexintexpr
          begindocument
          begintikzpicture[font=scriptsize]
          beginaxis[%
          axis x line=bottom,
          axis y line=center,
          tick align=outside,
          axis y discontinuity=crunch,
          xtickmax=55,
          ytickmin=2100,
          ytickmax=2103,
          ymin=2098,
          enlargelimits=true,
          mark size=1pt,
          yticklabel style=/pgf/number format/1000 sep=,
          ]
          xintDigits:=8;% no need to use 16 digits of precision
          addplot[%
          mark=none,
          % domain=1:55,
          % samples=55,
          only marks,
          orange!50,
          draw=black] coordinates %
          xintthecoords% (converts x1,y1,x2,y2,... into (x1, y1) (x2, y2)...
          % format, as expected by "coordinates")
          xintfloatexpr
          seq((x,2000*(1+0.05/x)^x), x=1..55)
          % works with xint float engine
          % because exponent is integer (or half-integer)
          relax
          ;
          endaxis
          endtikzpicture
          enddocument


          enter image description here






          share|improve this answer




















          • Your approach works fine for me. I slightly changed the setting of precision digits to xintDigits:=10. Now, the result is perfect for my needs.
            – Marian G.
            Aug 23 at 9:53






          • 1




            luckily there were no sine or cosine... they need to be added to xint. If you entirely drop the xintDigits line, computations will be done with 16 digits of (floating point) precision. It is also possible to set it to higher than 16 but of course this has no interest for plotting here and would only slow down pgfplots code parsing the coordinates.
            – jfbu
            Aug 23 at 10:08












          up vote
          5
          down vote



          accepted







          up vote
          5
          down vote



          accepted






          Here is an approach letting xint do the computations.



          Fortunately only integer (half-integers would be ok) exponents are needed. Indeed, xint still waits for addition of support of mathematical functions such as log and exp.



          Advantage is that it works will all engines (I used pdflatex).



          documentclass[border=5pt]standalone

          usepackagetikz,pgfplots

          usepackagexintexpr
          begindocument
          begintikzpicture[font=scriptsize]
          beginaxis[%
          axis x line=bottom,
          axis y line=center,
          tick align=outside,
          axis y discontinuity=crunch,
          xtickmax=55,
          ytickmin=2100,
          ytickmax=2103,
          ymin=2098,
          enlargelimits=true,
          mark size=1pt,
          yticklabel style=/pgf/number format/1000 sep=,
          ]
          xintDigits:=8;% no need to use 16 digits of precision
          addplot[%
          mark=none,
          % domain=1:55,
          % samples=55,
          only marks,
          orange!50,
          draw=black] coordinates %
          xintthecoords% (converts x1,y1,x2,y2,... into (x1, y1) (x2, y2)...
          % format, as expected by "coordinates")
          xintfloatexpr
          seq((x,2000*(1+0.05/x)^x), x=1..55)
          % works with xint float engine
          % because exponent is integer (or half-integer)
          relax
          ;
          endaxis
          endtikzpicture
          enddocument


          enter image description here






          share|improve this answer












          Here is an approach letting xint do the computations.



          Fortunately only integer (half-integers would be ok) exponents are needed. Indeed, xint still waits for addition of support of mathematical functions such as log and exp.



          Advantage is that it works will all engines (I used pdflatex).



          documentclass[border=5pt]standalone

          usepackagetikz,pgfplots

          usepackagexintexpr
          begindocument
          begintikzpicture[font=scriptsize]
          beginaxis[%
          axis x line=bottom,
          axis y line=center,
          tick align=outside,
          axis y discontinuity=crunch,
          xtickmax=55,
          ytickmin=2100,
          ytickmax=2103,
          ymin=2098,
          enlargelimits=true,
          mark size=1pt,
          yticklabel style=/pgf/number format/1000 sep=,
          ]
          xintDigits:=8;% no need to use 16 digits of precision
          addplot[%
          mark=none,
          % domain=1:55,
          % samples=55,
          only marks,
          orange!50,
          draw=black] coordinates %
          xintthecoords% (converts x1,y1,x2,y2,... into (x1, y1) (x2, y2)...
          % format, as expected by "coordinates")
          xintfloatexpr
          seq((x,2000*(1+0.05/x)^x), x=1..55)
          % works with xint float engine
          % because exponent is integer (or half-integer)
          relax
          ;
          endaxis
          endtikzpicture
          enddocument


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Aug 23 at 8:38









          jfbu

          41.5k60131




          41.5k60131











          • Your approach works fine for me. I slightly changed the setting of precision digits to xintDigits:=10. Now, the result is perfect for my needs.
            – Marian G.
            Aug 23 at 9:53






          • 1




            luckily there were no sine or cosine... they need to be added to xint. If you entirely drop the xintDigits line, computations will be done with 16 digits of (floating point) precision. It is also possible to set it to higher than 16 but of course this has no interest for plotting here and would only slow down pgfplots code parsing the coordinates.
            – jfbu
            Aug 23 at 10:08
















          • Your approach works fine for me. I slightly changed the setting of precision digits to xintDigits:=10. Now, the result is perfect for my needs.
            – Marian G.
            Aug 23 at 9:53






          • 1




            luckily there were no sine or cosine... they need to be added to xint. If you entirely drop the xintDigits line, computations will be done with 16 digits of (floating point) precision. It is also possible to set it to higher than 16 but of course this has no interest for plotting here and would only slow down pgfplots code parsing the coordinates.
            – jfbu
            Aug 23 at 10:08















          Your approach works fine for me. I slightly changed the setting of precision digits to xintDigits:=10. Now, the result is perfect for my needs.
          – Marian G.
          Aug 23 at 9:53




          Your approach works fine for me. I slightly changed the setting of precision digits to xintDigits:=10. Now, the result is perfect for my needs.
          – Marian G.
          Aug 23 at 9:53




          1




          1




          luckily there were no sine or cosine... they need to be added to xint. If you entirely drop the xintDigits line, computations will be done with 16 digits of (floating point) precision. It is also possible to set it to higher than 16 but of course this has no interest for plotting here and would only slow down pgfplots code parsing the coordinates.
          – jfbu
          Aug 23 at 10:08




          luckily there were no sine or cosine... they need to be added to xint. If you entirely drop the xintDigits line, computations will be done with 16 digits of (floating point) precision. It is also possible to set it to higher than 16 but of course this has no interest for plotting here and would only slow down pgfplots code parsing the coordinates.
          – jfbu
          Aug 23 at 10:08










          up vote
          3
          down vote













          Warning: This answer is LuaLaTeX-based.



          pgfplots warns you about one important detail: You should use a newer compatibility setting. Just copying the line from the warning to the file solves the fluctuations (as pgpfplots will use Lua to calculate the points).



          compatibility mode



          documentclassarticle%

          usepackagetikz,pgfplots
          pgfplotssetcompat=1.16

          begindocument
          begintikzpicture[font=scriptsize]
          beginaxis[%
          axis x line=bottom,
          axis y line=center,
          tick align=outside,
          axis y discontinuity=crunch,
          xtickmax=55,
          ytickmin=2100,
          ytickmax=2103,
          ymin=2098,
          enlargelimits=true,
          mark size=1pt,
          yticklabel style=/pgf/number format/1000 sep=,
          ]
          addplot[%
          mark=none,
          domain=1:55,
          samples=55,
          only marks,
          orange!50,
          draw=black] 2000*(1+0.05/x)^x;
          endaxis
          endtikzpicture
          enddocument





          share|improve this answer


















          • 1




            This is only true, if you run your code with LuaLaTeX, because with compat=1.12 or higher then Lua is used for the calculation. Of course Lua can't be used when compiling with pdfLaTeX.
            – Stefan Pinnow
            Aug 23 at 7:58






          • 1




            @StefanPinnow Oops, there's a drawback having LuaLaTeX as default compiler :| I'll edit the post.
            – TeXnician
            Aug 23 at 8:08










          • @TeXnician: Thank you for your reply. I forgott to mention the fact that I'm using pdfLaTeX (TeXLive 2017). Adding the line pgfplotssetcompat=1.14 to my source does not change anything in the output in combination with pdfLaTeX. Unfortunatelly, I have no experiences with LuaLaTeX.
            – Marian G.
            Aug 23 at 9:42










          • @MarianG. No problem, most people use pdflatex, I just forgot that the compatibility option is only relevant for lualatex for the reason Stefan Pinnow mentioned. Luckily jfbu's answer will work, so everything is fine :)
            – TeXnician
            Aug 23 at 9:50














          up vote
          3
          down vote













          Warning: This answer is LuaLaTeX-based.



          pgfplots warns you about one important detail: You should use a newer compatibility setting. Just copying the line from the warning to the file solves the fluctuations (as pgpfplots will use Lua to calculate the points).



          compatibility mode



          documentclassarticle%

          usepackagetikz,pgfplots
          pgfplotssetcompat=1.16

          begindocument
          begintikzpicture[font=scriptsize]
          beginaxis[%
          axis x line=bottom,
          axis y line=center,
          tick align=outside,
          axis y discontinuity=crunch,
          xtickmax=55,
          ytickmin=2100,
          ytickmax=2103,
          ymin=2098,
          enlargelimits=true,
          mark size=1pt,
          yticklabel style=/pgf/number format/1000 sep=,
          ]
          addplot[%
          mark=none,
          domain=1:55,
          samples=55,
          only marks,
          orange!50,
          draw=black] 2000*(1+0.05/x)^x;
          endaxis
          endtikzpicture
          enddocument





          share|improve this answer


















          • 1




            This is only true, if you run your code with LuaLaTeX, because with compat=1.12 or higher then Lua is used for the calculation. Of course Lua can't be used when compiling with pdfLaTeX.
            – Stefan Pinnow
            Aug 23 at 7:58






          • 1




            @StefanPinnow Oops, there's a drawback having LuaLaTeX as default compiler :| I'll edit the post.
            – TeXnician
            Aug 23 at 8:08










          • @TeXnician: Thank you for your reply. I forgott to mention the fact that I'm using pdfLaTeX (TeXLive 2017). Adding the line pgfplotssetcompat=1.14 to my source does not change anything in the output in combination with pdfLaTeX. Unfortunatelly, I have no experiences with LuaLaTeX.
            – Marian G.
            Aug 23 at 9:42










          • @MarianG. No problem, most people use pdflatex, I just forgot that the compatibility option is only relevant for lualatex for the reason Stefan Pinnow mentioned. Luckily jfbu's answer will work, so everything is fine :)
            – TeXnician
            Aug 23 at 9:50












          up vote
          3
          down vote










          up vote
          3
          down vote









          Warning: This answer is LuaLaTeX-based.



          pgfplots warns you about one important detail: You should use a newer compatibility setting. Just copying the line from the warning to the file solves the fluctuations (as pgpfplots will use Lua to calculate the points).



          compatibility mode



          documentclassarticle%

          usepackagetikz,pgfplots
          pgfplotssetcompat=1.16

          begindocument
          begintikzpicture[font=scriptsize]
          beginaxis[%
          axis x line=bottom,
          axis y line=center,
          tick align=outside,
          axis y discontinuity=crunch,
          xtickmax=55,
          ytickmin=2100,
          ytickmax=2103,
          ymin=2098,
          enlargelimits=true,
          mark size=1pt,
          yticklabel style=/pgf/number format/1000 sep=,
          ]
          addplot[%
          mark=none,
          domain=1:55,
          samples=55,
          only marks,
          orange!50,
          draw=black] 2000*(1+0.05/x)^x;
          endaxis
          endtikzpicture
          enddocument





          share|improve this answer














          Warning: This answer is LuaLaTeX-based.



          pgfplots warns you about one important detail: You should use a newer compatibility setting. Just copying the line from the warning to the file solves the fluctuations (as pgpfplots will use Lua to calculate the points).



          compatibility mode



          documentclassarticle%

          usepackagetikz,pgfplots
          pgfplotssetcompat=1.16

          begindocument
          begintikzpicture[font=scriptsize]
          beginaxis[%
          axis x line=bottom,
          axis y line=center,
          tick align=outside,
          axis y discontinuity=crunch,
          xtickmax=55,
          ytickmin=2100,
          ytickmax=2103,
          ymin=2098,
          enlargelimits=true,
          mark size=1pt,
          yticklabel style=/pgf/number format/1000 sep=,
          ]
          addplot[%
          mark=none,
          domain=1:55,
          samples=55,
          only marks,
          orange!50,
          draw=black] 2000*(1+0.05/x)^x;
          endaxis
          endtikzpicture
          enddocument






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Aug 23 at 8:10

























          answered Aug 23 at 7:45









          TeXnician

          20.4k52880




          20.4k52880







          • 1




            This is only true, if you run your code with LuaLaTeX, because with compat=1.12 or higher then Lua is used for the calculation. Of course Lua can't be used when compiling with pdfLaTeX.
            – Stefan Pinnow
            Aug 23 at 7:58






          • 1




            @StefanPinnow Oops, there's a drawback having LuaLaTeX as default compiler :| I'll edit the post.
            – TeXnician
            Aug 23 at 8:08










          • @TeXnician: Thank you for your reply. I forgott to mention the fact that I'm using pdfLaTeX (TeXLive 2017). Adding the line pgfplotssetcompat=1.14 to my source does not change anything in the output in combination with pdfLaTeX. Unfortunatelly, I have no experiences with LuaLaTeX.
            – Marian G.
            Aug 23 at 9:42










          • @MarianG. No problem, most people use pdflatex, I just forgot that the compatibility option is only relevant for lualatex for the reason Stefan Pinnow mentioned. Luckily jfbu's answer will work, so everything is fine :)
            – TeXnician
            Aug 23 at 9:50












          • 1




            This is only true, if you run your code with LuaLaTeX, because with compat=1.12 or higher then Lua is used for the calculation. Of course Lua can't be used when compiling with pdfLaTeX.
            – Stefan Pinnow
            Aug 23 at 7:58






          • 1




            @StefanPinnow Oops, there's a drawback having LuaLaTeX as default compiler :| I'll edit the post.
            – TeXnician
            Aug 23 at 8:08










          • @TeXnician: Thank you for your reply. I forgott to mention the fact that I'm using pdfLaTeX (TeXLive 2017). Adding the line pgfplotssetcompat=1.14 to my source does not change anything in the output in combination with pdfLaTeX. Unfortunatelly, I have no experiences with LuaLaTeX.
            – Marian G.
            Aug 23 at 9:42










          • @MarianG. No problem, most people use pdflatex, I just forgot that the compatibility option is only relevant for lualatex for the reason Stefan Pinnow mentioned. Luckily jfbu's answer will work, so everything is fine :)
            – TeXnician
            Aug 23 at 9:50







          1




          1




          This is only true, if you run your code with LuaLaTeX, because with compat=1.12 or higher then Lua is used for the calculation. Of course Lua can't be used when compiling with pdfLaTeX.
          – Stefan Pinnow
          Aug 23 at 7:58




          This is only true, if you run your code with LuaLaTeX, because with compat=1.12 or higher then Lua is used for the calculation. Of course Lua can't be used when compiling with pdfLaTeX.
          – Stefan Pinnow
          Aug 23 at 7:58




          1




          1




          @StefanPinnow Oops, there's a drawback having LuaLaTeX as default compiler :| I'll edit the post.
          – TeXnician
          Aug 23 at 8:08




          @StefanPinnow Oops, there's a drawback having LuaLaTeX as default compiler :| I'll edit the post.
          – TeXnician
          Aug 23 at 8:08












          @TeXnician: Thank you for your reply. I forgott to mention the fact that I'm using pdfLaTeX (TeXLive 2017). Adding the line pgfplotssetcompat=1.14 to my source does not change anything in the output in combination with pdfLaTeX. Unfortunatelly, I have no experiences with LuaLaTeX.
          – Marian G.
          Aug 23 at 9:42




          @TeXnician: Thank you for your reply. I forgott to mention the fact that I'm using pdfLaTeX (TeXLive 2017). Adding the line pgfplotssetcompat=1.14 to my source does not change anything in the output in combination with pdfLaTeX. Unfortunatelly, I have no experiences with LuaLaTeX.
          – Marian G.
          Aug 23 at 9:42












          @MarianG. No problem, most people use pdflatex, I just forgot that the compatibility option is only relevant for lualatex for the reason Stefan Pinnow mentioned. Luckily jfbu's answer will work, so everything is fine :)
          – TeXnician
          Aug 23 at 9:50




          @MarianG. No problem, most people use pdflatex, I just forgot that the compatibility option is only relevant for lualatex for the reason Stefan Pinnow mentioned. Luckily jfbu's answer will work, so everything is fine :)
          – TeXnician
          Aug 23 at 9:50

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f447279%2fprecision-improvement-sequence-plot%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