Graphing large functions in LaTeXplotting two time series with boundsGrouped bar chartHow do i get the x axis on top but keep a line on the bottomPolar Plots - layout and extraction of crucial parametersGraphing trigonometric functions, axes labeled with tick marksHow to hide empty (value 0) ybars with pgfplots?Show mark labels near marks and not centered in ybar interaval graphpgfplots: percentage in matrix plotCenter the axes in the coordinate originGraphing probability density functions

Impossible darts scores

Abel-Jacobi map on symmetric product of genus 4 curve

Can White Castle?

Was there ever a name for the weapons of the Others?

What happens when I sacrifice a creature when my Teysa Karlov is on the battlefield?

What is the legal status of travelling with (unprescribed) methadone in your carry-on?

Require advice on power conservation for backpacking trip

Sho, greek letter

Why do some professors with PhDs leave their professorships to teach high school?

What are the benefits of using the X Card safety tool in comparison to plain communication?

C-152 carb heat on before landing in hot weather?

Is adding a new player (or players) a DM decision, or a group decision?

Fedora boot screen shows both Fedora logo and Lenovo logo. Why and How?

Does squid ink pasta bleed?

Why is my code printing rvalue 2 times instead of rvalue & lvalue?

Why is Madam Hooch not a professor?

Should I tell my insurance company I'm making payments on my new car?

Is there a maximum distance from a planet that a moon can orbit?

VAT refund London Heathrow

Should I include salary information on my CV?

MH370 blackbox - is it still possible to retrieve data from it?

Why is there no havdallah when going from Yom Tov into Shabbat?

Could Sauron have read Tom Bombadil's mind if Tom had held the Palantir?

Employer wants to use my work email account after I quit, is this legal under German law?



Graphing large functions in LaTeX


plotting two time series with boundsGrouped bar chartHow do i get the x axis on top but keep a line on the bottomPolar Plots - layout and extraction of crucial parametersGraphing trigonometric functions, axes labeled with tick marksHow to hide empty (value 0) ybars with pgfplots?Show mark labels near marks and not centered in ybar interaval graphpgfplots: percentage in matrix plotCenter the axes in the coordinate originGraphing probability density functions






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








4















I want to graph a function with rather large values using the pgfplots package. The function is represented as (1375*(801-2.96*x)/(x*(18-0.1*x).



The code I have currently is:



begintikzpicture
beginaxis[ xlabel=$x$, ylabel=$C$
,samples=200, grid, thick
,xmin=0, xmax=200, ymin=0, ymax=2000
,legend pos=outer north east
]
addplot+[no marks] (1375*(801-2.96*x)/(x*(18-0.1*x);
addlegendentry$C(x)$
endaxis
endtikzpicture


When I try to render the PDF, it generates an error:



"! Dimension too large.<recently read> pgf@yy endaxis"









share|improve this question









New contributor



Jovan Stojkovski is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    4















    I want to graph a function with rather large values using the pgfplots package. The function is represented as (1375*(801-2.96*x)/(x*(18-0.1*x).



    The code I have currently is:



    begintikzpicture
    beginaxis[ xlabel=$x$, ylabel=$C$
    ,samples=200, grid, thick
    ,xmin=0, xmax=200, ymin=0, ymax=2000
    ,legend pos=outer north east
    ]
    addplot+[no marks] (1375*(801-2.96*x)/(x*(18-0.1*x);
    addlegendentry$C(x)$
    endaxis
    endtikzpicture


    When I try to render the PDF, it generates an error:



    "! Dimension too large.<recently read> pgf@yy endaxis"









    share|improve this question









    New contributor



    Jovan Stojkovski is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      4












      4








      4








      I want to graph a function with rather large values using the pgfplots package. The function is represented as (1375*(801-2.96*x)/(x*(18-0.1*x).



      The code I have currently is:



      begintikzpicture
      beginaxis[ xlabel=$x$, ylabel=$C$
      ,samples=200, grid, thick
      ,xmin=0, xmax=200, ymin=0, ymax=2000
      ,legend pos=outer north east
      ]
      addplot+[no marks] (1375*(801-2.96*x)/(x*(18-0.1*x);
      addlegendentry$C(x)$
      endaxis
      endtikzpicture


      When I try to render the PDF, it generates an error:



      "! Dimension too large.<recently read> pgf@yy endaxis"









      share|improve this question









      New contributor



      Jovan Stojkovski is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I want to graph a function with rather large values using the pgfplots package. The function is represented as (1375*(801-2.96*x)/(x*(18-0.1*x).



      The code I have currently is:



      begintikzpicture
      beginaxis[ xlabel=$x$, ylabel=$C$
      ,samples=200, grid, thick
      ,xmin=0, xmax=200, ymin=0, ymax=2000
      ,legend pos=outer north east
      ]
      addplot+[no marks] (1375*(801-2.96*x)/(x*(18-0.1*x);
      addlegendentry$C(x)$
      endaxis
      endtikzpicture


      When I try to render the PDF, it generates an error:



      "! Dimension too large.<recently read> pgf@yy endaxis"






      tikz-pgf pgfplots errors






      share|improve this question









      New contributor



      Jovan Stojkovski is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share|improve this question









      New contributor



      Jovan Stojkovski is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share|improve this question




      share|improve this question








      edited Jun 15 at 6:22









      CarLaTeX

      36.6k5 gold badges59 silver badges163 bronze badges




      36.6k5 gold badges59 silver badges163 bronze badges






      New contributor



      Jovan Stojkovski is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      asked Jun 15 at 6:12









      Jovan StojkovskiJovan Stojkovski

      232 bronze badges




      232 bronze badges




      New contributor



      Jovan Stojkovski is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      New contributor




      Jovan Stojkovski is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          9














          Welcome to TeX-SE! The problem can be removed by specifying the domain and making ymax larger. (I also added unbounded coords=jump.)



          documentclass[tikz,border=3.14mm]standalone
          usepackagepgfplots
          pgfplotssetcompat=1.16
          begindocument
          begintikzpicture
          beginaxis[ xlabel=$x$, ylabel=$C$
          ,samples=200, grid, thick,unbounded coords=jump,
          ,xmin=0,xmax=200, ymin=0,ymax=20000,
          ,legend pos=outer north east
          ]
          addplot+[no marks,domain=0:200] (1375*(801-2.96*x)/(x*(18-0.1*x));
          addlegendentry$C(x)$
          endaxis
          endtikzpicture
          enddocument


          enter image description here



          Even ymax=2300 works but this cuts away most of the plot.



          documentclass[tikz,border=3.14mm]standalone
          usepackagepgfplots
          pgfplotssetcompat=1.16
          begindocument
          begintikzpicture
          beginaxis[ xlabel=$x$, ylabel=$C$
          ,samples=200, grid, thick,unbounded coords=jump,
          ,xmin=0,xmax=200, ymin=0,ymax=2300,
          ,legend pos=outer north east
          ]
          addplot+[no marks,domain=0:200] (1375*(801-2.96*x)/(x*(18-0.1*x));
          addlegendentry$C(x)$
          endaxis
          endtikzpicture
          enddocument


          enter image description here



          You can retain your ymax using restrict y to domain=0:2000 but the result is not great because some stretches will be cut away.



          documentclass[tikz,border=3.14mm]standalone
          usepackagepgfplots
          pgfplotssetcompat=1.16
          begindocument
          begintikzpicture
          beginaxis[ xlabel=$x$, ylabel=$C$
          ,samples=501, grid, thick,unbounded coords=jump,
          ,xmin=0,xmax=200, ymin=0,ymax=2000,
          ,legend pos=outer north east
          ]
          addplot+[no marks,domain=0:200,restrict y to domain=0:2000] (1375*(801-2.96*x)/(x*(18-0.1*x));
          addlegendentry$C(x)$
          endaxis
          endtikzpicture
          enddocument


          enter image description here






          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
            );



            );






            Jovan Stojkovski is a new contributor. Be nice, and check out our Code of Conduct.









            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f495868%2fgraphing-large-functions-in-latex%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            9














            Welcome to TeX-SE! The problem can be removed by specifying the domain and making ymax larger. (I also added unbounded coords=jump.)



            documentclass[tikz,border=3.14mm]standalone
            usepackagepgfplots
            pgfplotssetcompat=1.16
            begindocument
            begintikzpicture
            beginaxis[ xlabel=$x$, ylabel=$C$
            ,samples=200, grid, thick,unbounded coords=jump,
            ,xmin=0,xmax=200, ymin=0,ymax=20000,
            ,legend pos=outer north east
            ]
            addplot+[no marks,domain=0:200] (1375*(801-2.96*x)/(x*(18-0.1*x));
            addlegendentry$C(x)$
            endaxis
            endtikzpicture
            enddocument


            enter image description here



            Even ymax=2300 works but this cuts away most of the plot.



            documentclass[tikz,border=3.14mm]standalone
            usepackagepgfplots
            pgfplotssetcompat=1.16
            begindocument
            begintikzpicture
            beginaxis[ xlabel=$x$, ylabel=$C$
            ,samples=200, grid, thick,unbounded coords=jump,
            ,xmin=0,xmax=200, ymin=0,ymax=2300,
            ,legend pos=outer north east
            ]
            addplot+[no marks,domain=0:200] (1375*(801-2.96*x)/(x*(18-0.1*x));
            addlegendentry$C(x)$
            endaxis
            endtikzpicture
            enddocument


            enter image description here



            You can retain your ymax using restrict y to domain=0:2000 but the result is not great because some stretches will be cut away.



            documentclass[tikz,border=3.14mm]standalone
            usepackagepgfplots
            pgfplotssetcompat=1.16
            begindocument
            begintikzpicture
            beginaxis[ xlabel=$x$, ylabel=$C$
            ,samples=501, grid, thick,unbounded coords=jump,
            ,xmin=0,xmax=200, ymin=0,ymax=2000,
            ,legend pos=outer north east
            ]
            addplot+[no marks,domain=0:200,restrict y to domain=0:2000] (1375*(801-2.96*x)/(x*(18-0.1*x));
            addlegendentry$C(x)$
            endaxis
            endtikzpicture
            enddocument


            enter image description here






            share|improve this answer





























              9














              Welcome to TeX-SE! The problem can be removed by specifying the domain and making ymax larger. (I also added unbounded coords=jump.)



              documentclass[tikz,border=3.14mm]standalone
              usepackagepgfplots
              pgfplotssetcompat=1.16
              begindocument
              begintikzpicture
              beginaxis[ xlabel=$x$, ylabel=$C$
              ,samples=200, grid, thick,unbounded coords=jump,
              ,xmin=0,xmax=200, ymin=0,ymax=20000,
              ,legend pos=outer north east
              ]
              addplot+[no marks,domain=0:200] (1375*(801-2.96*x)/(x*(18-0.1*x));
              addlegendentry$C(x)$
              endaxis
              endtikzpicture
              enddocument


              enter image description here



              Even ymax=2300 works but this cuts away most of the plot.



              documentclass[tikz,border=3.14mm]standalone
              usepackagepgfplots
              pgfplotssetcompat=1.16
              begindocument
              begintikzpicture
              beginaxis[ xlabel=$x$, ylabel=$C$
              ,samples=200, grid, thick,unbounded coords=jump,
              ,xmin=0,xmax=200, ymin=0,ymax=2300,
              ,legend pos=outer north east
              ]
              addplot+[no marks,domain=0:200] (1375*(801-2.96*x)/(x*(18-0.1*x));
              addlegendentry$C(x)$
              endaxis
              endtikzpicture
              enddocument


              enter image description here



              You can retain your ymax using restrict y to domain=0:2000 but the result is not great because some stretches will be cut away.



              documentclass[tikz,border=3.14mm]standalone
              usepackagepgfplots
              pgfplotssetcompat=1.16
              begindocument
              begintikzpicture
              beginaxis[ xlabel=$x$, ylabel=$C$
              ,samples=501, grid, thick,unbounded coords=jump,
              ,xmin=0,xmax=200, ymin=0,ymax=2000,
              ,legend pos=outer north east
              ]
              addplot+[no marks,domain=0:200,restrict y to domain=0:2000] (1375*(801-2.96*x)/(x*(18-0.1*x));
              addlegendentry$C(x)$
              endaxis
              endtikzpicture
              enddocument


              enter image description here






              share|improve this answer



























                9












                9








                9







                Welcome to TeX-SE! The problem can be removed by specifying the domain and making ymax larger. (I also added unbounded coords=jump.)



                documentclass[tikz,border=3.14mm]standalone
                usepackagepgfplots
                pgfplotssetcompat=1.16
                begindocument
                begintikzpicture
                beginaxis[ xlabel=$x$, ylabel=$C$
                ,samples=200, grid, thick,unbounded coords=jump,
                ,xmin=0,xmax=200, ymin=0,ymax=20000,
                ,legend pos=outer north east
                ]
                addplot+[no marks,domain=0:200] (1375*(801-2.96*x)/(x*(18-0.1*x));
                addlegendentry$C(x)$
                endaxis
                endtikzpicture
                enddocument


                enter image description here



                Even ymax=2300 works but this cuts away most of the plot.



                documentclass[tikz,border=3.14mm]standalone
                usepackagepgfplots
                pgfplotssetcompat=1.16
                begindocument
                begintikzpicture
                beginaxis[ xlabel=$x$, ylabel=$C$
                ,samples=200, grid, thick,unbounded coords=jump,
                ,xmin=0,xmax=200, ymin=0,ymax=2300,
                ,legend pos=outer north east
                ]
                addplot+[no marks,domain=0:200] (1375*(801-2.96*x)/(x*(18-0.1*x));
                addlegendentry$C(x)$
                endaxis
                endtikzpicture
                enddocument


                enter image description here



                You can retain your ymax using restrict y to domain=0:2000 but the result is not great because some stretches will be cut away.



                documentclass[tikz,border=3.14mm]standalone
                usepackagepgfplots
                pgfplotssetcompat=1.16
                begindocument
                begintikzpicture
                beginaxis[ xlabel=$x$, ylabel=$C$
                ,samples=501, grid, thick,unbounded coords=jump,
                ,xmin=0,xmax=200, ymin=0,ymax=2000,
                ,legend pos=outer north east
                ]
                addplot+[no marks,domain=0:200,restrict y to domain=0:2000] (1375*(801-2.96*x)/(x*(18-0.1*x));
                addlegendentry$C(x)$
                endaxis
                endtikzpicture
                enddocument


                enter image description here






                share|improve this answer















                Welcome to TeX-SE! The problem can be removed by specifying the domain and making ymax larger. (I also added unbounded coords=jump.)



                documentclass[tikz,border=3.14mm]standalone
                usepackagepgfplots
                pgfplotssetcompat=1.16
                begindocument
                begintikzpicture
                beginaxis[ xlabel=$x$, ylabel=$C$
                ,samples=200, grid, thick,unbounded coords=jump,
                ,xmin=0,xmax=200, ymin=0,ymax=20000,
                ,legend pos=outer north east
                ]
                addplot+[no marks,domain=0:200] (1375*(801-2.96*x)/(x*(18-0.1*x));
                addlegendentry$C(x)$
                endaxis
                endtikzpicture
                enddocument


                enter image description here



                Even ymax=2300 works but this cuts away most of the plot.



                documentclass[tikz,border=3.14mm]standalone
                usepackagepgfplots
                pgfplotssetcompat=1.16
                begindocument
                begintikzpicture
                beginaxis[ xlabel=$x$, ylabel=$C$
                ,samples=200, grid, thick,unbounded coords=jump,
                ,xmin=0,xmax=200, ymin=0,ymax=2300,
                ,legend pos=outer north east
                ]
                addplot+[no marks,domain=0:200] (1375*(801-2.96*x)/(x*(18-0.1*x));
                addlegendentry$C(x)$
                endaxis
                endtikzpicture
                enddocument


                enter image description here



                You can retain your ymax using restrict y to domain=0:2000 but the result is not great because some stretches will be cut away.



                documentclass[tikz,border=3.14mm]standalone
                usepackagepgfplots
                pgfplotssetcompat=1.16
                begindocument
                begintikzpicture
                beginaxis[ xlabel=$x$, ylabel=$C$
                ,samples=501, grid, thick,unbounded coords=jump,
                ,xmin=0,xmax=200, ymin=0,ymax=2000,
                ,legend pos=outer north east
                ]
                addplot+[no marks,domain=0:200,restrict y to domain=0:2000] (1375*(801-2.96*x)/(x*(18-0.1*x));
                addlegendentry$C(x)$
                endaxis
                endtikzpicture
                enddocument


                enter image description here







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Jun 15 at 6:26

























                answered Jun 15 at 6:19









                marmotmarmot

                138k6 gold badges182 silver badges334 bronze badges




                138k6 gold badges182 silver badges334 bronze badges




















                    Jovan Stojkovski is a new contributor. Be nice, and check out our Code of Conduct.









                    draft saved

                    draft discarded


















                    Jovan Stojkovski is a new contributor. Be nice, and check out our Code of Conduct.












                    Jovan Stojkovski is a new contributor. Be nice, and check out our Code of Conduct.











                    Jovan Stojkovski is a new contributor. Be nice, and check out our Code of Conduct.














                    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%2f495868%2fgraphing-large-functions-in-latex%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

                    Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

                    Area configuration aggregation error after install Porto themeMagento 2.1 CE Installed but front/backend not loading/workingCSS not loading on page within Magento 2 pageCannot install module in Magento 2no commands defined in the “setup” namespace. in Magento2Magento 2: Static files are present but shows 404Why do i have to always run the commands to clean cache in Magento 2.1.8?Failure reason: 'Unable to unserialize value.'Error 500 after magento migrationIn production mode the site does not loadMagento 2 : Error 500 after installing

                    Middle Expansion Olielle Resaix Definition: Uttering songs of triumph shouting with joy triumphant exulting Sejunction Journal 붙다 달 고급 품목 외출 The stretch trades the screeching tin. Definition: The act of speaking with a drawl a drawl Cough Sand Definition: An uproar a quarrel a noisy outbreak Shake Iron Publicize Horse House Baby 사과 Resaix Flaggy Jelly Temporary Unequaled Puppet A drop in the bucket Shrew 성격 회원 성질 미팅 The burn frames the tacky quality. Materialistic The smoke reduces the way. Yammoe Nondescript Cheek 얼굴 배 약하다 날리다 타다 The illegal country shows the iron. Help Rule Drearien Smoke Teaching Meaty Wasp Abraham Lincoln Jaws 진심 수리하다 Size Cork Idea Convert Think Lark John Lennon 거울 청소 군 추천하다 아이스크림