amplitude against frequency graph of a mass spring system
I have seen marmot drawing four graphs like this but I have not learnt his. Can you help me?
tikz-pgf
add a comment |
I have seen marmot drawing four graphs like this but I have not learnt his. Can you help me?
tikz-pgf
add a comment |
I have seen marmot drawing four graphs like this but I have not learnt his. Can you help me?
tikz-pgf
I have seen marmot drawing four graphs like this but I have not learnt his. Can you help me?
tikz-pgf
tikz-pgf
asked 31 mins ago
ThumboltThumbolt
1,394819
1,394819
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Here is another possibility which you may find more intuitive: group plots.
documentclass[tikz,border=3.14mm]{standalone}
usepackage{pgfplots}
pgfplotsset{compat=1.16}
usepgfplotslibrary{groupplots}
begin{document}
begin{tikzpicture}[font=sffamily,declare function={%
gauss(x,y,z)=1/(2*z*sqrt(pi))*exp(-(x-y)^2/(2*z^2));}]
begin{groupplot}[group style={group size=2 by 2, vertical sep=1.6cm},
height=6cm,width=6cm,
domain=0.2:5.5,samples=51,ymin=0,ymax=1,xmin=0,xmax=6,
xlabel=frequency,ylabel=amplitude,
axis lines=left,xtick=empty,ytick=empty]
nextgroupplot[title=A]
addplot[mark=none,smooth,thick,blue] {0.1+1.25*gauss(x,2,0.7)};
addplot[mark=none,smooth,thick,blue,densely dashed]
{0.1+1.6*gauss(x,2.8,0.7)};
nextgroupplot[title=B]
addplot[mark=none,smooth,thick,blue] {0.1+1.25*gauss(x,2.8,0.7)};
addplot[mark=none,smooth,thick,blue,densely dashed]
{0.1+1.6*gauss(x,2.8,0.7)};
nextgroupplot[title=C]
addplot[mark=none,smooth,thick,blue] {0.1+1.25*gauss(x,2.8,0.7)};
addplot[mark=none,smooth,thick,blue,densely dashed]
{0.1+1.22*gauss(x,2.8,0.7)};
nextgroupplot[title=D]
addplot[mark=none,smooth,thick,blue] {0.1+1.25*gauss(x,2.8,0.7)};
addplot[mark=none,smooth,thick,blue,densely dashed]
{0.1+1.4*gauss(x,1.8,0.7)};
end{groupplot}
end{tikzpicture}
end{document}
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%2f469643%2famplitude-against-frequency-graph-of-a-mass-spring-system%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
Here is another possibility which you may find more intuitive: group plots.
documentclass[tikz,border=3.14mm]{standalone}
usepackage{pgfplots}
pgfplotsset{compat=1.16}
usepgfplotslibrary{groupplots}
begin{document}
begin{tikzpicture}[font=sffamily,declare function={%
gauss(x,y,z)=1/(2*z*sqrt(pi))*exp(-(x-y)^2/(2*z^2));}]
begin{groupplot}[group style={group size=2 by 2, vertical sep=1.6cm},
height=6cm,width=6cm,
domain=0.2:5.5,samples=51,ymin=0,ymax=1,xmin=0,xmax=6,
xlabel=frequency,ylabel=amplitude,
axis lines=left,xtick=empty,ytick=empty]
nextgroupplot[title=A]
addplot[mark=none,smooth,thick,blue] {0.1+1.25*gauss(x,2,0.7)};
addplot[mark=none,smooth,thick,blue,densely dashed]
{0.1+1.6*gauss(x,2.8,0.7)};
nextgroupplot[title=B]
addplot[mark=none,smooth,thick,blue] {0.1+1.25*gauss(x,2.8,0.7)};
addplot[mark=none,smooth,thick,blue,densely dashed]
{0.1+1.6*gauss(x,2.8,0.7)};
nextgroupplot[title=C]
addplot[mark=none,smooth,thick,blue] {0.1+1.25*gauss(x,2.8,0.7)};
addplot[mark=none,smooth,thick,blue,densely dashed]
{0.1+1.22*gauss(x,2.8,0.7)};
nextgroupplot[title=D]
addplot[mark=none,smooth,thick,blue] {0.1+1.25*gauss(x,2.8,0.7)};
addplot[mark=none,smooth,thick,blue,densely dashed]
{0.1+1.4*gauss(x,1.8,0.7)};
end{groupplot}
end{tikzpicture}
end{document}
add a comment |
Here is another possibility which you may find more intuitive: group plots.
documentclass[tikz,border=3.14mm]{standalone}
usepackage{pgfplots}
pgfplotsset{compat=1.16}
usepgfplotslibrary{groupplots}
begin{document}
begin{tikzpicture}[font=sffamily,declare function={%
gauss(x,y,z)=1/(2*z*sqrt(pi))*exp(-(x-y)^2/(2*z^2));}]
begin{groupplot}[group style={group size=2 by 2, vertical sep=1.6cm},
height=6cm,width=6cm,
domain=0.2:5.5,samples=51,ymin=0,ymax=1,xmin=0,xmax=6,
xlabel=frequency,ylabel=amplitude,
axis lines=left,xtick=empty,ytick=empty]
nextgroupplot[title=A]
addplot[mark=none,smooth,thick,blue] {0.1+1.25*gauss(x,2,0.7)};
addplot[mark=none,smooth,thick,blue,densely dashed]
{0.1+1.6*gauss(x,2.8,0.7)};
nextgroupplot[title=B]
addplot[mark=none,smooth,thick,blue] {0.1+1.25*gauss(x,2.8,0.7)};
addplot[mark=none,smooth,thick,blue,densely dashed]
{0.1+1.6*gauss(x,2.8,0.7)};
nextgroupplot[title=C]
addplot[mark=none,smooth,thick,blue] {0.1+1.25*gauss(x,2.8,0.7)};
addplot[mark=none,smooth,thick,blue,densely dashed]
{0.1+1.22*gauss(x,2.8,0.7)};
nextgroupplot[title=D]
addplot[mark=none,smooth,thick,blue] {0.1+1.25*gauss(x,2.8,0.7)};
addplot[mark=none,smooth,thick,blue,densely dashed]
{0.1+1.4*gauss(x,1.8,0.7)};
end{groupplot}
end{tikzpicture}
end{document}
add a comment |
Here is another possibility which you may find more intuitive: group plots.
documentclass[tikz,border=3.14mm]{standalone}
usepackage{pgfplots}
pgfplotsset{compat=1.16}
usepgfplotslibrary{groupplots}
begin{document}
begin{tikzpicture}[font=sffamily,declare function={%
gauss(x,y,z)=1/(2*z*sqrt(pi))*exp(-(x-y)^2/(2*z^2));}]
begin{groupplot}[group style={group size=2 by 2, vertical sep=1.6cm},
height=6cm,width=6cm,
domain=0.2:5.5,samples=51,ymin=0,ymax=1,xmin=0,xmax=6,
xlabel=frequency,ylabel=amplitude,
axis lines=left,xtick=empty,ytick=empty]
nextgroupplot[title=A]
addplot[mark=none,smooth,thick,blue] {0.1+1.25*gauss(x,2,0.7)};
addplot[mark=none,smooth,thick,blue,densely dashed]
{0.1+1.6*gauss(x,2.8,0.7)};
nextgroupplot[title=B]
addplot[mark=none,smooth,thick,blue] {0.1+1.25*gauss(x,2.8,0.7)};
addplot[mark=none,smooth,thick,blue,densely dashed]
{0.1+1.6*gauss(x,2.8,0.7)};
nextgroupplot[title=C]
addplot[mark=none,smooth,thick,blue] {0.1+1.25*gauss(x,2.8,0.7)};
addplot[mark=none,smooth,thick,blue,densely dashed]
{0.1+1.22*gauss(x,2.8,0.7)};
nextgroupplot[title=D]
addplot[mark=none,smooth,thick,blue] {0.1+1.25*gauss(x,2.8,0.7)};
addplot[mark=none,smooth,thick,blue,densely dashed]
{0.1+1.4*gauss(x,1.8,0.7)};
end{groupplot}
end{tikzpicture}
end{document}
Here is another possibility which you may find more intuitive: group plots.
documentclass[tikz,border=3.14mm]{standalone}
usepackage{pgfplots}
pgfplotsset{compat=1.16}
usepgfplotslibrary{groupplots}
begin{document}
begin{tikzpicture}[font=sffamily,declare function={%
gauss(x,y,z)=1/(2*z*sqrt(pi))*exp(-(x-y)^2/(2*z^2));}]
begin{groupplot}[group style={group size=2 by 2, vertical sep=1.6cm},
height=6cm,width=6cm,
domain=0.2:5.5,samples=51,ymin=0,ymax=1,xmin=0,xmax=6,
xlabel=frequency,ylabel=amplitude,
axis lines=left,xtick=empty,ytick=empty]
nextgroupplot[title=A]
addplot[mark=none,smooth,thick,blue] {0.1+1.25*gauss(x,2,0.7)};
addplot[mark=none,smooth,thick,blue,densely dashed]
{0.1+1.6*gauss(x,2.8,0.7)};
nextgroupplot[title=B]
addplot[mark=none,smooth,thick,blue] {0.1+1.25*gauss(x,2.8,0.7)};
addplot[mark=none,smooth,thick,blue,densely dashed]
{0.1+1.6*gauss(x,2.8,0.7)};
nextgroupplot[title=C]
addplot[mark=none,smooth,thick,blue] {0.1+1.25*gauss(x,2.8,0.7)};
addplot[mark=none,smooth,thick,blue,densely dashed]
{0.1+1.22*gauss(x,2.8,0.7)};
nextgroupplot[title=D]
addplot[mark=none,smooth,thick,blue] {0.1+1.25*gauss(x,2.8,0.7)};
addplot[mark=none,smooth,thick,blue,densely dashed]
{0.1+1.4*gauss(x,1.8,0.7)};
end{groupplot}
end{tikzpicture}
end{document}
answered 9 mins ago
marmotmarmot
90.3k4104195
90.3k4104195
add a comment |
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%2f469643%2famplitude-against-frequency-graph-of-a-mass-spring-system%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