How to fill a circle node?
up vote
8
down vote
favorite
I have the following code:
documentclass{article}
usepackage{tikz,pgfplots}
begin{document}
begin{tikzpicture}[xscale=2]
@Axes
draw (0.05,-0.2) node[left]{textcolor{gray}{O}};
draw[thick, color=gray,->] (-1.5,0) -- (3,0) node[right] {textcolor{black}{$x$}};
draw[thick, color=gray, ->] (0,-1.5) -- (0,5) node[above] {textcolor{black}{$f(x)$}};
@Plot
draw [red, thick, domain=-1.2:2.5, samples=100] plot(x, {((x)+1});
draw [blue, thick, domain=-0.7:2, samples=100] plot(x, {(3-2*(x)});
@LoS and Labels
draw[gray, dashed] (2/3,0)--(2/3,5/3);
node[circle,fill=black,inner sep=0pt,minimum size=3pt,label=below:{$frac{3}{2}$}] (a) at (2/3,0) {};
node[circle,color=black, fill=white, inner sep=0pt,minimum size=5pt,label=below right:{}] (b) at (2/3,5/3) {};
end{tikzpicture}
end{document}
and I want to get a node in the middle of the intersecting line which is a white circle with a black border (a bubble which shows the point is excluded). How can I do this?
tikz-pgf
add a comment |
up vote
8
down vote
favorite
I have the following code:
documentclass{article}
usepackage{tikz,pgfplots}
begin{document}
begin{tikzpicture}[xscale=2]
@Axes
draw (0.05,-0.2) node[left]{textcolor{gray}{O}};
draw[thick, color=gray,->] (-1.5,0) -- (3,0) node[right] {textcolor{black}{$x$}};
draw[thick, color=gray, ->] (0,-1.5) -- (0,5) node[above] {textcolor{black}{$f(x)$}};
@Plot
draw [red, thick, domain=-1.2:2.5, samples=100] plot(x, {((x)+1});
draw [blue, thick, domain=-0.7:2, samples=100] plot(x, {(3-2*(x)});
@LoS and Labels
draw[gray, dashed] (2/3,0)--(2/3,5/3);
node[circle,fill=black,inner sep=0pt,minimum size=3pt,label=below:{$frac{3}{2}$}] (a) at (2/3,0) {};
node[circle,color=black, fill=white, inner sep=0pt,minimum size=5pt,label=below right:{}] (b) at (2/3,5/3) {};
end{tikzpicture}
end{document}
and I want to get a node in the middle of the intersecting line which is a white circle with a black border (a bubble which shows the point is excluded). How can I do this?
tikz-pgf
1
if you want a black border on your last node usedraw=black
(I'm not sure I understand the question completely)
– domenico camasta
Dec 7 '15 at 23:29
Please don't useminimal
for examples - it is not suitable.
– cfr
Dec 7 '15 at 23:51
Like Domenico said, use the commanddraw
(specifyingblack
in this case is unnecessary), and remove the optioncolor=black
.
– Alenanno
Dec 7 '15 at 23:54
(La)TeX uses%
to start a comment... The@...
lines in your code are not comments.
– Paul Gaborit
Dec 8 '15 at 10:29
add a comment |
up vote
8
down vote
favorite
up vote
8
down vote
favorite
I have the following code:
documentclass{article}
usepackage{tikz,pgfplots}
begin{document}
begin{tikzpicture}[xscale=2]
@Axes
draw (0.05,-0.2) node[left]{textcolor{gray}{O}};
draw[thick, color=gray,->] (-1.5,0) -- (3,0) node[right] {textcolor{black}{$x$}};
draw[thick, color=gray, ->] (0,-1.5) -- (0,5) node[above] {textcolor{black}{$f(x)$}};
@Plot
draw [red, thick, domain=-1.2:2.5, samples=100] plot(x, {((x)+1});
draw [blue, thick, domain=-0.7:2, samples=100] plot(x, {(3-2*(x)});
@LoS and Labels
draw[gray, dashed] (2/3,0)--(2/3,5/3);
node[circle,fill=black,inner sep=0pt,minimum size=3pt,label=below:{$frac{3}{2}$}] (a) at (2/3,0) {};
node[circle,color=black, fill=white, inner sep=0pt,minimum size=5pt,label=below right:{}] (b) at (2/3,5/3) {};
end{tikzpicture}
end{document}
and I want to get a node in the middle of the intersecting line which is a white circle with a black border (a bubble which shows the point is excluded). How can I do this?
tikz-pgf
I have the following code:
documentclass{article}
usepackage{tikz,pgfplots}
begin{document}
begin{tikzpicture}[xscale=2]
@Axes
draw (0.05,-0.2) node[left]{textcolor{gray}{O}};
draw[thick, color=gray,->] (-1.5,0) -- (3,0) node[right] {textcolor{black}{$x$}};
draw[thick, color=gray, ->] (0,-1.5) -- (0,5) node[above] {textcolor{black}{$f(x)$}};
@Plot
draw [red, thick, domain=-1.2:2.5, samples=100] plot(x, {((x)+1});
draw [blue, thick, domain=-0.7:2, samples=100] plot(x, {(3-2*(x)});
@LoS and Labels
draw[gray, dashed] (2/3,0)--(2/3,5/3);
node[circle,fill=black,inner sep=0pt,minimum size=3pt,label=below:{$frac{3}{2}$}] (a) at (2/3,0) {};
node[circle,color=black, fill=white, inner sep=0pt,minimum size=5pt,label=below right:{}] (b) at (2/3,5/3) {};
end{tikzpicture}
end{document}
and I want to get a node in the middle of the intersecting line which is a white circle with a black border (a bubble which shows the point is excluded). How can I do this?
tikz-pgf
tikz-pgf
edited Dec 7 '15 at 23:51
cfr
155k7180376
155k7180376
asked Dec 7 '15 at 23:17
Luke Collins
7171718
7171718
1
if you want a black border on your last node usedraw=black
(I'm not sure I understand the question completely)
– domenico camasta
Dec 7 '15 at 23:29
Please don't useminimal
for examples - it is not suitable.
– cfr
Dec 7 '15 at 23:51
Like Domenico said, use the commanddraw
(specifyingblack
in this case is unnecessary), and remove the optioncolor=black
.
– Alenanno
Dec 7 '15 at 23:54
(La)TeX uses%
to start a comment... The@...
lines in your code are not comments.
– Paul Gaborit
Dec 8 '15 at 10:29
add a comment |
1
if you want a black border on your last node usedraw=black
(I'm not sure I understand the question completely)
– domenico camasta
Dec 7 '15 at 23:29
Please don't useminimal
for examples - it is not suitable.
– cfr
Dec 7 '15 at 23:51
Like Domenico said, use the commanddraw
(specifyingblack
in this case is unnecessary), and remove the optioncolor=black
.
– Alenanno
Dec 7 '15 at 23:54
(La)TeX uses%
to start a comment... The@...
lines in your code are not comments.
– Paul Gaborit
Dec 8 '15 at 10:29
1
1
if you want a black border on your last node use
draw=black
(I'm not sure I understand the question completely)– domenico camasta
Dec 7 '15 at 23:29
if you want a black border on your last node use
draw=black
(I'm not sure I understand the question completely)– domenico camasta
Dec 7 '15 at 23:29
Please don't use
minimal
for examples - it is not suitable.– cfr
Dec 7 '15 at 23:51
Please don't use
minimal
for examples - it is not suitable.– cfr
Dec 7 '15 at 23:51
Like Domenico said, use the command
draw
(specifying black
in this case is unnecessary), and remove the option color=black
.– Alenanno
Dec 7 '15 at 23:54
Like Domenico said, use the command
draw
(specifying black
in this case is unnecessary), and remove the option color=black
.– Alenanno
Dec 7 '15 at 23:54
(La)TeX uses
%
to start a comment... The @...
lines in your code are not comments.– Paul Gaborit
Dec 8 '15 at 10:29
(La)TeX uses
%
to start a comment... The @...
lines in your code are not comments.– Paul Gaborit
Dec 8 '15 at 10:29
add a comment |
1 Answer
1
active
oldest
votes
up vote
7
down vote
accepted
Do you just want this?
documentclass[tikz,border=10pt]{standalone}
begin{document}
begin{tikzpicture}[xscale=2]
draw (0.05,-0.2) node[left, text=gray]{O};
draw [thick, draw=gray, ->] (-1.5,0) -- (3,0) node[right, black] {$x$};
draw [thick, draw=gray, ->] (0,-1.5) -- (0,5) node[above, black] {$f(x)$};
draw [red, thick, domain=-1.2:2.5, samples=100] plot(x, {((x)+1});
draw [blue, thick, domain=-0.7:2, samples=100] plot(x, {(3-2*(x)});
draw[gray, dashed] (2/3,0)--(2/3,5/3);
node[circle,fill=black,inner sep=0pt,minimum size=3pt,label=below:{$frac{3}{2}$}] (a) at (2/3,0) {};
node[circle,draw=black, fill=white, inner sep=0pt,minimum size=5pt] (b) at (2/3,5/3) {};
end{tikzpicture}
end{document}
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
7
down vote
accepted
Do you just want this?
documentclass[tikz,border=10pt]{standalone}
begin{document}
begin{tikzpicture}[xscale=2]
draw (0.05,-0.2) node[left, text=gray]{O};
draw [thick, draw=gray, ->] (-1.5,0) -- (3,0) node[right, black] {$x$};
draw [thick, draw=gray, ->] (0,-1.5) -- (0,5) node[above, black] {$f(x)$};
draw [red, thick, domain=-1.2:2.5, samples=100] plot(x, {((x)+1});
draw [blue, thick, domain=-0.7:2, samples=100] plot(x, {(3-2*(x)});
draw[gray, dashed] (2/3,0)--(2/3,5/3);
node[circle,fill=black,inner sep=0pt,minimum size=3pt,label=below:{$frac{3}{2}$}] (a) at (2/3,0) {};
node[circle,draw=black, fill=white, inner sep=0pt,minimum size=5pt] (b) at (2/3,5/3) {};
end{tikzpicture}
end{document}
add a comment |
up vote
7
down vote
accepted
Do you just want this?
documentclass[tikz,border=10pt]{standalone}
begin{document}
begin{tikzpicture}[xscale=2]
draw (0.05,-0.2) node[left, text=gray]{O};
draw [thick, draw=gray, ->] (-1.5,0) -- (3,0) node[right, black] {$x$};
draw [thick, draw=gray, ->] (0,-1.5) -- (0,5) node[above, black] {$f(x)$};
draw [red, thick, domain=-1.2:2.5, samples=100] plot(x, {((x)+1});
draw [blue, thick, domain=-0.7:2, samples=100] plot(x, {(3-2*(x)});
draw[gray, dashed] (2/3,0)--(2/3,5/3);
node[circle,fill=black,inner sep=0pt,minimum size=3pt,label=below:{$frac{3}{2}$}] (a) at (2/3,0) {};
node[circle,draw=black, fill=white, inner sep=0pt,minimum size=5pt] (b) at (2/3,5/3) {};
end{tikzpicture}
end{document}
add a comment |
up vote
7
down vote
accepted
up vote
7
down vote
accepted
Do you just want this?
documentclass[tikz,border=10pt]{standalone}
begin{document}
begin{tikzpicture}[xscale=2]
draw (0.05,-0.2) node[left, text=gray]{O};
draw [thick, draw=gray, ->] (-1.5,0) -- (3,0) node[right, black] {$x$};
draw [thick, draw=gray, ->] (0,-1.5) -- (0,5) node[above, black] {$f(x)$};
draw [red, thick, domain=-1.2:2.5, samples=100] plot(x, {((x)+1});
draw [blue, thick, domain=-0.7:2, samples=100] plot(x, {(3-2*(x)});
draw[gray, dashed] (2/3,0)--(2/3,5/3);
node[circle,fill=black,inner sep=0pt,minimum size=3pt,label=below:{$frac{3}{2}$}] (a) at (2/3,0) {};
node[circle,draw=black, fill=white, inner sep=0pt,minimum size=5pt] (b) at (2/3,5/3) {};
end{tikzpicture}
end{document}
Do you just want this?
documentclass[tikz,border=10pt]{standalone}
begin{document}
begin{tikzpicture}[xscale=2]
draw (0.05,-0.2) node[left, text=gray]{O};
draw [thick, draw=gray, ->] (-1.5,0) -- (3,0) node[right, black] {$x$};
draw [thick, draw=gray, ->] (0,-1.5) -- (0,5) node[above, black] {$f(x)$};
draw [red, thick, domain=-1.2:2.5, samples=100] plot(x, {((x)+1});
draw [blue, thick, domain=-0.7:2, samples=100] plot(x, {(3-2*(x)});
draw[gray, dashed] (2/3,0)--(2/3,5/3);
node[circle,fill=black,inner sep=0pt,minimum size=3pt,label=below:{$frac{3}{2}$}] (a) at (2/3,0) {};
node[circle,draw=black, fill=white, inner sep=0pt,minimum size=5pt] (b) at (2/3,5/3) {};
end{tikzpicture}
end{document}
answered Dec 7 '15 at 23:50
cfr
155k7180376
155k7180376
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
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%2f282044%2fhow-to-fill-a-circle-node%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');
});
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');
});
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');
});
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
1
if you want a black border on your last node use
draw=black
(I'm not sure I understand the question completely)– domenico camasta
Dec 7 '15 at 23:29
Please don't use
minimal
for examples - it is not suitable.– cfr
Dec 7 '15 at 23:51
Like Domenico said, use the command
draw
(specifyingblack
in this case is unnecessary), and remove the optioncolor=black
.– Alenanno
Dec 7 '15 at 23:54
(La)TeX uses
%
to start a comment... The@...
lines in your code are not comments.– Paul Gaborit
Dec 8 '15 at 10:29