pgfplots: How to draw a tangent graph below two others? The Next CEO of Stack Overflowplotting two time series with boundsGrouped bar chartHow do i get the x axis on top but keep a line on the bottomHow to prevent rounded and duplicated tick labels in pgfplots with fixed precision?How to hide empty (value 0) ybars with pgfplots?Show mark labels near marks and not centered in ybar interaval graphDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingpgfplots: percentage in matrix plotHow to draw a square and its diagonals with arrows?PGFPlots - Fill area between two curves

How can the PCs determine if an item is a phylactery?

Why did the Drakh emissary look so blurred in S04:E11 "Lines of Communication"?

Is it a bad idea to plug the other end of ESD strap to wall ground?

Percent Dissociated from Titration Curve

Do I need to write [sic] when including a quotation with a number less than 10 that isn't written out?

What did the word "leisure" mean in late 18th Century usage?

Avoiding the "not like other girls" trope?

How does a dynamic QR code work?

Can this transistor (2n2222) take 6V on emitter-base? Am I reading datasheet incorrectly?

How dangerous is XSS

subequations: How to continue numbering within subequation?

Fastest algorithm to decide whether a (always halting) TM accepts a general string

Planeswalker Ability and Death Timing

Finitely generated matrix groups whose eigenvalues are all algebraic

Could you use a laser beam as a modulated carrier wave for radio signal?

Is it possible to make a 9x9 table fit within the default margins?

Can a PhD from a non-TU9 German university become a professor in a TU9 university?

What day is it again?

Could a dragon use its wings to swim?

Raspberry pi 3 B with Ubuntu 18.04 server arm64: what pi version

Compensation for working overtime on Saturdays

Why was Sir Cadogan fired?

What steps are necessary to read a Modern SSD in Medieval Europe?

Can Sri Krishna be called 'a person'?



pgfplots: How to draw a tangent graph below two others?



The Next CEO of Stack Overflowplotting two time series with boundsGrouped bar chartHow do i get the x axis on top but keep a line on the bottomHow to prevent rounded and duplicated tick labels in pgfplots with fixed precision?How to hide empty (value 0) ybars with pgfplots?Show mark labels near marks and not centered in ybar interaval graphDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingpgfplots: percentage in matrix plotHow to draw a square and its diagonals with arrows?PGFPlots - Fill area between two curves










3















Assumed I want to draw three simple graphs based on the following illustration:



Screenshot of the desired state




How can I plot those three graphs? I've tried to create something like this:



Minimum Working Example (MWE):



documentclassstandalone
usepackagepgfplots

begindocument
begintikzpicture
beginaxis[domain=0:1]
addplot+[no marks, samples=100] exp(3*x);
addplot+[no marks, samples=100] (-exp(3*x)+20);
endaxis
endtikzpicture
enddocument



Screenshot of the current state:



Screenshot of the current state




Description of the issue:



However, I don't get the point on how to figure out the function of the third graph as well as how to clip the graphs in x and y direction to align them centered in the plot. It is not necessary to be completely precise, the accuracy of my upper template will be fine enough.



How to do that?










share|improve this question
























  • Well, and the formula of the third graph is? Please explain your issue better ...

    – Kurt
    51 mins ago







  • 1





    @close-voter: Please explain in a comment your reason for voting to close!

    – Kurt
    50 mins ago











  • I accept the Kurt's comment.

    – Sebastiano
    26 mins ago















3















Assumed I want to draw three simple graphs based on the following illustration:



Screenshot of the desired state




How can I plot those three graphs? I've tried to create something like this:



Minimum Working Example (MWE):



documentclassstandalone
usepackagepgfplots

begindocument
begintikzpicture
beginaxis[domain=0:1]
addplot+[no marks, samples=100] exp(3*x);
addplot+[no marks, samples=100] (-exp(3*x)+20);
endaxis
endtikzpicture
enddocument



Screenshot of the current state:



Screenshot of the current state




Description of the issue:



However, I don't get the point on how to figure out the function of the third graph as well as how to clip the graphs in x and y direction to align them centered in the plot. It is not necessary to be completely precise, the accuracy of my upper template will be fine enough.



How to do that?










share|improve this question
























  • Well, and the formula of the third graph is? Please explain your issue better ...

    – Kurt
    51 mins ago







  • 1





    @close-voter: Please explain in a comment your reason for voting to close!

    – Kurt
    50 mins ago











  • I accept the Kurt's comment.

    – Sebastiano
    26 mins ago













3












3








3








Assumed I want to draw three simple graphs based on the following illustration:



Screenshot of the desired state




How can I plot those three graphs? I've tried to create something like this:



Minimum Working Example (MWE):



documentclassstandalone
usepackagepgfplots

begindocument
begintikzpicture
beginaxis[domain=0:1]
addplot+[no marks, samples=100] exp(3*x);
addplot+[no marks, samples=100] (-exp(3*x)+20);
endaxis
endtikzpicture
enddocument



Screenshot of the current state:



Screenshot of the current state




Description of the issue:



However, I don't get the point on how to figure out the function of the third graph as well as how to clip the graphs in x and y direction to align them centered in the plot. It is not necessary to be completely precise, the accuracy of my upper template will be fine enough.



How to do that?










share|improve this question
















Assumed I want to draw three simple graphs based on the following illustration:



Screenshot of the desired state




How can I plot those three graphs? I've tried to create something like this:



Minimum Working Example (MWE):



documentclassstandalone
usepackagepgfplots

begindocument
begintikzpicture
beginaxis[domain=0:1]
addplot+[no marks, samples=100] exp(3*x);
addplot+[no marks, samples=100] (-exp(3*x)+20);
endaxis
endtikzpicture
enddocument



Screenshot of the current state:



Screenshot of the current state




Description of the issue:



However, I don't get the point on how to figure out the function of the third graph as well as how to clip the graphs in x and y direction to align them centered in the plot. It is not necessary to be completely precise, the accuracy of my upper template will be fine enough.



How to do that?







tikz-pgf pgfplots plot graphs polynomials






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 1 hour ago







Dave

















asked 1 hour ago









DaveDave

1,106619




1,106619












  • Well, and the formula of the third graph is? Please explain your issue better ...

    – Kurt
    51 mins ago







  • 1





    @close-voter: Please explain in a comment your reason for voting to close!

    – Kurt
    50 mins ago











  • I accept the Kurt's comment.

    – Sebastiano
    26 mins ago

















  • Well, and the formula of the third graph is? Please explain your issue better ...

    – Kurt
    51 mins ago







  • 1





    @close-voter: Please explain in a comment your reason for voting to close!

    – Kurt
    50 mins ago











  • I accept the Kurt's comment.

    – Sebastiano
    26 mins ago
















Well, and the formula of the third graph is? Please explain your issue better ...

– Kurt
51 mins ago






Well, and the formula of the third graph is? Please explain your issue better ...

– Kurt
51 mins ago





1




1





@close-voter: Please explain in a comment your reason for voting to close!

– Kurt
50 mins ago





@close-voter: Please explain in a comment your reason for voting to close!

– Kurt
50 mins ago













I accept the Kurt's comment.

– Sebastiano
26 mins ago





I accept the Kurt's comment.

– Sebastiano
26 mins ago










2 Answers
2






active

oldest

votes


















2














Are you looking for the minimum? (I shifted the plot a bit but you can of course undo the shift.)



documentclass[border=3.14mm,tikz]standalone
usepackagepgfplots
pgfplotssetcompat=1.16
begindocument
begintikzpicture
beginaxis[domain=0:1]
addplot+[no marks, samples=100] exp(3*x);
addplot+[no marks, samples=100] (-exp(3*x)+20);
addplot+[no marks, samples=6,smooth]
min(exp(3*x),(-exp(3*x)+20))-pi/2;
endaxis
endtikzpicture
enddocument


enter image description here






share|improve this answer






























    2














    You can use the function f1*f2/(f1+f2) to get something like what you describe. To make the code a bit clearer I defined the functions f1 and f2.



    documentclassstandalone
    usepackagepgfplots
    pgfplotsset%
    compat=1.12,
    /pgf/declare function=f1(x)=exp(3*x);,
    /pgf/declare function=f2(x)=-exp(3*x)+20;,

    begindocument
    begintikzpicture
    beginaxis[domain=0:1]
    addplot+[no marks, samples=100] f1(x);
    addplot+[no marks, samples=100] f2(x);
    addplot+[no marks, samples=100] f1(x)*f2(x)/(f1(x)+f2(x));
    endaxis
    endtikzpicture
    enddocument


    enter image description here



    If you want the function to follow more closely you can use sqrt(f1^2*f2^2/(f1^2+f2^2). Then replace the third plot with



    addplot+[no marks, samples=100] sqrt(f1(x)*f1(x)*f2(x)*f2(x)/(f1(x)*f1(x)+f2(x)*f2(x)));


    to get



    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%2f482639%2fpgfplots-how-to-draw-a-tangent-graph-below-two-others%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









      2














      Are you looking for the minimum? (I shifted the plot a bit but you can of course undo the shift.)



      documentclass[border=3.14mm,tikz]standalone
      usepackagepgfplots
      pgfplotssetcompat=1.16
      begindocument
      begintikzpicture
      beginaxis[domain=0:1]
      addplot+[no marks, samples=100] exp(3*x);
      addplot+[no marks, samples=100] (-exp(3*x)+20);
      addplot+[no marks, samples=6,smooth]
      min(exp(3*x),(-exp(3*x)+20))-pi/2;
      endaxis
      endtikzpicture
      enddocument


      enter image description here






      share|improve this answer



























        2














        Are you looking for the minimum? (I shifted the plot a bit but you can of course undo the shift.)



        documentclass[border=3.14mm,tikz]standalone
        usepackagepgfplots
        pgfplotssetcompat=1.16
        begindocument
        begintikzpicture
        beginaxis[domain=0:1]
        addplot+[no marks, samples=100] exp(3*x);
        addplot+[no marks, samples=100] (-exp(3*x)+20);
        addplot+[no marks, samples=6,smooth]
        min(exp(3*x),(-exp(3*x)+20))-pi/2;
        endaxis
        endtikzpicture
        enddocument


        enter image description here






        share|improve this answer

























          2












          2








          2







          Are you looking for the minimum? (I shifted the plot a bit but you can of course undo the shift.)



          documentclass[border=3.14mm,tikz]standalone
          usepackagepgfplots
          pgfplotssetcompat=1.16
          begindocument
          begintikzpicture
          beginaxis[domain=0:1]
          addplot+[no marks, samples=100] exp(3*x);
          addplot+[no marks, samples=100] (-exp(3*x)+20);
          addplot+[no marks, samples=6,smooth]
          min(exp(3*x),(-exp(3*x)+20))-pi/2;
          endaxis
          endtikzpicture
          enddocument


          enter image description here






          share|improve this answer













          Are you looking for the minimum? (I shifted the plot a bit but you can of course undo the shift.)



          documentclass[border=3.14mm,tikz]standalone
          usepackagepgfplots
          pgfplotssetcompat=1.16
          begindocument
          begintikzpicture
          beginaxis[domain=0:1]
          addplot+[no marks, samples=100] exp(3*x);
          addplot+[no marks, samples=100] (-exp(3*x)+20);
          addplot+[no marks, samples=6,smooth]
          min(exp(3*x),(-exp(3*x)+20))-pi/2;
          endaxis
          endtikzpicture
          enddocument


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 46 mins ago









          marmotmarmot

          113k5145275




          113k5145275





















              2














              You can use the function f1*f2/(f1+f2) to get something like what you describe. To make the code a bit clearer I defined the functions f1 and f2.



              documentclassstandalone
              usepackagepgfplots
              pgfplotsset%
              compat=1.12,
              /pgf/declare function=f1(x)=exp(3*x);,
              /pgf/declare function=f2(x)=-exp(3*x)+20;,

              begindocument
              begintikzpicture
              beginaxis[domain=0:1]
              addplot+[no marks, samples=100] f1(x);
              addplot+[no marks, samples=100] f2(x);
              addplot+[no marks, samples=100] f1(x)*f2(x)/(f1(x)+f2(x));
              endaxis
              endtikzpicture
              enddocument


              enter image description here



              If you want the function to follow more closely you can use sqrt(f1^2*f2^2/(f1^2+f2^2). Then replace the third plot with



              addplot+[no marks, samples=100] sqrt(f1(x)*f1(x)*f2(x)*f2(x)/(f1(x)*f1(x)+f2(x)*f2(x)));


              to get



              enter image description here






              share|improve this answer



























                2














                You can use the function f1*f2/(f1+f2) to get something like what you describe. To make the code a bit clearer I defined the functions f1 and f2.



                documentclassstandalone
                usepackagepgfplots
                pgfplotsset%
                compat=1.12,
                /pgf/declare function=f1(x)=exp(3*x);,
                /pgf/declare function=f2(x)=-exp(3*x)+20;,

                begindocument
                begintikzpicture
                beginaxis[domain=0:1]
                addplot+[no marks, samples=100] f1(x);
                addplot+[no marks, samples=100] f2(x);
                addplot+[no marks, samples=100] f1(x)*f2(x)/(f1(x)+f2(x));
                endaxis
                endtikzpicture
                enddocument


                enter image description here



                If you want the function to follow more closely you can use sqrt(f1^2*f2^2/(f1^2+f2^2). Then replace the third plot with



                addplot+[no marks, samples=100] sqrt(f1(x)*f1(x)*f2(x)*f2(x)/(f1(x)*f1(x)+f2(x)*f2(x)));


                to get



                enter image description here






                share|improve this answer

























                  2












                  2








                  2







                  You can use the function f1*f2/(f1+f2) to get something like what you describe. To make the code a bit clearer I defined the functions f1 and f2.



                  documentclassstandalone
                  usepackagepgfplots
                  pgfplotsset%
                  compat=1.12,
                  /pgf/declare function=f1(x)=exp(3*x);,
                  /pgf/declare function=f2(x)=-exp(3*x)+20;,

                  begindocument
                  begintikzpicture
                  beginaxis[domain=0:1]
                  addplot+[no marks, samples=100] f1(x);
                  addplot+[no marks, samples=100] f2(x);
                  addplot+[no marks, samples=100] f1(x)*f2(x)/(f1(x)+f2(x));
                  endaxis
                  endtikzpicture
                  enddocument


                  enter image description here



                  If you want the function to follow more closely you can use sqrt(f1^2*f2^2/(f1^2+f2^2). Then replace the third plot with



                  addplot+[no marks, samples=100] sqrt(f1(x)*f1(x)*f2(x)*f2(x)/(f1(x)*f1(x)+f2(x)*f2(x)));


                  to get



                  enter image description here






                  share|improve this answer













                  You can use the function f1*f2/(f1+f2) to get something like what you describe. To make the code a bit clearer I defined the functions f1 and f2.



                  documentclassstandalone
                  usepackagepgfplots
                  pgfplotsset%
                  compat=1.12,
                  /pgf/declare function=f1(x)=exp(3*x);,
                  /pgf/declare function=f2(x)=-exp(3*x)+20;,

                  begindocument
                  begintikzpicture
                  beginaxis[domain=0:1]
                  addplot+[no marks, samples=100] f1(x);
                  addplot+[no marks, samples=100] f2(x);
                  addplot+[no marks, samples=100] f1(x)*f2(x)/(f1(x)+f2(x));
                  endaxis
                  endtikzpicture
                  enddocument


                  enter image description here



                  If you want the function to follow more closely you can use sqrt(f1^2*f2^2/(f1^2+f2^2). Then replace the third plot with



                  addplot+[no marks, samples=100] sqrt(f1(x)*f1(x)*f2(x)*f2(x)/(f1(x)*f1(x)+f2(x)*f2(x)));


                  to get



                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 30 mins ago









                  StefanHStefanH

                  10.8k1820




                  10.8k1820



























                      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%2f482639%2fpgfplots-how-to-draw-a-tangent-graph-below-two-others%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

                      Era Viking Índice Início da Era Viquingue | Cotidiano | Sociedade | Língua | Religião | A arte | As primeiras cidades | As viagens dos viquingues | Viquingues do Oeste e Leste | Fim da Era Viquingue | Fontes históricas | Referências Bibliografia | Ligações externas | Menu de navegação«Sverige då!»«Handel I vikingetid»«O que é Nórdico Antigo»Mito, magia e religião na volsunga saga Um olhar sobre a trajetória mítica do herói sigurd«Bonden var den verklige vikingen»«Vikingatiden»«Vikingatiden»«Vinland»«Guerreiras de Óðinn: As Valkyrjor na Mitologia Viking»1519-9053«Esculpindo símbolos e seres: A arte viking em pedras rúnicas»1679-9313Historia - Tema: VikingarnaAventura e Magia no Mundo das Sagas IslandesasEra Vikinge

                      What's the metal clinking sound at the end of credits in Avengers: Endgame?What makes Thanos so strong in Avengers: Endgame?Who is the character that appears at the end of Endgame?What happens to Mjolnir (Thor's hammer) at the end of Endgame?The People's Ages in Avengers: EndgameWhat did Nebula do in Avengers: Endgame?Messing with time in the Avengers: Endgame climaxAvengers: Endgame timelineWhat are the time-travel rules in Avengers Endgame?Why use this song in Avengers: Endgame Opening Logo Sequence?Peggy's age in Avengers Endgame

                      Are there legal definitions of ethnicities/races? The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Legal definitions in the United StatesAre there truly legal limits on US interest rates?Are gender identity and sexual orientation federally protected?Why is there an apparent legal bias against digital services?What limits are there to the powers of individual judges in the United States legal system?Are women only scholarships legal under Irish / EU law?Is the term “race” defined by Public Law enacted by Congress of the United StatesIs there a legal definition of race in the US?Neighbors are spying for landlord on Renters is it legal?Are Protected Classes Bi-directional?