how to plot complicated functionpgfplots: Plot inverse function (function of y)How to plot the function f(x) = sin(1/x)How to draw one smooth plot taking into account intervals of some functionPlot function with discontinuitycomplicated surface plot (projection and cut)How can I limit the length of a plotted function?pgfplots can not plot this function correctlyPlot a function of logarithm with PGFplotsWant to plot curve from points and want to remove axis valueshow to plot function from multiple points
What's the easiest way for a whole party to be able to communicate with a creature that doesn't know Common?
How to answer "write something on the board"?
Why was Mal so quick to drop Bester in favour of Kaylee?
How do I tell the reader that my character is autistic in Fantasy?
I hit a pipe with a mower and now it won't turn
Handling a player (unintentionally) stealing the spotlight
Balanced parentheses using STL C++
Why do changes to /etc/hosts take effect immediately?
Apex Class Deployment: duplicate value found: <unknown> duplicates value on record with id: <unknown>
Can Aziraphale and Crowley actually become native?
Apex REST API - Unable to set StatusCode to 429
Should I report a leak of confidential HR information?
How to get a character's limb regrown at 3rd level?
Security Patch SUPEE-11155 - Possible issues?
Can White Castle? #3
Are gliders susceptible to bird strikes?
How many photons are emitted by a lightning strike?
What could a reptilian race tell by candling their eggs?
How did installing this RPM create a file?
Graph problems as integer programs
Which is better for keeping data primary partition or logical partition?
SQLServer add a default value for a column
Is there a canon reason why Klingon and Romulan vessels are so similar in shape?
Put my student loan in parents’ second mortgage - help?
how to plot complicated function
pgfplots: Plot inverse function (function of y)How to plot the function f(x) = sin(1/x)How to draw one smooth plot taking into account intervals of some functionPlot function with discontinuitycomplicated surface plot (projection and cut)How can I limit the length of a plotted function?pgfplots can not plot this function correctlyPlot a function of logarithm with PGFplotsWant to plot curve from points and want to remove axis valueshow to plot function from multiple points
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
i know how to draw axis and everything else except the function here , please give me hint to plot this function
Thanks for the help
tikz-pgf pgfplots tikz-graphs
add a comment |
i know how to draw axis and everything else except the function here , please give me hint to plot this function
Thanks for the help
tikz-pgf pgfplots tikz-graphs
2
Could you please add a minimal example of what you managed to do?
– CarLaTeX
Jun 19 at 5:03
add a comment |
i know how to draw axis and everything else except the function here , please give me hint to plot this function
Thanks for the help
tikz-pgf pgfplots tikz-graphs
i know how to draw axis and everything else except the function here , please give me hint to plot this function
Thanks for the help
tikz-pgf pgfplots tikz-graphs
tikz-pgf pgfplots tikz-graphs
asked Jun 19 at 4:59
QuintisQuintis
594 bronze badges
594 bronze badges
2
Could you please add a minimal example of what you managed to do?
– CarLaTeX
Jun 19 at 5:03
add a comment |
2
Could you please add a minimal example of what you managed to do?
– CarLaTeX
Jun 19 at 5:03
2
2
Could you please add a minimal example of what you managed to do?
– CarLaTeX
Jun 19 at 5:03
Could you please add a minimal example of what you managed to do?
– CarLaTeX
Jun 19 at 5:03
add a comment |
2 Answers
2
active
oldest
votes
Is this what you want?
documentclass[tikz,border=1mm]standalone
usepackageamsmath,amssymb
begindocument
begintikzpicture[x=4cm,y=5cm]
beginscope
clip (-.2,-.2) rectangle (1.6,1.2);
draw[dashed,magenta]
(0,0) .. controls +(0:.3) and +(181:1.75) .. (1.5,.97);
draw[blue] (0,0) .. controls +(0:.25) and +(180:1.8) ..
(1.5,.97);
endscope
foreach i in .1,.2,...,1.5
draw (i,0)--+(90:1mm);
foreach i in 0.3,0.6,0.9,1.2,1.5
draw (i,0) node[below]$i$--+(90:2mm);
foreach j in .1,.2,...,1.1
draw (0,j)--+(0:1mm);
foreach j in 0.2,0.4,0.6,0.8,1
draw (0,j) node[left]$j$--+(0:2mm);
draw (0,1.1)--(0,0)--(1.5,0);
draw[red,dotted,thick] (0,1)--+(0:1.5);
path (0,0) node[below]$0$ node[left]$0$;
draw[blue] (.7,.7)--++(0:.4) node[right]Debye;
draw[magenta,dashed]
(.7,.6)--++(0:.4) node[right]Einstein;
path
(current bounding box.west) coordinate (W)
(current bounding box.south) coordinate (S);
path
(W)++(90:.1) node[left=5mm,rotate=90]$dfracC_V3NK$
(S) node[below=-4mm]$T/theta$;
endtikzpicture
enddocument
thanks a lot , i just needed to see how to plot these functions
– Quintis
Jun 19 at 15:19
btw how did u exactly draw this picture without using the function ?
– Quintis
Jun 19 at 15:24
I simply looked at you figure and use 'draw controls', controlling curve until getting similar to your figure
– Black Mild
Jun 19 at 16:00
5
One should mention that this function is known, see e.g. en.wikipedia.org/wiki/Debye_model. In the case when the function is known I personally prefer to plot it and not to reconstruct it with curves, which is fine for unknown functions.
– marmot
Jun 19 at 16:19
add a comment |
You could declare a function and plot it. The relevant function is well known, see e.g. this Wikipedia article.
documentclass[tikz,border=3.14mm]standalone
usepackagepgfplots
pgfplotssetcompat=1.16
begindocument
begintikzpicture[
declare function=
cV(T,TD,a,b) =
(a/(T/TD))^2 * exp(b/(T/TD)) / (exp(b/(T/TD))-1)^2;
,
]
beginaxis[
xlabel=$T/T_mathrmD$,
ylabel=$c_V/(3Nk_mathrmB)$,
legend style=at=(0.9,0.6),
domain=0.001:1.5,
samples=101,
smooth,
]
addplot [black] cV(x,1,1,1);
addplot [dashed] cV(x,(pi/6)^(-1/3),1,1);
addplot [densely dotted,red,samples=2] 1;
legend
Debye,
Einstein,
endaxis
endtikzpicture
enddocument
1
Oh i see so declaring function would solve everything huh ? , i appreciate a lot
– Quintis
Jun 19 at 5:22
1
@Quintis You do not have to declare it. But in this case it is worthwhile because you plot the same function twice with slightly different parameters.
– marmot
Jun 19 at 5:25
Woow, thanks marmot! Islegend
a new command of the version1.16
? Because I've never heard about it (I always useaddlegendentry
, pros, cons?).
– manooooh
Jun 19 at 16:36
1
@manoooohlegend
is slightly shorter. (Actually this was added by Stefan Pinnow, whom I thank for all edits except for the removal oftikz
indocumentclass[tikz,border=3.14mm]standalone
since this does not only loadtikz
but also declarestikz
to be a standalone environment, which is important when doing e.g. animations).
– marmot
Jun 19 at 16:41
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
);
);
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%2f496409%2fhow-to-plot-complicated-function%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
Is this what you want?
documentclass[tikz,border=1mm]standalone
usepackageamsmath,amssymb
begindocument
begintikzpicture[x=4cm,y=5cm]
beginscope
clip (-.2,-.2) rectangle (1.6,1.2);
draw[dashed,magenta]
(0,0) .. controls +(0:.3) and +(181:1.75) .. (1.5,.97);
draw[blue] (0,0) .. controls +(0:.25) and +(180:1.8) ..
(1.5,.97);
endscope
foreach i in .1,.2,...,1.5
draw (i,0)--+(90:1mm);
foreach i in 0.3,0.6,0.9,1.2,1.5
draw (i,0) node[below]$i$--+(90:2mm);
foreach j in .1,.2,...,1.1
draw (0,j)--+(0:1mm);
foreach j in 0.2,0.4,0.6,0.8,1
draw (0,j) node[left]$j$--+(0:2mm);
draw (0,1.1)--(0,0)--(1.5,0);
draw[red,dotted,thick] (0,1)--+(0:1.5);
path (0,0) node[below]$0$ node[left]$0$;
draw[blue] (.7,.7)--++(0:.4) node[right]Debye;
draw[magenta,dashed]
(.7,.6)--++(0:.4) node[right]Einstein;
path
(current bounding box.west) coordinate (W)
(current bounding box.south) coordinate (S);
path
(W)++(90:.1) node[left=5mm,rotate=90]$dfracC_V3NK$
(S) node[below=-4mm]$T/theta$;
endtikzpicture
enddocument
thanks a lot , i just needed to see how to plot these functions
– Quintis
Jun 19 at 15:19
btw how did u exactly draw this picture without using the function ?
– Quintis
Jun 19 at 15:24
I simply looked at you figure and use 'draw controls', controlling curve until getting similar to your figure
– Black Mild
Jun 19 at 16:00
5
One should mention that this function is known, see e.g. en.wikipedia.org/wiki/Debye_model. In the case when the function is known I personally prefer to plot it and not to reconstruct it with curves, which is fine for unknown functions.
– marmot
Jun 19 at 16:19
add a comment |
Is this what you want?
documentclass[tikz,border=1mm]standalone
usepackageamsmath,amssymb
begindocument
begintikzpicture[x=4cm,y=5cm]
beginscope
clip (-.2,-.2) rectangle (1.6,1.2);
draw[dashed,magenta]
(0,0) .. controls +(0:.3) and +(181:1.75) .. (1.5,.97);
draw[blue] (0,0) .. controls +(0:.25) and +(180:1.8) ..
(1.5,.97);
endscope
foreach i in .1,.2,...,1.5
draw (i,0)--+(90:1mm);
foreach i in 0.3,0.6,0.9,1.2,1.5
draw (i,0) node[below]$i$--+(90:2mm);
foreach j in .1,.2,...,1.1
draw (0,j)--+(0:1mm);
foreach j in 0.2,0.4,0.6,0.8,1
draw (0,j) node[left]$j$--+(0:2mm);
draw (0,1.1)--(0,0)--(1.5,0);
draw[red,dotted,thick] (0,1)--+(0:1.5);
path (0,0) node[below]$0$ node[left]$0$;
draw[blue] (.7,.7)--++(0:.4) node[right]Debye;
draw[magenta,dashed]
(.7,.6)--++(0:.4) node[right]Einstein;
path
(current bounding box.west) coordinate (W)
(current bounding box.south) coordinate (S);
path
(W)++(90:.1) node[left=5mm,rotate=90]$dfracC_V3NK$
(S) node[below=-4mm]$T/theta$;
endtikzpicture
enddocument
thanks a lot , i just needed to see how to plot these functions
– Quintis
Jun 19 at 15:19
btw how did u exactly draw this picture without using the function ?
– Quintis
Jun 19 at 15:24
I simply looked at you figure and use 'draw controls', controlling curve until getting similar to your figure
– Black Mild
Jun 19 at 16:00
5
One should mention that this function is known, see e.g. en.wikipedia.org/wiki/Debye_model. In the case when the function is known I personally prefer to plot it and not to reconstruct it with curves, which is fine for unknown functions.
– marmot
Jun 19 at 16:19
add a comment |
Is this what you want?
documentclass[tikz,border=1mm]standalone
usepackageamsmath,amssymb
begindocument
begintikzpicture[x=4cm,y=5cm]
beginscope
clip (-.2,-.2) rectangle (1.6,1.2);
draw[dashed,magenta]
(0,0) .. controls +(0:.3) and +(181:1.75) .. (1.5,.97);
draw[blue] (0,0) .. controls +(0:.25) and +(180:1.8) ..
(1.5,.97);
endscope
foreach i in .1,.2,...,1.5
draw (i,0)--+(90:1mm);
foreach i in 0.3,0.6,0.9,1.2,1.5
draw (i,0) node[below]$i$--+(90:2mm);
foreach j in .1,.2,...,1.1
draw (0,j)--+(0:1mm);
foreach j in 0.2,0.4,0.6,0.8,1
draw (0,j) node[left]$j$--+(0:2mm);
draw (0,1.1)--(0,0)--(1.5,0);
draw[red,dotted,thick] (0,1)--+(0:1.5);
path (0,0) node[below]$0$ node[left]$0$;
draw[blue] (.7,.7)--++(0:.4) node[right]Debye;
draw[magenta,dashed]
(.7,.6)--++(0:.4) node[right]Einstein;
path
(current bounding box.west) coordinate (W)
(current bounding box.south) coordinate (S);
path
(W)++(90:.1) node[left=5mm,rotate=90]$dfracC_V3NK$
(S) node[below=-4mm]$T/theta$;
endtikzpicture
enddocument
Is this what you want?
documentclass[tikz,border=1mm]standalone
usepackageamsmath,amssymb
begindocument
begintikzpicture[x=4cm,y=5cm]
beginscope
clip (-.2,-.2) rectangle (1.6,1.2);
draw[dashed,magenta]
(0,0) .. controls +(0:.3) and +(181:1.75) .. (1.5,.97);
draw[blue] (0,0) .. controls +(0:.25) and +(180:1.8) ..
(1.5,.97);
endscope
foreach i in .1,.2,...,1.5
draw (i,0)--+(90:1mm);
foreach i in 0.3,0.6,0.9,1.2,1.5
draw (i,0) node[below]$i$--+(90:2mm);
foreach j in .1,.2,...,1.1
draw (0,j)--+(0:1mm);
foreach j in 0.2,0.4,0.6,0.8,1
draw (0,j) node[left]$j$--+(0:2mm);
draw (0,1.1)--(0,0)--(1.5,0);
draw[red,dotted,thick] (0,1)--+(0:1.5);
path (0,0) node[below]$0$ node[left]$0$;
draw[blue] (.7,.7)--++(0:.4) node[right]Debye;
draw[magenta,dashed]
(.7,.6)--++(0:.4) node[right]Einstein;
path
(current bounding box.west) coordinate (W)
(current bounding box.south) coordinate (S);
path
(W)++(90:.1) node[left=5mm,rotate=90]$dfracC_V3NK$
(S) node[below=-4mm]$T/theta$;
endtikzpicture
enddocument
answered Jun 19 at 10:53
Black MildBlack Mild
9337 silver badges12 bronze badges
9337 silver badges12 bronze badges
thanks a lot , i just needed to see how to plot these functions
– Quintis
Jun 19 at 15:19
btw how did u exactly draw this picture without using the function ?
– Quintis
Jun 19 at 15:24
I simply looked at you figure and use 'draw controls', controlling curve until getting similar to your figure
– Black Mild
Jun 19 at 16:00
5
One should mention that this function is known, see e.g. en.wikipedia.org/wiki/Debye_model. In the case when the function is known I personally prefer to plot it and not to reconstruct it with curves, which is fine for unknown functions.
– marmot
Jun 19 at 16:19
add a comment |
thanks a lot , i just needed to see how to plot these functions
– Quintis
Jun 19 at 15:19
btw how did u exactly draw this picture without using the function ?
– Quintis
Jun 19 at 15:24
I simply looked at you figure and use 'draw controls', controlling curve until getting similar to your figure
– Black Mild
Jun 19 at 16:00
5
One should mention that this function is known, see e.g. en.wikipedia.org/wiki/Debye_model. In the case when the function is known I personally prefer to plot it and not to reconstruct it with curves, which is fine for unknown functions.
– marmot
Jun 19 at 16:19
thanks a lot , i just needed to see how to plot these functions
– Quintis
Jun 19 at 15:19
thanks a lot , i just needed to see how to plot these functions
– Quintis
Jun 19 at 15:19
btw how did u exactly draw this picture without using the function ?
– Quintis
Jun 19 at 15:24
btw how did u exactly draw this picture without using the function ?
– Quintis
Jun 19 at 15:24
I simply looked at you figure and use 'draw controls', controlling curve until getting similar to your figure
– Black Mild
Jun 19 at 16:00
I simply looked at you figure and use 'draw controls', controlling curve until getting similar to your figure
– Black Mild
Jun 19 at 16:00
5
5
One should mention that this function is known, see e.g. en.wikipedia.org/wiki/Debye_model. In the case when the function is known I personally prefer to plot it and not to reconstruct it with curves, which is fine for unknown functions.
– marmot
Jun 19 at 16:19
One should mention that this function is known, see e.g. en.wikipedia.org/wiki/Debye_model. In the case when the function is known I personally prefer to plot it and not to reconstruct it with curves, which is fine for unknown functions.
– marmot
Jun 19 at 16:19
add a comment |
You could declare a function and plot it. The relevant function is well known, see e.g. this Wikipedia article.
documentclass[tikz,border=3.14mm]standalone
usepackagepgfplots
pgfplotssetcompat=1.16
begindocument
begintikzpicture[
declare function=
cV(T,TD,a,b) =
(a/(T/TD))^2 * exp(b/(T/TD)) / (exp(b/(T/TD))-1)^2;
,
]
beginaxis[
xlabel=$T/T_mathrmD$,
ylabel=$c_V/(3Nk_mathrmB)$,
legend style=at=(0.9,0.6),
domain=0.001:1.5,
samples=101,
smooth,
]
addplot [black] cV(x,1,1,1);
addplot [dashed] cV(x,(pi/6)^(-1/3),1,1);
addplot [densely dotted,red,samples=2] 1;
legend
Debye,
Einstein,
endaxis
endtikzpicture
enddocument
1
Oh i see so declaring function would solve everything huh ? , i appreciate a lot
– Quintis
Jun 19 at 5:22
1
@Quintis You do not have to declare it. But in this case it is worthwhile because you plot the same function twice with slightly different parameters.
– marmot
Jun 19 at 5:25
Woow, thanks marmot! Islegend
a new command of the version1.16
? Because I've never heard about it (I always useaddlegendentry
, pros, cons?).
– manooooh
Jun 19 at 16:36
1
@manoooohlegend
is slightly shorter. (Actually this was added by Stefan Pinnow, whom I thank for all edits except for the removal oftikz
indocumentclass[tikz,border=3.14mm]standalone
since this does not only loadtikz
but also declarestikz
to be a standalone environment, which is important when doing e.g. animations).
– marmot
Jun 19 at 16:41
add a comment |
You could declare a function and plot it. The relevant function is well known, see e.g. this Wikipedia article.
documentclass[tikz,border=3.14mm]standalone
usepackagepgfplots
pgfplotssetcompat=1.16
begindocument
begintikzpicture[
declare function=
cV(T,TD,a,b) =
(a/(T/TD))^2 * exp(b/(T/TD)) / (exp(b/(T/TD))-1)^2;
,
]
beginaxis[
xlabel=$T/T_mathrmD$,
ylabel=$c_V/(3Nk_mathrmB)$,
legend style=at=(0.9,0.6),
domain=0.001:1.5,
samples=101,
smooth,
]
addplot [black] cV(x,1,1,1);
addplot [dashed] cV(x,(pi/6)^(-1/3),1,1);
addplot [densely dotted,red,samples=2] 1;
legend
Debye,
Einstein,
endaxis
endtikzpicture
enddocument
1
Oh i see so declaring function would solve everything huh ? , i appreciate a lot
– Quintis
Jun 19 at 5:22
1
@Quintis You do not have to declare it. But in this case it is worthwhile because you plot the same function twice with slightly different parameters.
– marmot
Jun 19 at 5:25
Woow, thanks marmot! Islegend
a new command of the version1.16
? Because I've never heard about it (I always useaddlegendentry
, pros, cons?).
– manooooh
Jun 19 at 16:36
1
@manoooohlegend
is slightly shorter. (Actually this was added by Stefan Pinnow, whom I thank for all edits except for the removal oftikz
indocumentclass[tikz,border=3.14mm]standalone
since this does not only loadtikz
but also declarestikz
to be a standalone environment, which is important when doing e.g. animations).
– marmot
Jun 19 at 16:41
add a comment |
You could declare a function and plot it. The relevant function is well known, see e.g. this Wikipedia article.
documentclass[tikz,border=3.14mm]standalone
usepackagepgfplots
pgfplotssetcompat=1.16
begindocument
begintikzpicture[
declare function=
cV(T,TD,a,b) =
(a/(T/TD))^2 * exp(b/(T/TD)) / (exp(b/(T/TD))-1)^2;
,
]
beginaxis[
xlabel=$T/T_mathrmD$,
ylabel=$c_V/(3Nk_mathrmB)$,
legend style=at=(0.9,0.6),
domain=0.001:1.5,
samples=101,
smooth,
]
addplot [black] cV(x,1,1,1);
addplot [dashed] cV(x,(pi/6)^(-1/3),1,1);
addplot [densely dotted,red,samples=2] 1;
legend
Debye,
Einstein,
endaxis
endtikzpicture
enddocument
You could declare a function and plot it. The relevant function is well known, see e.g. this Wikipedia article.
documentclass[tikz,border=3.14mm]standalone
usepackagepgfplots
pgfplotssetcompat=1.16
begindocument
begintikzpicture[
declare function=
cV(T,TD,a,b) =
(a/(T/TD))^2 * exp(b/(T/TD)) / (exp(b/(T/TD))-1)^2;
,
]
beginaxis[
xlabel=$T/T_mathrmD$,
ylabel=$c_V/(3Nk_mathrmB)$,
legend style=at=(0.9,0.6),
domain=0.001:1.5,
samples=101,
smooth,
]
addplot [black] cV(x,1,1,1);
addplot [dashed] cV(x,(pi/6)^(-1/3),1,1);
addplot [densely dotted,red,samples=2] 1;
legend
Debye,
Einstein,
endaxis
endtikzpicture
enddocument
edited Jun 19 at 16:24
answered Jun 19 at 5:19
marmotmarmot
139k6 gold badges184 silver badges336 bronze badges
139k6 gold badges184 silver badges336 bronze badges
1
Oh i see so declaring function would solve everything huh ? , i appreciate a lot
– Quintis
Jun 19 at 5:22
1
@Quintis You do not have to declare it. But in this case it is worthwhile because you plot the same function twice with slightly different parameters.
– marmot
Jun 19 at 5:25
Woow, thanks marmot! Islegend
a new command of the version1.16
? Because I've never heard about it (I always useaddlegendentry
, pros, cons?).
– manooooh
Jun 19 at 16:36
1
@manoooohlegend
is slightly shorter. (Actually this was added by Stefan Pinnow, whom I thank for all edits except for the removal oftikz
indocumentclass[tikz,border=3.14mm]standalone
since this does not only loadtikz
but also declarestikz
to be a standalone environment, which is important when doing e.g. animations).
– marmot
Jun 19 at 16:41
add a comment |
1
Oh i see so declaring function would solve everything huh ? , i appreciate a lot
– Quintis
Jun 19 at 5:22
1
@Quintis You do not have to declare it. But in this case it is worthwhile because you plot the same function twice with slightly different parameters.
– marmot
Jun 19 at 5:25
Woow, thanks marmot! Islegend
a new command of the version1.16
? Because I've never heard about it (I always useaddlegendentry
, pros, cons?).
– manooooh
Jun 19 at 16:36
1
@manoooohlegend
is slightly shorter. (Actually this was added by Stefan Pinnow, whom I thank for all edits except for the removal oftikz
indocumentclass[tikz,border=3.14mm]standalone
since this does not only loadtikz
but also declarestikz
to be a standalone environment, which is important when doing e.g. animations).
– marmot
Jun 19 at 16:41
1
1
Oh i see so declaring function would solve everything huh ? , i appreciate a lot
– Quintis
Jun 19 at 5:22
Oh i see so declaring function would solve everything huh ? , i appreciate a lot
– Quintis
Jun 19 at 5:22
1
1
@Quintis You do not have to declare it. But in this case it is worthwhile because you plot the same function twice with slightly different parameters.
– marmot
Jun 19 at 5:25
@Quintis You do not have to declare it. But in this case it is worthwhile because you plot the same function twice with slightly different parameters.
– marmot
Jun 19 at 5:25
Woow, thanks marmot! Is
legend
a new command of the version 1.16
? Because I've never heard about it (I always use addlegendentry
, pros, cons?).– manooooh
Jun 19 at 16:36
Woow, thanks marmot! Is
legend
a new command of the version 1.16
? Because I've never heard about it (I always use addlegendentry
, pros, cons?).– manooooh
Jun 19 at 16:36
1
1
@manooooh
legend
is slightly shorter. (Actually this was added by Stefan Pinnow, whom I thank for all edits except for the removal of tikz
in documentclass[tikz,border=3.14mm]standalone
since this does not only load tikz
but also declares tikz
to be a standalone environment, which is important when doing e.g. animations).– marmot
Jun 19 at 16:41
@manooooh
legend
is slightly shorter. (Actually this was added by Stefan Pinnow, whom I thank for all edits except for the removal of tikz
in documentclass[tikz,border=3.14mm]standalone
since this does not only load tikz
but also declares tikz
to be a standalone environment, which is important when doing e.g. animations).– marmot
Jun 19 at 16:41
add a comment |
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%2f496409%2fhow-to-plot-complicated-function%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
2
Could you please add a minimal example of what you managed to do?
– CarLaTeX
Jun 19 at 5:03