Squiggles mocking polynomials in TikZ
How can I draw squiggles in TikZ to mock the plot of polynomials?

tikz-pgf
add a comment |
How can I draw squiggles in TikZ to mock the plot of polynomials?

tikz-pgf
TikZ understands commands likedraw[blue] plot[variable=x,domain=0:1] (2*x+0.4*cos(x*200),-0.7*sin(x*540));that draw something like your "randomized" plots.
– marmot
Nov 13 '18 at 18:44
add a comment |
How can I draw squiggles in TikZ to mock the plot of polynomials?

tikz-pgf
How can I draw squiggles in TikZ to mock the plot of polynomials?

tikz-pgf
tikz-pgf
edited Nov 13 '18 at 20:56
Peter Mortensen
55537
55537
asked Nov 13 '18 at 18:36
qweruiopqweruiop
28119
28119
TikZ understands commands likedraw[blue] plot[variable=x,domain=0:1] (2*x+0.4*cos(x*200),-0.7*sin(x*540));that draw something like your "randomized" plots.
– marmot
Nov 13 '18 at 18:44
add a comment |
TikZ understands commands likedraw[blue] plot[variable=x,domain=0:1] (2*x+0.4*cos(x*200),-0.7*sin(x*540));that draw something like your "randomized" plots.
– marmot
Nov 13 '18 at 18:44
TikZ understands commands like
draw[blue] plot[variable=x,domain=0:1] (2*x+0.4*cos(x*200),-0.7*sin(x*540)); that draw something like your "randomized" plots.– marmot
Nov 13 '18 at 18:44
TikZ understands commands like
draw[blue] plot[variable=x,domain=0:1] (2*x+0.4*cos(x*200),-0.7*sin(x*540)); that draw something like your "randomized" plots.– marmot
Nov 13 '18 at 18:44
add a comment |
1 Answer
1
active
oldest
votes
documentclass[tikz,border=3.14mm]standalone
usetikzlibraryshapes.arrows
begindocument
begintikzpicture
beginscope[local bounding box=left]
foreach X [count=Y] in green!60!black,yellow!80!orange,red
draw[X] plot[variable=x,domain=0:1,smooth] (2*x,0.7*sin(x*540)+0.4*x+2*(2-Y));
endscope
beginscope[xshift=5cm,local bounding box=right]
foreach X [count=Y] in green!60!black,yellow!80!orange,red
draw[X] plot[variable=x,domain=0:1,smooth]
(2.5*x+0.5*cos(x*200),-0.7*sin(x*540)+2*(2-Y));
endscope
path (left.east) -- (right.west)
node[midway,font=sffamily,single arrow, draw]randomize;
endtikzpicture
enddocument

Thanks. There are so much I don't know about tikz...
– qweruiop
Nov 13 '18 at 19:06
6
@qweruiop I guess you are in good company because I think that this statement applies to everyone but at most 5 people (Till Tantau and a few others).
– marmot
Nov 13 '18 at 19:07
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%2f459822%2fsquiggles-mocking-polynomials-in-tikz%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
documentclass[tikz,border=3.14mm]standalone
usetikzlibraryshapes.arrows
begindocument
begintikzpicture
beginscope[local bounding box=left]
foreach X [count=Y] in green!60!black,yellow!80!orange,red
draw[X] plot[variable=x,domain=0:1,smooth] (2*x,0.7*sin(x*540)+0.4*x+2*(2-Y));
endscope
beginscope[xshift=5cm,local bounding box=right]
foreach X [count=Y] in green!60!black,yellow!80!orange,red
draw[X] plot[variable=x,domain=0:1,smooth]
(2.5*x+0.5*cos(x*200),-0.7*sin(x*540)+2*(2-Y));
endscope
path (left.east) -- (right.west)
node[midway,font=sffamily,single arrow, draw]randomize;
endtikzpicture
enddocument

Thanks. There are so much I don't know about tikz...
– qweruiop
Nov 13 '18 at 19:06
6
@qweruiop I guess you are in good company because I think that this statement applies to everyone but at most 5 people (Till Tantau and a few others).
– marmot
Nov 13 '18 at 19:07
add a comment |
documentclass[tikz,border=3.14mm]standalone
usetikzlibraryshapes.arrows
begindocument
begintikzpicture
beginscope[local bounding box=left]
foreach X [count=Y] in green!60!black,yellow!80!orange,red
draw[X] plot[variable=x,domain=0:1,smooth] (2*x,0.7*sin(x*540)+0.4*x+2*(2-Y));
endscope
beginscope[xshift=5cm,local bounding box=right]
foreach X [count=Y] in green!60!black,yellow!80!orange,red
draw[X] plot[variable=x,domain=0:1,smooth]
(2.5*x+0.5*cos(x*200),-0.7*sin(x*540)+2*(2-Y));
endscope
path (left.east) -- (right.west)
node[midway,font=sffamily,single arrow, draw]randomize;
endtikzpicture
enddocument

Thanks. There are so much I don't know about tikz...
– qweruiop
Nov 13 '18 at 19:06
6
@qweruiop I guess you are in good company because I think that this statement applies to everyone but at most 5 people (Till Tantau and a few others).
– marmot
Nov 13 '18 at 19:07
add a comment |
documentclass[tikz,border=3.14mm]standalone
usetikzlibraryshapes.arrows
begindocument
begintikzpicture
beginscope[local bounding box=left]
foreach X [count=Y] in green!60!black,yellow!80!orange,red
draw[X] plot[variable=x,domain=0:1,smooth] (2*x,0.7*sin(x*540)+0.4*x+2*(2-Y));
endscope
beginscope[xshift=5cm,local bounding box=right]
foreach X [count=Y] in green!60!black,yellow!80!orange,red
draw[X] plot[variable=x,domain=0:1,smooth]
(2.5*x+0.5*cos(x*200),-0.7*sin(x*540)+2*(2-Y));
endscope
path (left.east) -- (right.west)
node[midway,font=sffamily,single arrow, draw]randomize;
endtikzpicture
enddocument

documentclass[tikz,border=3.14mm]standalone
usetikzlibraryshapes.arrows
begindocument
begintikzpicture
beginscope[local bounding box=left]
foreach X [count=Y] in green!60!black,yellow!80!orange,red
draw[X] plot[variable=x,domain=0:1,smooth] (2*x,0.7*sin(x*540)+0.4*x+2*(2-Y));
endscope
beginscope[xshift=5cm,local bounding box=right]
foreach X [count=Y] in green!60!black,yellow!80!orange,red
draw[X] plot[variable=x,domain=0:1,smooth]
(2.5*x+0.5*cos(x*200),-0.7*sin(x*540)+2*(2-Y));
endscope
path (left.east) -- (right.west)
node[midway,font=sffamily,single arrow, draw]randomize;
endtikzpicture
enddocument

edited Nov 13 '18 at 21:09
answered Nov 13 '18 at 18:53
marmotmarmot
102k4121231
102k4121231
Thanks. There are so much I don't know about tikz...
– qweruiop
Nov 13 '18 at 19:06
6
@qweruiop I guess you are in good company because I think that this statement applies to everyone but at most 5 people (Till Tantau and a few others).
– marmot
Nov 13 '18 at 19:07
add a comment |
Thanks. There are so much I don't know about tikz...
– qweruiop
Nov 13 '18 at 19:06
6
@qweruiop I guess you are in good company because I think that this statement applies to everyone but at most 5 people (Till Tantau and a few others).
– marmot
Nov 13 '18 at 19:07
Thanks. There are so much I don't know about tikz...
– qweruiop
Nov 13 '18 at 19:06
Thanks. There are so much I don't know about tikz...
– qweruiop
Nov 13 '18 at 19:06
6
6
@qweruiop I guess you are in good company because I think that this statement applies to everyone but at most 5 people (Till Tantau and a few others).
– marmot
Nov 13 '18 at 19:07
@qweruiop I guess you are in good company because I think that this statement applies to everyone but at most 5 people (Till Tantau and a few others).
– marmot
Nov 13 '18 at 19:07
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%2f459822%2fsquiggles-mocking-polynomials-in-tikz%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
TikZ understands commands like
draw[blue] plot[variable=x,domain=0:1] (2*x+0.4*cos(x*200),-0.7*sin(x*540));that draw something like your "randomized" plots.– marmot
Nov 13 '18 at 18:44