Plotting point on a graphGrouped bar chartPolar Plots - layout and extraction of crucial parametersPlotting a directed graph using pgfplotsHow 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 drawingLine up nested tikz enviroments or how to get rid of thempgfplots: percentage in matrix plotCenter the axes in the coordinate originDefine coordinate with anchor point

Escape a backup date in a file name

How do I go from 300 unfinished/half written blog posts, to published posts?

Do all network devices need to make routing decisions, regardless of communication across networks or within a network?

Lay out the Carpet

Class Action - which options I have?

Tiptoe or tiphoof? Adjusting words to better fit fantasy races

Gears on left are inverse to gears on right?

Hostile work environment after whistle-blowing on coworker and our boss. What do I do?

How to draw lines on a tikz-cd diagram

How does Loki do this?

Why Were Madagascar and New Zealand Discovered So Late?

How to Reset Passwords on Multiple Websites Easily?

Is HostGator storing my password in plaintext?

Fastening aluminum fascia to wooden subfascia

Proof of work - lottery approach

CREATE opcode: what does it really do?

How does buying out courses with grant money work?

Where does the Z80 processor start executing from?

What happens if you roll doubles 3 times then land on "Go to jail?"

Why not increase contact surface when reentering the atmosphere?

Is exact Kanji stroke length important?

Implement the Thanos sorting algorithm

How do I extract a value from a time formatted value in excel?

How many times can American Tourist re-enter UK in same 6 month period?



Plotting point on a graph


Grouped bar chartPolar Plots - layout and extraction of crucial parametersPlotting a directed graph using pgfplotsHow 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 drawingLine up nested tikz enviroments or how to get rid of thempgfplots: percentage in matrix plotCenter the axes in the coordinate originDefine coordinate with anchor point













0















I would like to draw the curve shown below including the marked points and the name of the curve.



enter image description here



Using the code



begincenter
begintikzpicture[scale=0.8,domain=-2:20]
beginaxis[
height = 11.7cm,
width = 15cm,
axis lines=middle,
grid=major,
xmin=-2,
xmax=10,
ymin=-2,
ymax=20,
y label style=at=(axis description cs:0.5,-0.05),anchor=north,
x label style=at=(axis description cs:-0.05,.5),rotate=0,anchor=south,
xlabel=$y$,
ylabel=$x$,
xtick=-2,-1,0,...,14,
ytick=-2,0,...,20,
tick style=very thick,
legend style=
at=(rel axis cs:0,1),
anchor=north west,draw=none,inner sep=0pt,fill=gray!10
]
addplot[black,thick,samples=1] 0;
draw[color=red, smooth] plot (x,x*x-8*x+16) node[above left] $y =x^2-8x+16$;
endaxis
endtikzpicture
endcenter


We can create the graph but unable to mark the points.
enter image description here










share|improve this question



















  • 2





    We generally frown on "please create this for me" type questions. But I see that you have self-answered most of the way. If you edit your question to have your attempt (and also include the documentclass and enddocument so that we can compile), and specify that your problem is marking the two points in question, then I'm fairly confident that you'll get an answer.

    – Teepeemm
    4 hours ago















0















I would like to draw the curve shown below including the marked points and the name of the curve.



enter image description here



Using the code



begincenter
begintikzpicture[scale=0.8,domain=-2:20]
beginaxis[
height = 11.7cm,
width = 15cm,
axis lines=middle,
grid=major,
xmin=-2,
xmax=10,
ymin=-2,
ymax=20,
y label style=at=(axis description cs:0.5,-0.05),anchor=north,
x label style=at=(axis description cs:-0.05,.5),rotate=0,anchor=south,
xlabel=$y$,
ylabel=$x$,
xtick=-2,-1,0,...,14,
ytick=-2,0,...,20,
tick style=very thick,
legend style=
at=(rel axis cs:0,1),
anchor=north west,draw=none,inner sep=0pt,fill=gray!10
]
addplot[black,thick,samples=1] 0;
draw[color=red, smooth] plot (x,x*x-8*x+16) node[above left] $y =x^2-8x+16$;
endaxis
endtikzpicture
endcenter


We can create the graph but unable to mark the points.
enter image description here










share|improve this question



















  • 2





    We generally frown on "please create this for me" type questions. But I see that you have self-answered most of the way. If you edit your question to have your attempt (and also include the documentclass and enddocument so that we can compile), and specify that your problem is marking the two points in question, then I'm fairly confident that you'll get an answer.

    – Teepeemm
    4 hours ago













0












0








0


0






I would like to draw the curve shown below including the marked points and the name of the curve.



enter image description here



Using the code



begincenter
begintikzpicture[scale=0.8,domain=-2:20]
beginaxis[
height = 11.7cm,
width = 15cm,
axis lines=middle,
grid=major,
xmin=-2,
xmax=10,
ymin=-2,
ymax=20,
y label style=at=(axis description cs:0.5,-0.05),anchor=north,
x label style=at=(axis description cs:-0.05,.5),rotate=0,anchor=south,
xlabel=$y$,
ylabel=$x$,
xtick=-2,-1,0,...,14,
ytick=-2,0,...,20,
tick style=very thick,
legend style=
at=(rel axis cs:0,1),
anchor=north west,draw=none,inner sep=0pt,fill=gray!10
]
addplot[black,thick,samples=1] 0;
draw[color=red, smooth] plot (x,x*x-8*x+16) node[above left] $y =x^2-8x+16$;
endaxis
endtikzpicture
endcenter


We can create the graph but unable to mark the points.
enter image description here










share|improve this question
















I would like to draw the curve shown below including the marked points and the name of the curve.



enter image description here



Using the code



begincenter
begintikzpicture[scale=0.8,domain=-2:20]
beginaxis[
height = 11.7cm,
width = 15cm,
axis lines=middle,
grid=major,
xmin=-2,
xmax=10,
ymin=-2,
ymax=20,
y label style=at=(axis description cs:0.5,-0.05),anchor=north,
x label style=at=(axis description cs:-0.05,.5),rotate=0,anchor=south,
xlabel=$y$,
ylabel=$x$,
xtick=-2,-1,0,...,14,
ytick=-2,0,...,20,
tick style=very thick,
legend style=
at=(rel axis cs:0,1),
anchor=north west,draw=none,inner sep=0pt,fill=gray!10
]
addplot[black,thick,samples=1] 0;
draw[color=red, smooth] plot (x,x*x-8*x+16) node[above left] $y =x^2-8x+16$;
endaxis
endtikzpicture
endcenter


We can create the graph but unable to mark the points.
enter image description here







tikz-pgf pgfplots graphs tikz-3dplot






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 9 mins ago







Jettie Baker

















asked 5 hours ago









Jettie BakerJettie Baker

465




465







  • 2





    We generally frown on "please create this for me" type questions. But I see that you have self-answered most of the way. If you edit your question to have your attempt (and also include the documentclass and enddocument so that we can compile), and specify that your problem is marking the two points in question, then I'm fairly confident that you'll get an answer.

    – Teepeemm
    4 hours ago












  • 2





    We generally frown on "please create this for me" type questions. But I see that you have self-answered most of the way. If you edit your question to have your attempt (and also include the documentclass and enddocument so that we can compile), and specify that your problem is marking the two points in question, then I'm fairly confident that you'll get an answer.

    – Teepeemm
    4 hours ago







2




2





We generally frown on "please create this for me" type questions. But I see that you have self-answered most of the way. If you edit your question to have your attempt (and also include the documentclass and enddocument so that we can compile), and specify that your problem is marking the two points in question, then I'm fairly confident that you'll get an answer.

– Teepeemm
4 hours ago





We generally frown on "please create this for me" type questions. But I see that you have self-answered most of the way. If you edit your question to have your attempt (and also include the documentclass and enddocument so that we can compile), and specify that your problem is marking the two points in question, then I'm fairly confident that you'll get an answer.

– Teepeemm
4 hours ago










1 Answer
1






active

oldest

votes


















4














This is based on your own answer with some modifications:



  1. Use addplot instead of the TikZy draw plot.

  2. Put scale to the options of the axis (since that may be relevant once you start filling some areas).

  3. Added coordinates with labels.

Result:



documentclass[tikz,border=3.14mm]standalone
usetikzlibraryshadows.blur
usepackagepgfplots
pgfplotssetcompat=1.16
begindocument
begintikzpicture[fancy label/.style=fill=white,rounded corners=1pt,blur
shadow]
beginaxis[scale=0.8,
height = 11.7cm,
width = 15cm,
axis lines=middle,
grid=major,
xmin=-2,
xmax=10,
ymin=-2,
ymax=20,
y label style=at=(axis description cs:0.5,-0.05),anchor=north,
x label style=at=(axis description cs:-0.05,.5),rotate=0,anchor=south,
xlabel=$y$,
ylabel=$x$,
xtick=-2,-1,0,...,14,
ytick=-2,0,...,20,
tick style=very thick,
legend style=
at=(rel axis cs:0,1),
anchor=north west,draw=none,inner sep=0pt,fill=gray!10
]
addplot[domain=-2:20,red,thick,smooth] x*x-8*x+16 node[above left] $y =x^2-8x+16$;
node[fill,circle,inner sep=1.5pt,label=[fancy label]right:$(0,16)$] at
(0,16);
node[fill,circle,inner sep=1.5pt,label=[fancy label]below left:$(4,0)$] at
(4,0);
endaxis
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%2f481764%2fplotting-point-on-a-graph%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









    4














    This is based on your own answer with some modifications:



    1. Use addplot instead of the TikZy draw plot.

    2. Put scale to the options of the axis (since that may be relevant once you start filling some areas).

    3. Added coordinates with labels.

    Result:



    documentclass[tikz,border=3.14mm]standalone
    usetikzlibraryshadows.blur
    usepackagepgfplots
    pgfplotssetcompat=1.16
    begindocument
    begintikzpicture[fancy label/.style=fill=white,rounded corners=1pt,blur
    shadow]
    beginaxis[scale=0.8,
    height = 11.7cm,
    width = 15cm,
    axis lines=middle,
    grid=major,
    xmin=-2,
    xmax=10,
    ymin=-2,
    ymax=20,
    y label style=at=(axis description cs:0.5,-0.05),anchor=north,
    x label style=at=(axis description cs:-0.05,.5),rotate=0,anchor=south,
    xlabel=$y$,
    ylabel=$x$,
    xtick=-2,-1,0,...,14,
    ytick=-2,0,...,20,
    tick style=very thick,
    legend style=
    at=(rel axis cs:0,1),
    anchor=north west,draw=none,inner sep=0pt,fill=gray!10
    ]
    addplot[domain=-2:20,red,thick,smooth] x*x-8*x+16 node[above left] $y =x^2-8x+16$;
    node[fill,circle,inner sep=1.5pt,label=[fancy label]right:$(0,16)$] at
    (0,16);
    node[fill,circle,inner sep=1.5pt,label=[fancy label]below left:$(4,0)$] at
    (4,0);
    endaxis
    endtikzpicture
    enddocument


    enter image description here






    share|improve this answer



























      4














      This is based on your own answer with some modifications:



      1. Use addplot instead of the TikZy draw plot.

      2. Put scale to the options of the axis (since that may be relevant once you start filling some areas).

      3. Added coordinates with labels.

      Result:



      documentclass[tikz,border=3.14mm]standalone
      usetikzlibraryshadows.blur
      usepackagepgfplots
      pgfplotssetcompat=1.16
      begindocument
      begintikzpicture[fancy label/.style=fill=white,rounded corners=1pt,blur
      shadow]
      beginaxis[scale=0.8,
      height = 11.7cm,
      width = 15cm,
      axis lines=middle,
      grid=major,
      xmin=-2,
      xmax=10,
      ymin=-2,
      ymax=20,
      y label style=at=(axis description cs:0.5,-0.05),anchor=north,
      x label style=at=(axis description cs:-0.05,.5),rotate=0,anchor=south,
      xlabel=$y$,
      ylabel=$x$,
      xtick=-2,-1,0,...,14,
      ytick=-2,0,...,20,
      tick style=very thick,
      legend style=
      at=(rel axis cs:0,1),
      anchor=north west,draw=none,inner sep=0pt,fill=gray!10
      ]
      addplot[domain=-2:20,red,thick,smooth] x*x-8*x+16 node[above left] $y =x^2-8x+16$;
      node[fill,circle,inner sep=1.5pt,label=[fancy label]right:$(0,16)$] at
      (0,16);
      node[fill,circle,inner sep=1.5pt,label=[fancy label]below left:$(4,0)$] at
      (4,0);
      endaxis
      endtikzpicture
      enddocument


      enter image description here






      share|improve this answer

























        4












        4








        4







        This is based on your own answer with some modifications:



        1. Use addplot instead of the TikZy draw plot.

        2. Put scale to the options of the axis (since that may be relevant once you start filling some areas).

        3. Added coordinates with labels.

        Result:



        documentclass[tikz,border=3.14mm]standalone
        usetikzlibraryshadows.blur
        usepackagepgfplots
        pgfplotssetcompat=1.16
        begindocument
        begintikzpicture[fancy label/.style=fill=white,rounded corners=1pt,blur
        shadow]
        beginaxis[scale=0.8,
        height = 11.7cm,
        width = 15cm,
        axis lines=middle,
        grid=major,
        xmin=-2,
        xmax=10,
        ymin=-2,
        ymax=20,
        y label style=at=(axis description cs:0.5,-0.05),anchor=north,
        x label style=at=(axis description cs:-0.05,.5),rotate=0,anchor=south,
        xlabel=$y$,
        ylabel=$x$,
        xtick=-2,-1,0,...,14,
        ytick=-2,0,...,20,
        tick style=very thick,
        legend style=
        at=(rel axis cs:0,1),
        anchor=north west,draw=none,inner sep=0pt,fill=gray!10
        ]
        addplot[domain=-2:20,red,thick,smooth] x*x-8*x+16 node[above left] $y =x^2-8x+16$;
        node[fill,circle,inner sep=1.5pt,label=[fancy label]right:$(0,16)$] at
        (0,16);
        node[fill,circle,inner sep=1.5pt,label=[fancy label]below left:$(4,0)$] at
        (4,0);
        endaxis
        endtikzpicture
        enddocument


        enter image description here






        share|improve this answer













        This is based on your own answer with some modifications:



        1. Use addplot instead of the TikZy draw plot.

        2. Put scale to the options of the axis (since that may be relevant once you start filling some areas).

        3. Added coordinates with labels.

        Result:



        documentclass[tikz,border=3.14mm]standalone
        usetikzlibraryshadows.blur
        usepackagepgfplots
        pgfplotssetcompat=1.16
        begindocument
        begintikzpicture[fancy label/.style=fill=white,rounded corners=1pt,blur
        shadow]
        beginaxis[scale=0.8,
        height = 11.7cm,
        width = 15cm,
        axis lines=middle,
        grid=major,
        xmin=-2,
        xmax=10,
        ymin=-2,
        ymax=20,
        y label style=at=(axis description cs:0.5,-0.05),anchor=north,
        x label style=at=(axis description cs:-0.05,.5),rotate=0,anchor=south,
        xlabel=$y$,
        ylabel=$x$,
        xtick=-2,-1,0,...,14,
        ytick=-2,0,...,20,
        tick style=very thick,
        legend style=
        at=(rel axis cs:0,1),
        anchor=north west,draw=none,inner sep=0pt,fill=gray!10
        ]
        addplot[domain=-2:20,red,thick,smooth] x*x-8*x+16 node[above left] $y =x^2-8x+16$;
        node[fill,circle,inner sep=1.5pt,label=[fancy label]right:$(0,16)$] at
        (0,16);
        node[fill,circle,inner sep=1.5pt,label=[fancy label]below left:$(4,0)$] at
        (4,0);
        endaxis
        endtikzpicture
        enddocument


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 3 hours ago









        marmotmarmot

        112k5142268




        112k5142268



























            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%2f481764%2fplotting-point-on-a-graph%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

            How should I use the fbox command correctly to avoid producing a Bad Box message?How to put a long piece of text in a box?How to specify height and width of fboxIs there an arrayrulecolor-like command to change the rule color of fbox?What is the command to highlight bad boxes in pdf?Why does fbox sometimes place the box *over* the graphic image?how to put the text in the boxHow to create command for a box where text inside the box can automatically adjust?how can I make an fbox like command with certain color, shape and width of border?how to use fbox in align modeFbox increase the spacing between the box and it content (inner margin)how to change the box height of an equationWhat is the use of the hbox in a newcommand command?

            152 Atala Notae | Nexus externi | Tabula navigationis"Discovery Circumstances: Numbered Minor Planets"2000152Small-Body Database

            Doxepinum Nexus interni Notae | Tabula navigationis3158DB01142WHOa682390"Structural Analysis of the Histamine H1 Receptor""Transdermal and Topical Drug Administration in the Treatment of Pain""Antidepressants as antipruritic agents: A review"