Easiest way to interpolate increasingly closely in a diagram?Is there the easiest way to toggle (show/hide)...

Why is working on the same position for more than 15 years not a red flag?

Non-Cancer terminal illness that can affect young (age 10-13) girls?

Let's Encrypt and EV certificates for different hosts in the same domain

Why was Lupin comfortable with saying Voldemort's name?

"We can't save the customer" error after Migration - Magento 2.3

Does Skippy chunky peanut butter contain trans fat?

Why is it that Bernie Sanders is always called a "socialist"?

Why publish a research paper when a blog post or a lecture slide can have more citation count than a journal paper?

Why does magnet wire need to be insulated?

Is there any risk in sharing info about technologies and products we use with a supplier?

Identify KNO3 and KH2PO4 at home

Crontab: Ubuntu running script (noob)

A curious equality of integrals involving the prime counting function?

False written accusations not made public - is there law to cover this?

Does dispel magic end a master's control over their undead?

What makes papers publishable in top-tier journals?

Salsa20 Implementation: Sum of 2 Words with Carries Suppressed

Potential client has a problematic employee I can't work with

Should I reinstall Linux when changing the laptop's CPU?

How do you catch Smeargle in Pokemon Go?

Does diversity provide anything that meritocracy does not?

Why would space fleets be aligned?

Which communication protocol is used in AdLib sound card?

How do you voice extended chords?



Easiest way to interpolate increasingly closely in a diagram?


Is there the easiest way to toggle (show/hide) navigational grids in TikZ?Easiest way to plot a function with PGF/TikZWhat are the Easiest/Cleanest way to create arrays for illustrating quicksort with tikz?TikZ scaling graphic and adjust node position and keep font sizeThe easiest way to draw a diagram within a textTikZ: Drawing an arc from an intersection to an intersectionWhat's the easiest way to draw block matrices?A Proper way to draw a diagram?Easiest way to create simple connected graphs?Pgfplot - Easiest way to draw ski slope













0















I am trying to create a diagram which looks like this:



enter image description here



I have tried fitting a function with increasingly many nodes, but it does not look right (showing all 3 curves on the diagram to better illustrate):



documentclass[10pt,landscape,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[UKenglish]{babel}
usepackage{tikz}

begin{document}

begin{tikzpicture} [scale = 0.5]

foreach p in {-5,...,5} node[circle,fill=green] at (p,2*rand) (p) {};
draw [cyan, xshift=4cm] plot [smooth, tension=1] coordinates { (-5) (-4) (-3) (-2) (-1) (0) (1) (2) (3) (4) (5) };
draw [red, xshift=4cm] plot [smooth, tension=1] coordinates { (-5) (-3) (-1) (1) (3) (5) };
draw [blue, xshift=4cm] plot [smooth, tension=1] coordinates { (-5) (5) };
end{tikzpicture}

end{document}




enter image description here



I have also tried creating nodes like this (ie with a defined function x^2+x+1 + "noise" instead:




foreach p in {-5,...,5} node[circle,fill=green] at (p, p * p + p + 1 + rand) (p) {};



but that does not work at all.



In any case my code forces me to list nodes manually, which is not great.



I guess I need a way of interpolating with increasingly higher degree polynomials ? But I am not sure how to do this.









share

























  • LaTeX-free advice: I would generate the data outside of LaTeX (Matlab, MS Excel, Python, etc.) and then plot the result (e. g. csv file, or the polynom in equation form) using pgfplots. These are the tools you would use in a real life scenario anyway and not LaTeX for mathematical problem solving.

    – Dr. Manuel Kuehner
    2 mins ago


















0















I am trying to create a diagram which looks like this:



enter image description here



I have tried fitting a function with increasingly many nodes, but it does not look right (showing all 3 curves on the diagram to better illustrate):



documentclass[10pt,landscape,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[UKenglish]{babel}
usepackage{tikz}

begin{document}

begin{tikzpicture} [scale = 0.5]

foreach p in {-5,...,5} node[circle,fill=green] at (p,2*rand) (p) {};
draw [cyan, xshift=4cm] plot [smooth, tension=1] coordinates { (-5) (-4) (-3) (-2) (-1) (0) (1) (2) (3) (4) (5) };
draw [red, xshift=4cm] plot [smooth, tension=1] coordinates { (-5) (-3) (-1) (1) (3) (5) };
draw [blue, xshift=4cm] plot [smooth, tension=1] coordinates { (-5) (5) };
end{tikzpicture}

end{document}




enter image description here



I have also tried creating nodes like this (ie with a defined function x^2+x+1 + "noise" instead:




foreach p in {-5,...,5} node[circle,fill=green] at (p, p * p + p + 1 + rand) (p) {};



but that does not work at all.



In any case my code forces me to list nodes manually, which is not great.



I guess I need a way of interpolating with increasingly higher degree polynomials ? But I am not sure how to do this.









share

























  • LaTeX-free advice: I would generate the data outside of LaTeX (Matlab, MS Excel, Python, etc.) and then plot the result (e. g. csv file, or the polynom in equation form) using pgfplots. These are the tools you would use in a real life scenario anyway and not LaTeX for mathematical problem solving.

    – Dr. Manuel Kuehner
    2 mins ago
















0












0








0








I am trying to create a diagram which looks like this:



enter image description here



I have tried fitting a function with increasingly many nodes, but it does not look right (showing all 3 curves on the diagram to better illustrate):



documentclass[10pt,landscape,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[UKenglish]{babel}
usepackage{tikz}

begin{document}

begin{tikzpicture} [scale = 0.5]

foreach p in {-5,...,5} node[circle,fill=green] at (p,2*rand) (p) {};
draw [cyan, xshift=4cm] plot [smooth, tension=1] coordinates { (-5) (-4) (-3) (-2) (-1) (0) (1) (2) (3) (4) (5) };
draw [red, xshift=4cm] plot [smooth, tension=1] coordinates { (-5) (-3) (-1) (1) (3) (5) };
draw [blue, xshift=4cm] plot [smooth, tension=1] coordinates { (-5) (5) };
end{tikzpicture}

end{document}




enter image description here



I have also tried creating nodes like this (ie with a defined function x^2+x+1 + "noise" instead:




foreach p in {-5,...,5} node[circle,fill=green] at (p, p * p + p + 1 + rand) (p) {};



but that does not work at all.



In any case my code forces me to list nodes manually, which is not great.



I guess I need a way of interpolating with increasingly higher degree polynomials ? But I am not sure how to do this.









share
















I am trying to create a diagram which looks like this:



enter image description here



I have tried fitting a function with increasingly many nodes, but it does not look right (showing all 3 curves on the diagram to better illustrate):



documentclass[10pt,landscape,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[UKenglish]{babel}
usepackage{tikz}

begin{document}

begin{tikzpicture} [scale = 0.5]

foreach p in {-5,...,5} node[circle,fill=green] at (p,2*rand) (p) {};
draw [cyan, xshift=4cm] plot [smooth, tension=1] coordinates { (-5) (-4) (-3) (-2) (-1) (0) (1) (2) (3) (4) (5) };
draw [red, xshift=4cm] plot [smooth, tension=1] coordinates { (-5) (-3) (-1) (1) (3) (5) };
draw [blue, xshift=4cm] plot [smooth, tension=1] coordinates { (-5) (5) };
end{tikzpicture}

end{document}




enter image description here



I have also tried creating nodes like this (ie with a defined function x^2+x+1 + "noise" instead:




foreach p in {-5,...,5} node[circle,fill=green] at (p, p * p + p + 1 + rand) (p) {};



but that does not work at all.



In any case my code forces me to list nodes manually, which is not great.



I guess I need a way of interpolating with increasingly higher degree polynomials ? But I am not sure how to do this.







tikz-pgf





share














share












share



share








edited 1 min ago







user3203476

















asked 9 mins ago









user3203476user3203476

307111




307111













  • LaTeX-free advice: I would generate the data outside of LaTeX (Matlab, MS Excel, Python, etc.) and then plot the result (e. g. csv file, or the polynom in equation form) using pgfplots. These are the tools you would use in a real life scenario anyway and not LaTeX for mathematical problem solving.

    – Dr. Manuel Kuehner
    2 mins ago





















  • LaTeX-free advice: I would generate the data outside of LaTeX (Matlab, MS Excel, Python, etc.) and then plot the result (e. g. csv file, or the polynom in equation form) using pgfplots. These are the tools you would use in a real life scenario anyway and not LaTeX for mathematical problem solving.

    – Dr. Manuel Kuehner
    2 mins ago



















LaTeX-free advice: I would generate the data outside of LaTeX (Matlab, MS Excel, Python, etc.) and then plot the result (e. g. csv file, or the polynom in equation form) using pgfplots. These are the tools you would use in a real life scenario anyway and not LaTeX for mathematical problem solving.

– Dr. Manuel Kuehner
2 mins ago







LaTeX-free advice: I would generate the data outside of LaTeX (Matlab, MS Excel, Python, etc.) and then plot the result (e. g. csv file, or the polynom in equation form) using pgfplots. These are the tools you would use in a real life scenario anyway and not LaTeX for mathematical problem solving.

– Dr. Manuel Kuehner
2 mins ago












0






active

oldest

votes











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


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476951%2feasiest-way-to-interpolate-increasingly-closely-in-a-diagram%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































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%2f476951%2feasiest-way-to-interpolate-increasingly-closely-in-a-diagram%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

Paper upload error, “Upload failed: The top margin is 0.715 in on page 3, which is below the required...

Emraan Hashmi Filmografia | Linki zewnętrzne | Menu nawigacyjneGulshan GroverGulshan...

How can I write this formula?newline and italics added with leqWhy does widehat behave differently if I...