Drawing a curve with vertical arrows












0















That is what I've got so far, but I have no idea how to insert the arrow. I would really appreciate any kind of help! Thanks again to @marmot



documentclass[tikz,border=3.14mm]{standalone} 

begin{document}
begin{tikzpicture}
draw[-stealth] (-4,0) -- (-4,4.5);
draw[blue] plot[variable=x,smooth,domain=-4:4] (x,{2-2*tanh(1.5*(x+1))}) node at (-1.3,3) [left]{G"utefunktion};
draw[-stealth] (-4.5,0) -- (4.5,0) node[below right]{$mu$};
draw[black,thick] (0.25,-0.5) -- (0.25,5) node at (0.25, -0.5)[below]{140};
draw[-latex] (0.5,4.5) -- (4,4.5) node[midway,above]{H0 Bereich};
draw[-latex] (-0.05,4.5) -- (-4,4.5) node[midway,above]{H1 Bereich};
draw [red] (-4.2,0.5) -- (3,0.5) node at (-4.3,0.5) [left]{$alpha$ = 0,05};
draw [black] (-4.2,4) -- (4.5,4) node at (-4.2,4) [left]{1};
end{tikzpicture}
end{document}


enter image description here










share|improve this question




















  • 4





    it shouldn't be so difficult. you need to define math expression for function first and show us what you trayed so far or simply wait for someone who will be willing to draw your image instead of you ;-)..,

    – Zarko
    yesterday






  • 6





    I'm voting to close this question as off-topic because it is a just-do-it-for-me class of question. Most of your past questions belongs to the same class as well.

    – Raaja
    yesterday






  • 2





    Please don't downvote below a score of -1, even if the question in its current form needs some improvement. A score of -1 is enough to show that the question needs work, anything below that is of no use. Also, if you downvote or vote to close, please leave a comment explaining why you did so, but wait at least 24 hours after asking the OP for improvements to the question before voting to close.

    – Kurt
    yesterday






  • 1





    Looks like a tanh: documentclass[tikz,border=3.14mm]{standalone} begin{document} begin{tikzpicture} draw plot[variable=x,smooth,domain=-4:4] (x,{2-2*tanh(1.5*(x+1))}); draw[-stealth] (-4.5,0) -- (4.5,0); draw[-stealth] (0,0) -- (0,4.5); end{tikzpicture} end{document}

    – marmot
    yesterday











  • Possible duplicate of tex.stackexchange.com/questions/475602/…

    – John Kormylo
    yesterday
















0















That is what I've got so far, but I have no idea how to insert the arrow. I would really appreciate any kind of help! Thanks again to @marmot



documentclass[tikz,border=3.14mm]{standalone} 

begin{document}
begin{tikzpicture}
draw[-stealth] (-4,0) -- (-4,4.5);
draw[blue] plot[variable=x,smooth,domain=-4:4] (x,{2-2*tanh(1.5*(x+1))}) node at (-1.3,3) [left]{G"utefunktion};
draw[-stealth] (-4.5,0) -- (4.5,0) node[below right]{$mu$};
draw[black,thick] (0.25,-0.5) -- (0.25,5) node at (0.25, -0.5)[below]{140};
draw[-latex] (0.5,4.5) -- (4,4.5) node[midway,above]{H0 Bereich};
draw[-latex] (-0.05,4.5) -- (-4,4.5) node[midway,above]{H1 Bereich};
draw [red] (-4.2,0.5) -- (3,0.5) node at (-4.3,0.5) [left]{$alpha$ = 0,05};
draw [black] (-4.2,4) -- (4.5,4) node at (-4.2,4) [left]{1};
end{tikzpicture}
end{document}


enter image description here










share|improve this question




















  • 4





    it shouldn't be so difficult. you need to define math expression for function first and show us what you trayed so far or simply wait for someone who will be willing to draw your image instead of you ;-)..,

    – Zarko
    yesterday






  • 6





    I'm voting to close this question as off-topic because it is a just-do-it-for-me class of question. Most of your past questions belongs to the same class as well.

    – Raaja
    yesterday






  • 2





    Please don't downvote below a score of -1, even if the question in its current form needs some improvement. A score of -1 is enough to show that the question needs work, anything below that is of no use. Also, if you downvote or vote to close, please leave a comment explaining why you did so, but wait at least 24 hours after asking the OP for improvements to the question before voting to close.

    – Kurt
    yesterday






  • 1





    Looks like a tanh: documentclass[tikz,border=3.14mm]{standalone} begin{document} begin{tikzpicture} draw plot[variable=x,smooth,domain=-4:4] (x,{2-2*tanh(1.5*(x+1))}); draw[-stealth] (-4.5,0) -- (4.5,0); draw[-stealth] (0,0) -- (0,4.5); end{tikzpicture} end{document}

    – marmot
    yesterday











  • Possible duplicate of tex.stackexchange.com/questions/475602/…

    – John Kormylo
    yesterday














0












0








0








That is what I've got so far, but I have no idea how to insert the arrow. I would really appreciate any kind of help! Thanks again to @marmot



documentclass[tikz,border=3.14mm]{standalone} 

begin{document}
begin{tikzpicture}
draw[-stealth] (-4,0) -- (-4,4.5);
draw[blue] plot[variable=x,smooth,domain=-4:4] (x,{2-2*tanh(1.5*(x+1))}) node at (-1.3,3) [left]{G"utefunktion};
draw[-stealth] (-4.5,0) -- (4.5,0) node[below right]{$mu$};
draw[black,thick] (0.25,-0.5) -- (0.25,5) node at (0.25, -0.5)[below]{140};
draw[-latex] (0.5,4.5) -- (4,4.5) node[midway,above]{H0 Bereich};
draw[-latex] (-0.05,4.5) -- (-4,4.5) node[midway,above]{H1 Bereich};
draw [red] (-4.2,0.5) -- (3,0.5) node at (-4.3,0.5) [left]{$alpha$ = 0,05};
draw [black] (-4.2,4) -- (4.5,4) node at (-4.2,4) [left]{1};
end{tikzpicture}
end{document}


enter image description here










share|improve this question
















That is what I've got so far, but I have no idea how to insert the arrow. I would really appreciate any kind of help! Thanks again to @marmot



documentclass[tikz,border=3.14mm]{standalone} 

begin{document}
begin{tikzpicture}
draw[-stealth] (-4,0) -- (-4,4.5);
draw[blue] plot[variable=x,smooth,domain=-4:4] (x,{2-2*tanh(1.5*(x+1))}) node at (-1.3,3) [left]{G"utefunktion};
draw[-stealth] (-4.5,0) -- (4.5,0) node[below right]{$mu$};
draw[black,thick] (0.25,-0.5) -- (0.25,5) node at (0.25, -0.5)[below]{140};
draw[-latex] (0.5,4.5) -- (4,4.5) node[midway,above]{H0 Bereich};
draw[-latex] (-0.05,4.5) -- (-4,4.5) node[midway,above]{H1 Bereich};
draw [red] (-4.2,0.5) -- (3,0.5) node at (-4.3,0.5) [left]{$alpha$ = 0,05};
draw [black] (-4.2,4) -- (4.5,4) node at (-4.2,4) [left]{1};
end{tikzpicture}
end{document}


enter image description here







tikz-pgf tikz-arrows






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 6 hours ago









sheß

2,03711436




2,03711436










asked yesterday









RebeccaRebecca

675




675








  • 4





    it shouldn't be so difficult. you need to define math expression for function first and show us what you trayed so far or simply wait for someone who will be willing to draw your image instead of you ;-)..,

    – Zarko
    yesterday






  • 6





    I'm voting to close this question as off-topic because it is a just-do-it-for-me class of question. Most of your past questions belongs to the same class as well.

    – Raaja
    yesterday






  • 2





    Please don't downvote below a score of -1, even if the question in its current form needs some improvement. A score of -1 is enough to show that the question needs work, anything below that is of no use. Also, if you downvote or vote to close, please leave a comment explaining why you did so, but wait at least 24 hours after asking the OP for improvements to the question before voting to close.

    – Kurt
    yesterday






  • 1





    Looks like a tanh: documentclass[tikz,border=3.14mm]{standalone} begin{document} begin{tikzpicture} draw plot[variable=x,smooth,domain=-4:4] (x,{2-2*tanh(1.5*(x+1))}); draw[-stealth] (-4.5,0) -- (4.5,0); draw[-stealth] (0,0) -- (0,4.5); end{tikzpicture} end{document}

    – marmot
    yesterday











  • Possible duplicate of tex.stackexchange.com/questions/475602/…

    – John Kormylo
    yesterday














  • 4





    it shouldn't be so difficult. you need to define math expression for function first and show us what you trayed so far or simply wait for someone who will be willing to draw your image instead of you ;-)..,

    – Zarko
    yesterday






  • 6





    I'm voting to close this question as off-topic because it is a just-do-it-for-me class of question. Most of your past questions belongs to the same class as well.

    – Raaja
    yesterday






  • 2





    Please don't downvote below a score of -1, even if the question in its current form needs some improvement. A score of -1 is enough to show that the question needs work, anything below that is of no use. Also, if you downvote or vote to close, please leave a comment explaining why you did so, but wait at least 24 hours after asking the OP for improvements to the question before voting to close.

    – Kurt
    yesterday






  • 1





    Looks like a tanh: documentclass[tikz,border=3.14mm]{standalone} begin{document} begin{tikzpicture} draw plot[variable=x,smooth,domain=-4:4] (x,{2-2*tanh(1.5*(x+1))}); draw[-stealth] (-4.5,0) -- (4.5,0); draw[-stealth] (0,0) -- (0,4.5); end{tikzpicture} end{document}

    – marmot
    yesterday











  • Possible duplicate of tex.stackexchange.com/questions/475602/…

    – John Kormylo
    yesterday








4




4





it shouldn't be so difficult. you need to define math expression for function first and show us what you trayed so far or simply wait for someone who will be willing to draw your image instead of you ;-)..,

– Zarko
yesterday





it shouldn't be so difficult. you need to define math expression for function first and show us what you trayed so far or simply wait for someone who will be willing to draw your image instead of you ;-)..,

– Zarko
yesterday




6




6





I'm voting to close this question as off-topic because it is a just-do-it-for-me class of question. Most of your past questions belongs to the same class as well.

– Raaja
yesterday





I'm voting to close this question as off-topic because it is a just-do-it-for-me class of question. Most of your past questions belongs to the same class as well.

– Raaja
yesterday




2




2





Please don't downvote below a score of -1, even if the question in its current form needs some improvement. A score of -1 is enough to show that the question needs work, anything below that is of no use. Also, if you downvote or vote to close, please leave a comment explaining why you did so, but wait at least 24 hours after asking the OP for improvements to the question before voting to close.

– Kurt
yesterday





Please don't downvote below a score of -1, even if the question in its current form needs some improvement. A score of -1 is enough to show that the question needs work, anything below that is of no use. Also, if you downvote or vote to close, please leave a comment explaining why you did so, but wait at least 24 hours after asking the OP for improvements to the question before voting to close.

– Kurt
yesterday




1




1





Looks like a tanh: documentclass[tikz,border=3.14mm]{standalone} begin{document} begin{tikzpicture} draw plot[variable=x,smooth,domain=-4:4] (x,{2-2*tanh(1.5*(x+1))}); draw[-stealth] (-4.5,0) -- (4.5,0); draw[-stealth] (0,0) -- (0,4.5); end{tikzpicture} end{document}

– marmot
yesterday





Looks like a tanh: documentclass[tikz,border=3.14mm]{standalone} begin{document} begin{tikzpicture} draw plot[variable=x,smooth,domain=-4:4] (x,{2-2*tanh(1.5*(x+1))}); draw[-stealth] (-4.5,0) -- (4.5,0); draw[-stealth] (0,0) -- (0,4.5); end{tikzpicture} end{document}

– marmot
yesterday













Possible duplicate of tex.stackexchange.com/questions/475602/…

– John Kormylo
yesterday





Possible duplicate of tex.stackexchange.com/questions/475602/…

– John Kormylo
yesterday










1 Answer
1






active

oldest

votes


















1














Actually with shade, drawing the arrow is not really complicated. However, the text is not really readable IMHO.



In this answer, I don't use tang function, but a simple curve using in and out. This helps me calculate the coordinates for drawing the arrow.



Next time you ask a question, please make sure that you put some efforts into solving it in advance, otherwise it is very likely that your question is closed (like this one).



documentclass[tikz]{standalone} 
usetikzlibrary{intersections,decorations.markings}
usepackage{amsmath}
begin{document}
begin{tikzpicture}[scale=5,>=stealth]
draw[<->] (0,1.1) -- (0,0) coordinate (o) -- (1.75,0) coordinate (x) node[below] {$mu$};
path (0,1) coordinate (y);
draw (-.02,1) node[left] {$1$}--(.02,1);
draw (-.02,0) node[left] {$0$}--(0,0);
draw[name path=alpha,red] (-.1,.05) node[left] {$alpha=0.05$}--(1.75,.05);
draw[name path=curve,blue,postaction={
decorate,
decoration={
markings,
mark=at position 0.5 with coordinate (midarrow);,
mark=at position 0.55 with coordinate (nodename);
}
}] (0,1) to[out=0,in=180] (1.5,0);
path[name intersections={of=curve and alpha,by=inter}];
draw (inter) -- (inter |- o) -- ++ (0,-.1) node[below] {$140$};
draw (inter) -- (inter |- y) -- ++ (0,.2);
draw (y) -- ++ (1.75,0);
draw[->] ([shift={(-.02,.05)}]inter |- y) node[above left] {$H_1$-Bereich} -- ++ (-.5,0);
draw[->] ([shift={(.02,.05)}]inter |- y) node[above right] {$H_0$-Bereich} -- ++ (.5,0);
path[blue] (nodename) node[below left] {G"utefunktion};
path (o)--(y) node[midway,sloped,above,font=footnotesize] {$g(mu)=P(text{Ablehnung von }H_0)$};
shade[top color=yellow!60!black,bottom color=yellow] (midarrow) -- ++(.1,.1) --++(-.05,0) --++(0,.15) --++(-.1,0) --++(0,-.15) --++(-.05,0) --cycle;
shade[top color=yellow,bottom color=yellow!60!black] ([shift={(.05,.25)}]midarrow) --++(0,.15) --++(.05,0) --++(-.1,.1) --++(-.1,-.1) --++(.05,0) --++(0,-.15) -- cycle;
path[yellow!20!black] (midarrow) --++(0,.25) node {Some text};
node at (0,1.25) {$H_0:;mugemu_0$};
end{tikzpicture}
end{document}


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%2f482548%2fdrawing-a-curve-with-vertical-arrows%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









    1














    Actually with shade, drawing the arrow is not really complicated. However, the text is not really readable IMHO.



    In this answer, I don't use tang function, but a simple curve using in and out. This helps me calculate the coordinates for drawing the arrow.



    Next time you ask a question, please make sure that you put some efforts into solving it in advance, otherwise it is very likely that your question is closed (like this one).



    documentclass[tikz]{standalone} 
    usetikzlibrary{intersections,decorations.markings}
    usepackage{amsmath}
    begin{document}
    begin{tikzpicture}[scale=5,>=stealth]
    draw[<->] (0,1.1) -- (0,0) coordinate (o) -- (1.75,0) coordinate (x) node[below] {$mu$};
    path (0,1) coordinate (y);
    draw (-.02,1) node[left] {$1$}--(.02,1);
    draw (-.02,0) node[left] {$0$}--(0,0);
    draw[name path=alpha,red] (-.1,.05) node[left] {$alpha=0.05$}--(1.75,.05);
    draw[name path=curve,blue,postaction={
    decorate,
    decoration={
    markings,
    mark=at position 0.5 with coordinate (midarrow);,
    mark=at position 0.55 with coordinate (nodename);
    }
    }] (0,1) to[out=0,in=180] (1.5,0);
    path[name intersections={of=curve and alpha,by=inter}];
    draw (inter) -- (inter |- o) -- ++ (0,-.1) node[below] {$140$};
    draw (inter) -- (inter |- y) -- ++ (0,.2);
    draw (y) -- ++ (1.75,0);
    draw[->] ([shift={(-.02,.05)}]inter |- y) node[above left] {$H_1$-Bereich} -- ++ (-.5,0);
    draw[->] ([shift={(.02,.05)}]inter |- y) node[above right] {$H_0$-Bereich} -- ++ (.5,0);
    path[blue] (nodename) node[below left] {G"utefunktion};
    path (o)--(y) node[midway,sloped,above,font=footnotesize] {$g(mu)=P(text{Ablehnung von }H_0)$};
    shade[top color=yellow!60!black,bottom color=yellow] (midarrow) -- ++(.1,.1) --++(-.05,0) --++(0,.15) --++(-.1,0) --++(0,-.15) --++(-.05,0) --cycle;
    shade[top color=yellow,bottom color=yellow!60!black] ([shift={(.05,.25)}]midarrow) --++(0,.15) --++(.05,0) --++(-.1,.1) --++(-.1,-.1) --++(.05,0) --++(0,-.15) -- cycle;
    path[yellow!20!black] (midarrow) --++(0,.25) node {Some text};
    node at (0,1.25) {$H_0:;mugemu_0$};
    end{tikzpicture}
    end{document}


    enter image description here






    share|improve this answer




























      1














      Actually with shade, drawing the arrow is not really complicated. However, the text is not really readable IMHO.



      In this answer, I don't use tang function, but a simple curve using in and out. This helps me calculate the coordinates for drawing the arrow.



      Next time you ask a question, please make sure that you put some efforts into solving it in advance, otherwise it is very likely that your question is closed (like this one).



      documentclass[tikz]{standalone} 
      usetikzlibrary{intersections,decorations.markings}
      usepackage{amsmath}
      begin{document}
      begin{tikzpicture}[scale=5,>=stealth]
      draw[<->] (0,1.1) -- (0,0) coordinate (o) -- (1.75,0) coordinate (x) node[below] {$mu$};
      path (0,1) coordinate (y);
      draw (-.02,1) node[left] {$1$}--(.02,1);
      draw (-.02,0) node[left] {$0$}--(0,0);
      draw[name path=alpha,red] (-.1,.05) node[left] {$alpha=0.05$}--(1.75,.05);
      draw[name path=curve,blue,postaction={
      decorate,
      decoration={
      markings,
      mark=at position 0.5 with coordinate (midarrow);,
      mark=at position 0.55 with coordinate (nodename);
      }
      }] (0,1) to[out=0,in=180] (1.5,0);
      path[name intersections={of=curve and alpha,by=inter}];
      draw (inter) -- (inter |- o) -- ++ (0,-.1) node[below] {$140$};
      draw (inter) -- (inter |- y) -- ++ (0,.2);
      draw (y) -- ++ (1.75,0);
      draw[->] ([shift={(-.02,.05)}]inter |- y) node[above left] {$H_1$-Bereich} -- ++ (-.5,0);
      draw[->] ([shift={(.02,.05)}]inter |- y) node[above right] {$H_0$-Bereich} -- ++ (.5,0);
      path[blue] (nodename) node[below left] {G"utefunktion};
      path (o)--(y) node[midway,sloped,above,font=footnotesize] {$g(mu)=P(text{Ablehnung von }H_0)$};
      shade[top color=yellow!60!black,bottom color=yellow] (midarrow) -- ++(.1,.1) --++(-.05,0) --++(0,.15) --++(-.1,0) --++(0,-.15) --++(-.05,0) --cycle;
      shade[top color=yellow,bottom color=yellow!60!black] ([shift={(.05,.25)}]midarrow) --++(0,.15) --++(.05,0) --++(-.1,.1) --++(-.1,-.1) --++(.05,0) --++(0,-.15) -- cycle;
      path[yellow!20!black] (midarrow) --++(0,.25) node {Some text};
      node at (0,1.25) {$H_0:;mugemu_0$};
      end{tikzpicture}
      end{document}


      enter image description here






      share|improve this answer


























        1












        1








        1







        Actually with shade, drawing the arrow is not really complicated. However, the text is not really readable IMHO.



        In this answer, I don't use tang function, but a simple curve using in and out. This helps me calculate the coordinates for drawing the arrow.



        Next time you ask a question, please make sure that you put some efforts into solving it in advance, otherwise it is very likely that your question is closed (like this one).



        documentclass[tikz]{standalone} 
        usetikzlibrary{intersections,decorations.markings}
        usepackage{amsmath}
        begin{document}
        begin{tikzpicture}[scale=5,>=stealth]
        draw[<->] (0,1.1) -- (0,0) coordinate (o) -- (1.75,0) coordinate (x) node[below] {$mu$};
        path (0,1) coordinate (y);
        draw (-.02,1) node[left] {$1$}--(.02,1);
        draw (-.02,0) node[left] {$0$}--(0,0);
        draw[name path=alpha,red] (-.1,.05) node[left] {$alpha=0.05$}--(1.75,.05);
        draw[name path=curve,blue,postaction={
        decorate,
        decoration={
        markings,
        mark=at position 0.5 with coordinate (midarrow);,
        mark=at position 0.55 with coordinate (nodename);
        }
        }] (0,1) to[out=0,in=180] (1.5,0);
        path[name intersections={of=curve and alpha,by=inter}];
        draw (inter) -- (inter |- o) -- ++ (0,-.1) node[below] {$140$};
        draw (inter) -- (inter |- y) -- ++ (0,.2);
        draw (y) -- ++ (1.75,0);
        draw[->] ([shift={(-.02,.05)}]inter |- y) node[above left] {$H_1$-Bereich} -- ++ (-.5,0);
        draw[->] ([shift={(.02,.05)}]inter |- y) node[above right] {$H_0$-Bereich} -- ++ (.5,0);
        path[blue] (nodename) node[below left] {G"utefunktion};
        path (o)--(y) node[midway,sloped,above,font=footnotesize] {$g(mu)=P(text{Ablehnung von }H_0)$};
        shade[top color=yellow!60!black,bottom color=yellow] (midarrow) -- ++(.1,.1) --++(-.05,0) --++(0,.15) --++(-.1,0) --++(0,-.15) --++(-.05,0) --cycle;
        shade[top color=yellow,bottom color=yellow!60!black] ([shift={(.05,.25)}]midarrow) --++(0,.15) --++(.05,0) --++(-.1,.1) --++(-.1,-.1) --++(.05,0) --++(0,-.15) -- cycle;
        path[yellow!20!black] (midarrow) --++(0,.25) node {Some text};
        node at (0,1.25) {$H_0:;mugemu_0$};
        end{tikzpicture}
        end{document}


        enter image description here






        share|improve this answer













        Actually with shade, drawing the arrow is not really complicated. However, the text is not really readable IMHO.



        In this answer, I don't use tang function, but a simple curve using in and out. This helps me calculate the coordinates for drawing the arrow.



        Next time you ask a question, please make sure that you put some efforts into solving it in advance, otherwise it is very likely that your question is closed (like this one).



        documentclass[tikz]{standalone} 
        usetikzlibrary{intersections,decorations.markings}
        usepackage{amsmath}
        begin{document}
        begin{tikzpicture}[scale=5,>=stealth]
        draw[<->] (0,1.1) -- (0,0) coordinate (o) -- (1.75,0) coordinate (x) node[below] {$mu$};
        path (0,1) coordinate (y);
        draw (-.02,1) node[left] {$1$}--(.02,1);
        draw (-.02,0) node[left] {$0$}--(0,0);
        draw[name path=alpha,red] (-.1,.05) node[left] {$alpha=0.05$}--(1.75,.05);
        draw[name path=curve,blue,postaction={
        decorate,
        decoration={
        markings,
        mark=at position 0.5 with coordinate (midarrow);,
        mark=at position 0.55 with coordinate (nodename);
        }
        }] (0,1) to[out=0,in=180] (1.5,0);
        path[name intersections={of=curve and alpha,by=inter}];
        draw (inter) -- (inter |- o) -- ++ (0,-.1) node[below] {$140$};
        draw (inter) -- (inter |- y) -- ++ (0,.2);
        draw (y) -- ++ (1.75,0);
        draw[->] ([shift={(-.02,.05)}]inter |- y) node[above left] {$H_1$-Bereich} -- ++ (-.5,0);
        draw[->] ([shift={(.02,.05)}]inter |- y) node[above right] {$H_0$-Bereich} -- ++ (.5,0);
        path[blue] (nodename) node[below left] {G"utefunktion};
        path (o)--(y) node[midway,sloped,above,font=footnotesize] {$g(mu)=P(text{Ablehnung von }H_0)$};
        shade[top color=yellow!60!black,bottom color=yellow] (midarrow) -- ++(.1,.1) --++(-.05,0) --++(0,.15) --++(-.1,0) --++(0,-.15) --++(-.05,0) --cycle;
        shade[top color=yellow,bottom color=yellow!60!black] ([shift={(.05,.25)}]midarrow) --++(0,.15) --++(.05,0) --++(-.1,.1) --++(-.1,-.1) --++(.05,0) --++(0,-.15) -- cycle;
        path[yellow!20!black] (midarrow) --++(0,.25) node {Some text};
        node at (0,1.25) {$H_0:;mugemu_0$};
        end{tikzpicture}
        end{document}


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 6 hours ago









        JouleVJouleV

        9,91322558




        9,91322558






























            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%2f482548%2fdrawing-a-curve-with-vertical-arrows%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

            Lallio

            Futebolista

            Jornalista