How to fill a circle node?











up vote
8
down vote

favorite
2












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?










share|improve this question




















  • 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 (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















up vote
8
down vote

favorite
2












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?










share|improve this question




















  • 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 (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













up vote
8
down vote

favorite
2









up vote
8
down vote

favorite
2






2





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?










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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 (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














  • 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 (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








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










1 Answer
1






active

oldest

votes

















up vote
7
down vote



accepted










Do you just want this?



bubble



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}





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',
    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%2f282044%2fhow-to-fill-a-circle-node%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








    up vote
    7
    down vote



    accepted










    Do you just want this?



    bubble



    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}





    share|improve this answer

























      up vote
      7
      down vote



      accepted










      Do you just want this?



      bubble



      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}





      share|improve this answer























        up vote
        7
        down vote



        accepted







        up vote
        7
        down vote



        accepted






        Do you just want this?



        bubble



        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}





        share|improve this answer












        Do you just want this?



        bubble



        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}






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 7 '15 at 23:50









        cfr

        155k7180376




        155k7180376






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            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





















































            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

            サソリ

            広島県道265号伴広島線

            Accessing regular linux commands in Huawei's Dopra Linux