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

            strTok function (thread safe, supports empty tokens, doesn't change string)String case reverse function in CGet line from string functionTDD: String Calculator KataC - K&R getint() variationSimple function to generate an HTML-safe stringGeneric Pairing Heap PerformancePattern for writing a generic string transformation functionChange a string into a function/def activatorC++ string tokenizing without streams, with certain conditionsRead consecutive blanks in array

            How to write “ä” and other umlauts and accented letters in bibliography?Accents in BibTeXSorting references with special characters alphabeticallyUse ae ligature in bibliographyEastern European nameInverted circumflex in BibTexBibTex, non-ascii initials and nameptr fproblems with accent in LatexHow to add a Ø to my bibliography from Jabref?References without accentsTroubles when trying to cite St“omer-Verlet in ”title" field of a bib entryComprehensive list of accented charactersHow to type the letter “i” with two dots (diaeresis) in math mode?Problem with glossary text and accented lettersSpecial character in bibliographyAccented letters, Unicode and LaTeX accentsHow to stop natbib from modifying bibliography styleCitation of a paper with non-standard characters by BibtexWrite accented characters to file using writeHow to group the bibliography alphabetically, if some surnames start with “accented” characters?How can I automatically capitalize significant words in my bibliography?

            Title of papers that have not been submitted to a venue?How “submitted”, “to appear”, “accepted” papers are evaluated in a CV?What percentage of papers submitted to a conference or journal have been previously rejected in the same or another venue?How to automatically extract submitted/accepted dates of many journal papers?Is it okay/common/good to mention the submitted papers in my phd thesis?Can one determine whether somebody's work may have been plagiarized?How to describe a paper for which you have not yet submitted revisions in CV?JCR publication required to enrol in PhD program - is it common?“Full” versions versus “Preliminary” version of result/paper. Are they considered different?How can I prove that my article has not been submitted to another journal?Is there anything that has been tried to stop publication shopping