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
I would like to draw the curve shown below including the marked points and the name of the curve.
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.
tikz-pgf pgfplots graphs tikz-3dplot
add a comment |
I would like to draw the curve shown below including the marked points and the name of the curve.
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.
tikz-pgf pgfplots graphs tikz-3dplot
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 thedocumentclass
andenddocument
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
add a comment |
I would like to draw the curve shown below including the marked points and the name of the curve.
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.
tikz-pgf pgfplots graphs tikz-3dplot
I would like to draw the curve shown below including the marked points and the name of the curve.
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.
tikz-pgf pgfplots graphs tikz-3dplot
tikz-pgf pgfplots graphs tikz-3dplot
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 thedocumentclass
andenddocument
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
add a comment |
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 thedocumentclass
andenddocument
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
add a comment |
1 Answer
1
active
oldest
votes
This is based on your own answer with some modifications:
- Use
addplot
instead of the TikZydraw plot
. - Put
scale
to the options of the axis (since that may be relevant once you start filling some areas). - 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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
This is based on your own answer with some modifications:
- Use
addplot
instead of the TikZydraw plot
. - Put
scale
to the options of the axis (since that may be relevant once you start filling some areas). - 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
add a comment |
This is based on your own answer with some modifications:
- Use
addplot
instead of the TikZydraw plot
. - Put
scale
to the options of the axis (since that may be relevant once you start filling some areas). - 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
add a comment |
This is based on your own answer with some modifications:
- Use
addplot
instead of the TikZydraw plot
. - Put
scale
to the options of the axis (since that may be relevant once you start filling some areas). - 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
This is based on your own answer with some modifications:
- Use
addplot
instead of the TikZydraw plot
. - Put
scale
to the options of the axis (since that may be relevant once you start filling some areas). - 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
answered 3 hours ago
marmotmarmot
112k5142268
112k5142268
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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
andenddocument
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