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;
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
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.
add a comment |
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
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.
add a comment |
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
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
tikz-pgf pgfplots errors
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.
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.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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

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

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

add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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

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

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

add a comment |
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

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

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

add a comment |
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

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

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

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

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

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

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
add a comment |
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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