Heat equation: Squiggly linesRotate a node but not its content: the case of the ellipse decorationPushing text below an absolutely positioned boxTikZ/ERD: node (=Entity) label on the insideHow to find location of position of nodes in TikZ graph automatically to use?TikZ: Drawing an arc from an intersection to an intersectionDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of themPgfplots 3d Arc ArrowHow to draw a 3d horseshoe in TikZMaking arrow with a gradual colour

How do proponents of Sola Scriptura address the ministry of those Apostles who authored no parts of Scripture?

What verb is かまされる?

Prevent use of CNAME Record for Untrusted Domain

What is the best type of paint to paint a shipping container?

Do they have Supervillain(s)?

Handling Disruptive Student on the Autistic Spectrum

Lost property on Portuguese trains

Where was Carl Sagan working on a plan to detonate a nuke on the Moon? Where was he applying when he leaked it?

Can RMSE and MAE have the same value?

Why doesn't 'd /= d' throw a division by zero exception?

Non-visual Computers - thoughts?

“T” in subscript in formulas

Does Norwegian overbook flights?

Are the players on the same team as the DM?

Two questions about typesetting a Roman missal

Tex Quotes(UVa 272)

Architectural feasibility of a tiered circular stone keep

I don't have the theoretical background in my PhD topic. I can't justify getting the degree

Is for(( ... )) ... ; a valid shell syntax? In which shells?

Why in most German places is the church the tallest building?

Is there any way white can win?

Does an atom recoil when photon radiate?

Read file lines into shell line separated by space

Why is 1. d4 Nf6 2. c4 e6 3. Bg5 almost never played?



Heat equation: Squiggly lines


Rotate a node but not its content: the case of the ellipse decorationPushing text below an absolutely positioned boxTikZ/ERD: node (=Entity) label on the insideHow to find location of position of nodes in TikZ graph automatically to use?TikZ: Drawing an arc from an intersection to an intersectionDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of themPgfplots 3d Arc ArrowHow to draw a 3d horseshoe in TikZMaking arrow with a gradual colour






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








10















I am working on recreating an image of an heat equation as shown below



enter image description here



I have mostly been successful, however I am still not sure how to add the squiggly lines. Is there also an easier way to make sure the labels 1,0,and 1, are properly aligned? In the figure they have the same baseline, but in my graph they vary.



Any other improvements or ways to create the displayed image are appreciated as always



enter image description here



Code



documentclass[tikz]standalone
usetikzlibrarypositioning

definecolorUiT-mainHTML003349
definecolorUiT-blueHTML007396
definecolorUiT-redHTMLCB333B

begindocument
begintikzpicture
defxmax2defymax2
% Shade the box
shade[top color=white,bottom color=UiT-blue] (0,0) rectangle (xmax,ymax);
% Draw the border of the box and add labels
draw [color=UiT-blue]
(0,0) -- (xmax,0) node [pos=0.5,label=below:colorUiT-red$u=g$]
(xmax,0) -- (xmax,ymax) node [pos=0.5,label=right:colorUiT-red$u=0$]
(xmax,ymax) -- (0,ymax) node [pos=0.5,label=above:colorUiT-red$u=0$]
(0,ymax) -- (0,0) node [pos=0.5,label= left:colorUiT-red$u=0$];
% Add the S in the centre
path (0,ymax) -- (xmax,0) node [pos=0.5]$S$;
% Draw the axis
draw[thick,-stealth] (-1,0) -- (.5+xmax,0) node[anchor= west] $x$;
draw[thick,-stealth] (0,-0.5) -- (0,.5+ymax) node[anchor=south east] $y$;
% Label the axis
node[below left] (0,0) $0$;
node[label=left:$1$] (s2) at (0,ymax) ;
node[label=below:$1$] (s4) at (xmax,0) ;
endtikzpicture
enddocument









share|improve this question



















  • 2





    You can create squiggly lines with something like draw (0,0) to[out=90, in=-90] (1,1);.

    – Skillmon
    Aug 12 at 12:38











  • You may use pin and redefine pin on way as is described in 17.10.3 The Pin Option in TikZ & PGFmanula, pp 249 (v 3.1.4b)

    – Zarko
    Aug 12 at 12:48











  • How is the first figure an "image of an heat equation"?

    – rafa11111
    Aug 12 at 23:55











  • @rafa11111 It is a very simple model where the temperature is g(x) at the x-axis then it decreases linearly with y until it reaches zero at y = 1. The plate is also insulated so the borders have a temperature of 0. That is the u = 0 ... parts =)

    – N3buchadnezzar
    Aug 13 at 8:36











  • Of course, but I cannot see how it is relevant to the question, since it is about the squiggly lines.

    – rafa11111
    Aug 13 at 11:52

















10















I am working on recreating an image of an heat equation as shown below



enter image description here



I have mostly been successful, however I am still not sure how to add the squiggly lines. Is there also an easier way to make sure the labels 1,0,and 1, are properly aligned? In the figure they have the same baseline, but in my graph they vary.



Any other improvements or ways to create the displayed image are appreciated as always



enter image description here



Code



documentclass[tikz]standalone
usetikzlibrarypositioning

definecolorUiT-mainHTML003349
definecolorUiT-blueHTML007396
definecolorUiT-redHTMLCB333B

begindocument
begintikzpicture
defxmax2defymax2
% Shade the box
shade[top color=white,bottom color=UiT-blue] (0,0) rectangle (xmax,ymax);
% Draw the border of the box and add labels
draw [color=UiT-blue]
(0,0) -- (xmax,0) node [pos=0.5,label=below:colorUiT-red$u=g$]
(xmax,0) -- (xmax,ymax) node [pos=0.5,label=right:colorUiT-red$u=0$]
(xmax,ymax) -- (0,ymax) node [pos=0.5,label=above:colorUiT-red$u=0$]
(0,ymax) -- (0,0) node [pos=0.5,label= left:colorUiT-red$u=0$];
% Add the S in the centre
path (0,ymax) -- (xmax,0) node [pos=0.5]$S$;
% Draw the axis
draw[thick,-stealth] (-1,0) -- (.5+xmax,0) node[anchor= west] $x$;
draw[thick,-stealth] (0,-0.5) -- (0,.5+ymax) node[anchor=south east] $y$;
% Label the axis
node[below left] (0,0) $0$;
node[label=left:$1$] (s2) at (0,ymax) ;
node[label=below:$1$] (s4) at (xmax,0) ;
endtikzpicture
enddocument









share|improve this question



















  • 2





    You can create squiggly lines with something like draw (0,0) to[out=90, in=-90] (1,1);.

    – Skillmon
    Aug 12 at 12:38











  • You may use pin and redefine pin on way as is described in 17.10.3 The Pin Option in TikZ & PGFmanula, pp 249 (v 3.1.4b)

    – Zarko
    Aug 12 at 12:48











  • How is the first figure an "image of an heat equation"?

    – rafa11111
    Aug 12 at 23:55











  • @rafa11111 It is a very simple model where the temperature is g(x) at the x-axis then it decreases linearly with y until it reaches zero at y = 1. The plate is also insulated so the borders have a temperature of 0. That is the u = 0 ... parts =)

    – N3buchadnezzar
    Aug 13 at 8:36











  • Of course, but I cannot see how it is relevant to the question, since it is about the squiggly lines.

    – rafa11111
    Aug 13 at 11:52













10












10








10


3






I am working on recreating an image of an heat equation as shown below



enter image description here



I have mostly been successful, however I am still not sure how to add the squiggly lines. Is there also an easier way to make sure the labels 1,0,and 1, are properly aligned? In the figure they have the same baseline, but in my graph they vary.



Any other improvements or ways to create the displayed image are appreciated as always



enter image description here



Code



documentclass[tikz]standalone
usetikzlibrarypositioning

definecolorUiT-mainHTML003349
definecolorUiT-blueHTML007396
definecolorUiT-redHTMLCB333B

begindocument
begintikzpicture
defxmax2defymax2
% Shade the box
shade[top color=white,bottom color=UiT-blue] (0,0) rectangle (xmax,ymax);
% Draw the border of the box and add labels
draw [color=UiT-blue]
(0,0) -- (xmax,0) node [pos=0.5,label=below:colorUiT-red$u=g$]
(xmax,0) -- (xmax,ymax) node [pos=0.5,label=right:colorUiT-red$u=0$]
(xmax,ymax) -- (0,ymax) node [pos=0.5,label=above:colorUiT-red$u=0$]
(0,ymax) -- (0,0) node [pos=0.5,label= left:colorUiT-red$u=0$];
% Add the S in the centre
path (0,ymax) -- (xmax,0) node [pos=0.5]$S$;
% Draw the axis
draw[thick,-stealth] (-1,0) -- (.5+xmax,0) node[anchor= west] $x$;
draw[thick,-stealth] (0,-0.5) -- (0,.5+ymax) node[anchor=south east] $y$;
% Label the axis
node[below left] (0,0) $0$;
node[label=left:$1$] (s2) at (0,ymax) ;
node[label=below:$1$] (s4) at (xmax,0) ;
endtikzpicture
enddocument









share|improve this question














I am working on recreating an image of an heat equation as shown below



enter image description here



I have mostly been successful, however I am still not sure how to add the squiggly lines. Is there also an easier way to make sure the labels 1,0,and 1, are properly aligned? In the figure they have the same baseline, but in my graph they vary.



Any other improvements or ways to create the displayed image are appreciated as always



enter image description here



Code



documentclass[tikz]standalone
usetikzlibrarypositioning

definecolorUiT-mainHTML003349
definecolorUiT-blueHTML007396
definecolorUiT-redHTMLCB333B

begindocument
begintikzpicture
defxmax2defymax2
% Shade the box
shade[top color=white,bottom color=UiT-blue] (0,0) rectangle (xmax,ymax);
% Draw the border of the box and add labels
draw [color=UiT-blue]
(0,0) -- (xmax,0) node [pos=0.5,label=below:colorUiT-red$u=g$]
(xmax,0) -- (xmax,ymax) node [pos=0.5,label=right:colorUiT-red$u=0$]
(xmax,ymax) -- (0,ymax) node [pos=0.5,label=above:colorUiT-red$u=0$]
(0,ymax) -- (0,0) node [pos=0.5,label= left:colorUiT-red$u=0$];
% Add the S in the centre
path (0,ymax) -- (xmax,0) node [pos=0.5]$S$;
% Draw the axis
draw[thick,-stealth] (-1,0) -- (.5+xmax,0) node[anchor= west] $x$;
draw[thick,-stealth] (0,-0.5) -- (0,.5+ymax) node[anchor=south east] $y$;
% Label the axis
node[below left] (0,0) $0$;
node[label=left:$1$] (s2) at (0,ymax) ;
node[label=below:$1$] (s4) at (xmax,0) ;
endtikzpicture
enddocument






tikz-pgf tikz-arrows






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Aug 12 at 12:18









N3buchadnezzarN3buchadnezzar

4,8005 gold badges42 silver badges99 bronze badges




4,8005 gold badges42 silver badges99 bronze badges










  • 2





    You can create squiggly lines with something like draw (0,0) to[out=90, in=-90] (1,1);.

    – Skillmon
    Aug 12 at 12:38











  • You may use pin and redefine pin on way as is described in 17.10.3 The Pin Option in TikZ & PGFmanula, pp 249 (v 3.1.4b)

    – Zarko
    Aug 12 at 12:48











  • How is the first figure an "image of an heat equation"?

    – rafa11111
    Aug 12 at 23:55











  • @rafa11111 It is a very simple model where the temperature is g(x) at the x-axis then it decreases linearly with y until it reaches zero at y = 1. The plate is also insulated so the borders have a temperature of 0. That is the u = 0 ... parts =)

    – N3buchadnezzar
    Aug 13 at 8:36











  • Of course, but I cannot see how it is relevant to the question, since it is about the squiggly lines.

    – rafa11111
    Aug 13 at 11:52












  • 2





    You can create squiggly lines with something like draw (0,0) to[out=90, in=-90] (1,1);.

    – Skillmon
    Aug 12 at 12:38











  • You may use pin and redefine pin on way as is described in 17.10.3 The Pin Option in TikZ & PGFmanula, pp 249 (v 3.1.4b)

    – Zarko
    Aug 12 at 12:48











  • How is the first figure an "image of an heat equation"?

    – rafa11111
    Aug 12 at 23:55











  • @rafa11111 It is a very simple model where the temperature is g(x) at the x-axis then it decreases linearly with y until it reaches zero at y = 1. The plate is also insulated so the borders have a temperature of 0. That is the u = 0 ... parts =)

    – N3buchadnezzar
    Aug 13 at 8:36











  • Of course, but I cannot see how it is relevant to the question, since it is about the squiggly lines.

    – rafa11111
    Aug 13 at 11:52







2




2





You can create squiggly lines with something like draw (0,0) to[out=90, in=-90] (1,1);.

– Skillmon
Aug 12 at 12:38





You can create squiggly lines with something like draw (0,0) to[out=90, in=-90] (1,1);.

– Skillmon
Aug 12 at 12:38













You may use pin and redefine pin on way as is described in 17.10.3 The Pin Option in TikZ & PGFmanula, pp 249 (v 3.1.4b)

– Zarko
Aug 12 at 12:48





You may use pin and redefine pin on way as is described in 17.10.3 The Pin Option in TikZ & PGFmanula, pp 249 (v 3.1.4b)

– Zarko
Aug 12 at 12:48













How is the first figure an "image of an heat equation"?

– rafa11111
Aug 12 at 23:55





How is the first figure an "image of an heat equation"?

– rafa11111
Aug 12 at 23:55













@rafa11111 It is a very simple model where the temperature is g(x) at the x-axis then it decreases linearly with y until it reaches zero at y = 1. The plate is also insulated so the borders have a temperature of 0. That is the u = 0 ... parts =)

– N3buchadnezzar
Aug 13 at 8:36





@rafa11111 It is a very simple model where the temperature is g(x) at the x-axis then it decreases linearly with y until it reaches zero at y = 1. The plate is also insulated so the borders have a temperature of 0. That is the u = 0 ... parts =)

– N3buchadnezzar
Aug 13 at 8:36













Of course, but I cannot see how it is relevant to the question, since it is about the squiggly lines.

– rafa11111
Aug 13 at 11:52





Of course, but I cannot see how it is relevant to the question, since it is about the squiggly lines.

– rafa11111
Aug 13 at 11:52










2 Answers
2






active

oldest

votes


















10















Very similar to Skillmons answer (in that this uses in and out).



documentclass[tikz]standalone
usetikzlibrarypositioning,arrows.meta,bending

definecolorUiT-mainHTML003349
definecolorUiT-blueHTML007396
definecolorUiT-redHTMLCB333B

begindocument
begintikzpicture
defxmax2defymax2
% Shade the box
shade[top color=white,bottom color=UiT-blue] (0,0) rectangle (xmax,ymax);
% Draw the border of the box and add labels
draw [color=UiT-blue]
(0,0) -- (xmax,0) coordinate[pos=0.6] (p1) node[pos=0.5,UiT-red,below=1em](u1)$u=g$
(xmax,0) -- (xmax,ymax) coordinate[pos=0.6] (p2) node[pos=0.5,UiT-red,right=1em](u2)$u=0$
(xmax,ymax) -- (0,ymax) coordinate[pos=0.6] (p3) node[pos=0.5,UiT-red,above=1em](u3)$u=0$
(0,ymax) -- (0,0) coordinate[pos=0.6] (p4) node[pos=0.5,UiT-red,left=1em](u4)$u=0$;
foreach X in 1,...,4
draw[-Stealth[bend],UiT-red] (uX) to[out=X*90,in=X*90-180] (pX);
% Add the S in the centre
path (0,ymax) -- (xmax,0) node [pos=0.5]$S$;
% Draw the axis
draw[thick,-stealth] (-1,0) -- (.5+xmax,0) node[anchor= west] $x$;
draw[thick,-stealth] (0,-0.5) -- (0,.5+ymax) node[anchor=south east] $y$;
% Label the axis
path (0,0) node[below left] $0$
(0,ymax) node[left] $1$ (xmax,0) node[below] $1$;
endtikzpicture
enddocument


enter image description here






share|improve this answer



























  • Fantastic answer as always Mormont! Any idea how to align the 0 with the two 1s in the picture? =)

    – N3buchadnezzar
    Aug 12 at 13:14






  • 1





    @N3buchadnezzar I added something in which they are aligned. The issue is that you were using label in situations in which IMHO just nodes are the cleaner option.

    – user121799
    Aug 12 at 13:19











  • I agree that nodes are cleaner, why did I not think of that. Sorry for still being a novice when it comes to tikz. Thanks again for a wonderful answer

    – N3buchadnezzar
    Aug 12 at 13:22


















7















Packing the lines into it with to and the out and in keys (quick and dirty).



documentclass[tikz]standalone
usetikzlibrarypositioning

definecolorUiT-mainHTML003349
definecolorUiT-blueHTML007396
definecolorUiT-redHTMLCB333B

begindocument
begintikzpicture
defxmax2defymax2
% Shade the box
shade[top color=white,bottom color=UiT-blue] (0,0) rectangle (xmax,ymax);
% Draw the border of the box and add labels
draw [color=UiT-blue]
(0,0) -- (xmax,0) node
[pos=0.5,label=below:colorUiT-red$u=g$](b)
(xmax,0) -- (xmax,ymax) node
[pos=0.5,label=right:colorUiT-red$u=1$](r)
(xmax,ymax) -- (0,ymax) node
[pos=0.5,label=above:colorUiT-red$u=2$](t)
(0,ymax) -- (0,0) node [pos=0.5,label=
left:colorUiT-red$u=3$](l);
% Add the S in the centre
path (0,ymax) -- (xmax,0) node [pos=0.5]$S$;
% Draw the axis
draw[thick,-stealth] (-1,0) -- (.5+xmax,0) node[anchor= west] $x$;
draw[thick,-stealth] (0,-0.5) -- (0,.5+ymax) node[anchor=south east] $y$;
% Label the axis
node[below left] (0,0) $0$;
node[label=left:$1$] (s2) at (0,ymax) ;
node[label=below:$1$] (s4) at (xmax,0) ;
%
draw[<-,UiT-red] (b.center)++(.1,-0.01) to[out=-90,in=90] ++(-0.2,-0.25);
draw[<-,UiT-red] (r.center)++(.01,+0.1) to[out=0,in=180] ++(0.25,-0.2);
draw[<-,UiT-red] (t.center)++(.1,0.01) to[out=90,in=-90] ++(-0.2,0.25);
draw[<-,UiT-red] (l.center)++(-.01,+0.1) to[out=180,in=0] ++(-0.25,-0.2);
endtikzpicture
enddocument


enter image description here






share|improve this answer



























    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%2f503898%2fheat-equation-squiggly-lines%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









    10















    Very similar to Skillmons answer (in that this uses in and out).



    documentclass[tikz]standalone
    usetikzlibrarypositioning,arrows.meta,bending

    definecolorUiT-mainHTML003349
    definecolorUiT-blueHTML007396
    definecolorUiT-redHTMLCB333B

    begindocument
    begintikzpicture
    defxmax2defymax2
    % Shade the box
    shade[top color=white,bottom color=UiT-blue] (0,0) rectangle (xmax,ymax);
    % Draw the border of the box and add labels
    draw [color=UiT-blue]
    (0,0) -- (xmax,0) coordinate[pos=0.6] (p1) node[pos=0.5,UiT-red,below=1em](u1)$u=g$
    (xmax,0) -- (xmax,ymax) coordinate[pos=0.6] (p2) node[pos=0.5,UiT-red,right=1em](u2)$u=0$
    (xmax,ymax) -- (0,ymax) coordinate[pos=0.6] (p3) node[pos=0.5,UiT-red,above=1em](u3)$u=0$
    (0,ymax) -- (0,0) coordinate[pos=0.6] (p4) node[pos=0.5,UiT-red,left=1em](u4)$u=0$;
    foreach X in 1,...,4
    draw[-Stealth[bend],UiT-red] (uX) to[out=X*90,in=X*90-180] (pX);
    % Add the S in the centre
    path (0,ymax) -- (xmax,0) node [pos=0.5]$S$;
    % Draw the axis
    draw[thick,-stealth] (-1,0) -- (.5+xmax,0) node[anchor= west] $x$;
    draw[thick,-stealth] (0,-0.5) -- (0,.5+ymax) node[anchor=south east] $y$;
    % Label the axis
    path (0,0) node[below left] $0$
    (0,ymax) node[left] $1$ (xmax,0) node[below] $1$;
    endtikzpicture
    enddocument


    enter image description here






    share|improve this answer



























    • Fantastic answer as always Mormont! Any idea how to align the 0 with the two 1s in the picture? =)

      – N3buchadnezzar
      Aug 12 at 13:14






    • 1





      @N3buchadnezzar I added something in which they are aligned. The issue is that you were using label in situations in which IMHO just nodes are the cleaner option.

      – user121799
      Aug 12 at 13:19











    • I agree that nodes are cleaner, why did I not think of that. Sorry for still being a novice when it comes to tikz. Thanks again for a wonderful answer

      – N3buchadnezzar
      Aug 12 at 13:22















    10















    Very similar to Skillmons answer (in that this uses in and out).



    documentclass[tikz]standalone
    usetikzlibrarypositioning,arrows.meta,bending

    definecolorUiT-mainHTML003349
    definecolorUiT-blueHTML007396
    definecolorUiT-redHTMLCB333B

    begindocument
    begintikzpicture
    defxmax2defymax2
    % Shade the box
    shade[top color=white,bottom color=UiT-blue] (0,0) rectangle (xmax,ymax);
    % Draw the border of the box and add labels
    draw [color=UiT-blue]
    (0,0) -- (xmax,0) coordinate[pos=0.6] (p1) node[pos=0.5,UiT-red,below=1em](u1)$u=g$
    (xmax,0) -- (xmax,ymax) coordinate[pos=0.6] (p2) node[pos=0.5,UiT-red,right=1em](u2)$u=0$
    (xmax,ymax) -- (0,ymax) coordinate[pos=0.6] (p3) node[pos=0.5,UiT-red,above=1em](u3)$u=0$
    (0,ymax) -- (0,0) coordinate[pos=0.6] (p4) node[pos=0.5,UiT-red,left=1em](u4)$u=0$;
    foreach X in 1,...,4
    draw[-Stealth[bend],UiT-red] (uX) to[out=X*90,in=X*90-180] (pX);
    % Add the S in the centre
    path (0,ymax) -- (xmax,0) node [pos=0.5]$S$;
    % Draw the axis
    draw[thick,-stealth] (-1,0) -- (.5+xmax,0) node[anchor= west] $x$;
    draw[thick,-stealth] (0,-0.5) -- (0,.5+ymax) node[anchor=south east] $y$;
    % Label the axis
    path (0,0) node[below left] $0$
    (0,ymax) node[left] $1$ (xmax,0) node[below] $1$;
    endtikzpicture
    enddocument


    enter image description here






    share|improve this answer



























    • Fantastic answer as always Mormont! Any idea how to align the 0 with the two 1s in the picture? =)

      – N3buchadnezzar
      Aug 12 at 13:14






    • 1





      @N3buchadnezzar I added something in which they are aligned. The issue is that you were using label in situations in which IMHO just nodes are the cleaner option.

      – user121799
      Aug 12 at 13:19











    • I agree that nodes are cleaner, why did I not think of that. Sorry for still being a novice when it comes to tikz. Thanks again for a wonderful answer

      – N3buchadnezzar
      Aug 12 at 13:22













    10














    10










    10









    Very similar to Skillmons answer (in that this uses in and out).



    documentclass[tikz]standalone
    usetikzlibrarypositioning,arrows.meta,bending

    definecolorUiT-mainHTML003349
    definecolorUiT-blueHTML007396
    definecolorUiT-redHTMLCB333B

    begindocument
    begintikzpicture
    defxmax2defymax2
    % Shade the box
    shade[top color=white,bottom color=UiT-blue] (0,0) rectangle (xmax,ymax);
    % Draw the border of the box and add labels
    draw [color=UiT-blue]
    (0,0) -- (xmax,0) coordinate[pos=0.6] (p1) node[pos=0.5,UiT-red,below=1em](u1)$u=g$
    (xmax,0) -- (xmax,ymax) coordinate[pos=0.6] (p2) node[pos=0.5,UiT-red,right=1em](u2)$u=0$
    (xmax,ymax) -- (0,ymax) coordinate[pos=0.6] (p3) node[pos=0.5,UiT-red,above=1em](u3)$u=0$
    (0,ymax) -- (0,0) coordinate[pos=0.6] (p4) node[pos=0.5,UiT-red,left=1em](u4)$u=0$;
    foreach X in 1,...,4
    draw[-Stealth[bend],UiT-red] (uX) to[out=X*90,in=X*90-180] (pX);
    % Add the S in the centre
    path (0,ymax) -- (xmax,0) node [pos=0.5]$S$;
    % Draw the axis
    draw[thick,-stealth] (-1,0) -- (.5+xmax,0) node[anchor= west] $x$;
    draw[thick,-stealth] (0,-0.5) -- (0,.5+ymax) node[anchor=south east] $y$;
    % Label the axis
    path (0,0) node[below left] $0$
    (0,ymax) node[left] $1$ (xmax,0) node[below] $1$;
    endtikzpicture
    enddocument


    enter image description here






    share|improve this answer















    Very similar to Skillmons answer (in that this uses in and out).



    documentclass[tikz]standalone
    usetikzlibrarypositioning,arrows.meta,bending

    definecolorUiT-mainHTML003349
    definecolorUiT-blueHTML007396
    definecolorUiT-redHTMLCB333B

    begindocument
    begintikzpicture
    defxmax2defymax2
    % Shade the box
    shade[top color=white,bottom color=UiT-blue] (0,0) rectangle (xmax,ymax);
    % Draw the border of the box and add labels
    draw [color=UiT-blue]
    (0,0) -- (xmax,0) coordinate[pos=0.6] (p1) node[pos=0.5,UiT-red,below=1em](u1)$u=g$
    (xmax,0) -- (xmax,ymax) coordinate[pos=0.6] (p2) node[pos=0.5,UiT-red,right=1em](u2)$u=0$
    (xmax,ymax) -- (0,ymax) coordinate[pos=0.6] (p3) node[pos=0.5,UiT-red,above=1em](u3)$u=0$
    (0,ymax) -- (0,0) coordinate[pos=0.6] (p4) node[pos=0.5,UiT-red,left=1em](u4)$u=0$;
    foreach X in 1,...,4
    draw[-Stealth[bend],UiT-red] (uX) to[out=X*90,in=X*90-180] (pX);
    % Add the S in the centre
    path (0,ymax) -- (xmax,0) node [pos=0.5]$S$;
    % Draw the axis
    draw[thick,-stealth] (-1,0) -- (.5+xmax,0) node[anchor= west] $x$;
    draw[thick,-stealth] (0,-0.5) -- (0,.5+ymax) node[anchor=south east] $y$;
    % Label the axis
    path (0,0) node[below left] $0$
    (0,ymax) node[left] $1$ (xmax,0) node[below] $1$;
    endtikzpicture
    enddocument


    enter image description here







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Aug 12 at 13:17

























    answered Aug 12 at 12:56







    user121799






















    • Fantastic answer as always Mormont! Any idea how to align the 0 with the two 1s in the picture? =)

      – N3buchadnezzar
      Aug 12 at 13:14






    • 1





      @N3buchadnezzar I added something in which they are aligned. The issue is that you were using label in situations in which IMHO just nodes are the cleaner option.

      – user121799
      Aug 12 at 13:19











    • I agree that nodes are cleaner, why did I not think of that. Sorry for still being a novice when it comes to tikz. Thanks again for a wonderful answer

      – N3buchadnezzar
      Aug 12 at 13:22

















    • Fantastic answer as always Mormont! Any idea how to align the 0 with the two 1s in the picture? =)

      – N3buchadnezzar
      Aug 12 at 13:14






    • 1





      @N3buchadnezzar I added something in which they are aligned. The issue is that you were using label in situations in which IMHO just nodes are the cleaner option.

      – user121799
      Aug 12 at 13:19











    • I agree that nodes are cleaner, why did I not think of that. Sorry for still being a novice when it comes to tikz. Thanks again for a wonderful answer

      – N3buchadnezzar
      Aug 12 at 13:22
















    Fantastic answer as always Mormont! Any idea how to align the 0 with the two 1s in the picture? =)

    – N3buchadnezzar
    Aug 12 at 13:14





    Fantastic answer as always Mormont! Any idea how to align the 0 with the two 1s in the picture? =)

    – N3buchadnezzar
    Aug 12 at 13:14




    1




    1





    @N3buchadnezzar I added something in which they are aligned. The issue is that you were using label in situations in which IMHO just nodes are the cleaner option.

    – user121799
    Aug 12 at 13:19





    @N3buchadnezzar I added something in which they are aligned. The issue is that you were using label in situations in which IMHO just nodes are the cleaner option.

    – user121799
    Aug 12 at 13:19













    I agree that nodes are cleaner, why did I not think of that. Sorry for still being a novice when it comes to tikz. Thanks again for a wonderful answer

    – N3buchadnezzar
    Aug 12 at 13:22





    I agree that nodes are cleaner, why did I not think of that. Sorry for still being a novice when it comes to tikz. Thanks again for a wonderful answer

    – N3buchadnezzar
    Aug 12 at 13:22













    7















    Packing the lines into it with to and the out and in keys (quick and dirty).



    documentclass[tikz]standalone
    usetikzlibrarypositioning

    definecolorUiT-mainHTML003349
    definecolorUiT-blueHTML007396
    definecolorUiT-redHTMLCB333B

    begindocument
    begintikzpicture
    defxmax2defymax2
    % Shade the box
    shade[top color=white,bottom color=UiT-blue] (0,0) rectangle (xmax,ymax);
    % Draw the border of the box and add labels
    draw [color=UiT-blue]
    (0,0) -- (xmax,0) node
    [pos=0.5,label=below:colorUiT-red$u=g$](b)
    (xmax,0) -- (xmax,ymax) node
    [pos=0.5,label=right:colorUiT-red$u=1$](r)
    (xmax,ymax) -- (0,ymax) node
    [pos=0.5,label=above:colorUiT-red$u=2$](t)
    (0,ymax) -- (0,0) node [pos=0.5,label=
    left:colorUiT-red$u=3$](l);
    % Add the S in the centre
    path (0,ymax) -- (xmax,0) node [pos=0.5]$S$;
    % Draw the axis
    draw[thick,-stealth] (-1,0) -- (.5+xmax,0) node[anchor= west] $x$;
    draw[thick,-stealth] (0,-0.5) -- (0,.5+ymax) node[anchor=south east] $y$;
    % Label the axis
    node[below left] (0,0) $0$;
    node[label=left:$1$] (s2) at (0,ymax) ;
    node[label=below:$1$] (s4) at (xmax,0) ;
    %
    draw[<-,UiT-red] (b.center)++(.1,-0.01) to[out=-90,in=90] ++(-0.2,-0.25);
    draw[<-,UiT-red] (r.center)++(.01,+0.1) to[out=0,in=180] ++(0.25,-0.2);
    draw[<-,UiT-red] (t.center)++(.1,0.01) to[out=90,in=-90] ++(-0.2,0.25);
    draw[<-,UiT-red] (l.center)++(-.01,+0.1) to[out=180,in=0] ++(-0.25,-0.2);
    endtikzpicture
    enddocument


    enter image description here






    share|improve this answer





























      7















      Packing the lines into it with to and the out and in keys (quick and dirty).



      documentclass[tikz]standalone
      usetikzlibrarypositioning

      definecolorUiT-mainHTML003349
      definecolorUiT-blueHTML007396
      definecolorUiT-redHTMLCB333B

      begindocument
      begintikzpicture
      defxmax2defymax2
      % Shade the box
      shade[top color=white,bottom color=UiT-blue] (0,0) rectangle (xmax,ymax);
      % Draw the border of the box and add labels
      draw [color=UiT-blue]
      (0,0) -- (xmax,0) node
      [pos=0.5,label=below:colorUiT-red$u=g$](b)
      (xmax,0) -- (xmax,ymax) node
      [pos=0.5,label=right:colorUiT-red$u=1$](r)
      (xmax,ymax) -- (0,ymax) node
      [pos=0.5,label=above:colorUiT-red$u=2$](t)
      (0,ymax) -- (0,0) node [pos=0.5,label=
      left:colorUiT-red$u=3$](l);
      % Add the S in the centre
      path (0,ymax) -- (xmax,0) node [pos=0.5]$S$;
      % Draw the axis
      draw[thick,-stealth] (-1,0) -- (.5+xmax,0) node[anchor= west] $x$;
      draw[thick,-stealth] (0,-0.5) -- (0,.5+ymax) node[anchor=south east] $y$;
      % Label the axis
      node[below left] (0,0) $0$;
      node[label=left:$1$] (s2) at (0,ymax) ;
      node[label=below:$1$] (s4) at (xmax,0) ;
      %
      draw[<-,UiT-red] (b.center)++(.1,-0.01) to[out=-90,in=90] ++(-0.2,-0.25);
      draw[<-,UiT-red] (r.center)++(.01,+0.1) to[out=0,in=180] ++(0.25,-0.2);
      draw[<-,UiT-red] (t.center)++(.1,0.01) to[out=90,in=-90] ++(-0.2,0.25);
      draw[<-,UiT-red] (l.center)++(-.01,+0.1) to[out=180,in=0] ++(-0.25,-0.2);
      endtikzpicture
      enddocument


      enter image description here






      share|improve this answer



























        7














        7










        7









        Packing the lines into it with to and the out and in keys (quick and dirty).



        documentclass[tikz]standalone
        usetikzlibrarypositioning

        definecolorUiT-mainHTML003349
        definecolorUiT-blueHTML007396
        definecolorUiT-redHTMLCB333B

        begindocument
        begintikzpicture
        defxmax2defymax2
        % Shade the box
        shade[top color=white,bottom color=UiT-blue] (0,0) rectangle (xmax,ymax);
        % Draw the border of the box and add labels
        draw [color=UiT-blue]
        (0,0) -- (xmax,0) node
        [pos=0.5,label=below:colorUiT-red$u=g$](b)
        (xmax,0) -- (xmax,ymax) node
        [pos=0.5,label=right:colorUiT-red$u=1$](r)
        (xmax,ymax) -- (0,ymax) node
        [pos=0.5,label=above:colorUiT-red$u=2$](t)
        (0,ymax) -- (0,0) node [pos=0.5,label=
        left:colorUiT-red$u=3$](l);
        % Add the S in the centre
        path (0,ymax) -- (xmax,0) node [pos=0.5]$S$;
        % Draw the axis
        draw[thick,-stealth] (-1,0) -- (.5+xmax,0) node[anchor= west] $x$;
        draw[thick,-stealth] (0,-0.5) -- (0,.5+ymax) node[anchor=south east] $y$;
        % Label the axis
        node[below left] (0,0) $0$;
        node[label=left:$1$] (s2) at (0,ymax) ;
        node[label=below:$1$] (s4) at (xmax,0) ;
        %
        draw[<-,UiT-red] (b.center)++(.1,-0.01) to[out=-90,in=90] ++(-0.2,-0.25);
        draw[<-,UiT-red] (r.center)++(.01,+0.1) to[out=0,in=180] ++(0.25,-0.2);
        draw[<-,UiT-red] (t.center)++(.1,0.01) to[out=90,in=-90] ++(-0.2,0.25);
        draw[<-,UiT-red] (l.center)++(-.01,+0.1) to[out=180,in=0] ++(-0.25,-0.2);
        endtikzpicture
        enddocument


        enter image description here






        share|improve this answer













        Packing the lines into it with to and the out and in keys (quick and dirty).



        documentclass[tikz]standalone
        usetikzlibrarypositioning

        definecolorUiT-mainHTML003349
        definecolorUiT-blueHTML007396
        definecolorUiT-redHTMLCB333B

        begindocument
        begintikzpicture
        defxmax2defymax2
        % Shade the box
        shade[top color=white,bottom color=UiT-blue] (0,0) rectangle (xmax,ymax);
        % Draw the border of the box and add labels
        draw [color=UiT-blue]
        (0,0) -- (xmax,0) node
        [pos=0.5,label=below:colorUiT-red$u=g$](b)
        (xmax,0) -- (xmax,ymax) node
        [pos=0.5,label=right:colorUiT-red$u=1$](r)
        (xmax,ymax) -- (0,ymax) node
        [pos=0.5,label=above:colorUiT-red$u=2$](t)
        (0,ymax) -- (0,0) node [pos=0.5,label=
        left:colorUiT-red$u=3$](l);
        % Add the S in the centre
        path (0,ymax) -- (xmax,0) node [pos=0.5]$S$;
        % Draw the axis
        draw[thick,-stealth] (-1,0) -- (.5+xmax,0) node[anchor= west] $x$;
        draw[thick,-stealth] (0,-0.5) -- (0,.5+ymax) node[anchor=south east] $y$;
        % Label the axis
        node[below left] (0,0) $0$;
        node[label=left:$1$] (s2) at (0,ymax) ;
        node[label=below:$1$] (s4) at (xmax,0) ;
        %
        draw[<-,UiT-red] (b.center)++(.1,-0.01) to[out=-90,in=90] ++(-0.2,-0.25);
        draw[<-,UiT-red] (r.center)++(.01,+0.1) to[out=0,in=180] ++(0.25,-0.2);
        draw[<-,UiT-red] (t.center)++(.1,0.01) to[out=90,in=-90] ++(-0.2,0.25);
        draw[<-,UiT-red] (l.center)++(-.01,+0.1) to[out=180,in=0] ++(-0.25,-0.2);
        endtikzpicture
        enddocument


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 12 at 12:48









        SkillmonSkillmon

        27.7k1 gold badge28 silver badges57 bronze badges




        27.7k1 gold badge28 silver badges57 bronze badges






























            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%2f503898%2fheat-equation-squiggly-lines%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

            Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

            Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

            Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?