Fill everything except a circle in the middle of the plot

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite
1












I need to make several Plots to show convergence. One of those needs to be opaque with a white circle in the middle where alpha is not allowed.



In the code you can see what i'm thinking about. The circle should be in the background though. Axis labels etc should be in the upper layer.



I have also tried to do it with fill between commands though i didn't get it to work.



MWE



documentclass[a4paper]scrartcl
usepackagetikz,pgfplots
usepgfplotslibraryfillbetween
usetikzlibraryintersections
usetikzlibrarybackgrounds
usepackagegraphicx
begindocument
begintikzpicture[background rectangle/.style=fill=gray!50, show background rectangle]
beginaxis[
width=1.3linewidth,
xmin=-2,
xmax=2,
ymin=-2,
ymax=2,
axis equal,
axis lines=middle,
xlabel=Re($z$),
ylabel=Im($z$),
disabledatascaling]
fill [white] (0,0) circle [radius=0.8];
endaxis
endtikzpicture
enddocument









share|improve this question







New contributor




Luc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.























    up vote
    1
    down vote

    favorite
    1












    I need to make several Plots to show convergence. One of those needs to be opaque with a white circle in the middle where alpha is not allowed.



    In the code you can see what i'm thinking about. The circle should be in the background though. Axis labels etc should be in the upper layer.



    I have also tried to do it with fill between commands though i didn't get it to work.



    MWE



    documentclass[a4paper]scrartcl
    usepackagetikz,pgfplots
    usepgfplotslibraryfillbetween
    usetikzlibraryintersections
    usetikzlibrarybackgrounds
    usepackagegraphicx
    begindocument
    begintikzpicture[background rectangle/.style=fill=gray!50, show background rectangle]
    beginaxis[
    width=1.3linewidth,
    xmin=-2,
    xmax=2,
    ymin=-2,
    ymax=2,
    axis equal,
    axis lines=middle,
    xlabel=Re($z$),
    ylabel=Im($z$),
    disabledatascaling]
    fill [white] (0,0) circle [radius=0.8];
    endaxis
    endtikzpicture
    enddocument









    share|improve this question







    New contributor




    Luc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      1
      down vote

      favorite
      1









      up vote
      1
      down vote

      favorite
      1






      1





      I need to make several Plots to show convergence. One of those needs to be opaque with a white circle in the middle where alpha is not allowed.



      In the code you can see what i'm thinking about. The circle should be in the background though. Axis labels etc should be in the upper layer.



      I have also tried to do it with fill between commands though i didn't get it to work.



      MWE



      documentclass[a4paper]scrartcl
      usepackagetikz,pgfplots
      usepgfplotslibraryfillbetween
      usetikzlibraryintersections
      usetikzlibrarybackgrounds
      usepackagegraphicx
      begindocument
      begintikzpicture[background rectangle/.style=fill=gray!50, show background rectangle]
      beginaxis[
      width=1.3linewidth,
      xmin=-2,
      xmax=2,
      ymin=-2,
      ymax=2,
      axis equal,
      axis lines=middle,
      xlabel=Re($z$),
      ylabel=Im($z$),
      disabledatascaling]
      fill [white] (0,0) circle [radius=0.8];
      endaxis
      endtikzpicture
      enddocument









      share|improve this question







      New contributor




      Luc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I need to make several Plots to show convergence. One of those needs to be opaque with a white circle in the middle where alpha is not allowed.



      In the code you can see what i'm thinking about. The circle should be in the background though. Axis labels etc should be in the upper layer.



      I have also tried to do it with fill between commands though i didn't get it to work.



      MWE



      documentclass[a4paper]scrartcl
      usepackagetikz,pgfplots
      usepgfplotslibraryfillbetween
      usetikzlibraryintersections
      usetikzlibrarybackgrounds
      usepackagegraphicx
      begindocument
      begintikzpicture[background rectangle/.style=fill=gray!50, show background rectangle]
      beginaxis[
      width=1.3linewidth,
      xmin=-2,
      xmax=2,
      ymin=-2,
      ymax=2,
      axis equal,
      axis lines=middle,
      xlabel=Re($z$),
      ylabel=Im($z$),
      disabledatascaling]
      fill [white] (0,0) circle [radius=0.8];
      endaxis
      endtikzpicture
      enddocument






      tikz-pgf backgrounds circles






      share|improve this question







      New contributor




      Luc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Luc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Luc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 2 hours ago









      Luc

      61




      61




      New contributor




      Luc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Luc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Luc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote













          you mean something like this?



          enter image description here



          above image is obtain with use of the option axis on top. in code is corrected the image width. now is not wide as width of text.



          documentclass[a4paper]scrartcl
          usepackagepgfplots
          pgfplotssetcompat=1.16
          usepgfplotslibraryfillbetween

          usetikzlibrarybackgrounds,
          intersections

          begindocument
          begintikzpicture[
          background rectangle/.style=fill=gray!50, show background rectangle]
          beginaxis[
          width=linewidth,
          xmin=-2,
          xmax= 2,
          ymin=-2,
          ymax= 2,
          axis equal,
          axis lines=middle,
          xlabel=Re($z$),
          ylabel=Im($z$),
          disabledatascaling,
          axis on top] % <---
          fill [white] (0,0) circle [radius=0.8];
          endaxis
          endtikzpicture
          enddocument





          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: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );






            Luc is a new contributor. Be nice, and check out our Code of Conduct.









             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f456089%2ffill-everything-except-a-circle-in-the-middle-of-the-plot%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote













            you mean something like this?



            enter image description here



            above image is obtain with use of the option axis on top. in code is corrected the image width. now is not wide as width of text.



            documentclass[a4paper]scrartcl
            usepackagepgfplots
            pgfplotssetcompat=1.16
            usepgfplotslibraryfillbetween

            usetikzlibrarybackgrounds,
            intersections

            begindocument
            begintikzpicture[
            background rectangle/.style=fill=gray!50, show background rectangle]
            beginaxis[
            width=linewidth,
            xmin=-2,
            xmax= 2,
            ymin=-2,
            ymax= 2,
            axis equal,
            axis lines=middle,
            xlabel=Re($z$),
            ylabel=Im($z$),
            disabledatascaling,
            axis on top] % <---
            fill [white] (0,0) circle [radius=0.8];
            endaxis
            endtikzpicture
            enddocument





            share|improve this answer
























              up vote
              2
              down vote













              you mean something like this?



              enter image description here



              above image is obtain with use of the option axis on top. in code is corrected the image width. now is not wide as width of text.



              documentclass[a4paper]scrartcl
              usepackagepgfplots
              pgfplotssetcompat=1.16
              usepgfplotslibraryfillbetween

              usetikzlibrarybackgrounds,
              intersections

              begindocument
              begintikzpicture[
              background rectangle/.style=fill=gray!50, show background rectangle]
              beginaxis[
              width=linewidth,
              xmin=-2,
              xmax= 2,
              ymin=-2,
              ymax= 2,
              axis equal,
              axis lines=middle,
              xlabel=Re($z$),
              ylabel=Im($z$),
              disabledatascaling,
              axis on top] % <---
              fill [white] (0,0) circle [radius=0.8];
              endaxis
              endtikzpicture
              enddocument





              share|improve this answer






















                up vote
                2
                down vote










                up vote
                2
                down vote









                you mean something like this?



                enter image description here



                above image is obtain with use of the option axis on top. in code is corrected the image width. now is not wide as width of text.



                documentclass[a4paper]scrartcl
                usepackagepgfplots
                pgfplotssetcompat=1.16
                usepgfplotslibraryfillbetween

                usetikzlibrarybackgrounds,
                intersections

                begindocument
                begintikzpicture[
                background rectangle/.style=fill=gray!50, show background rectangle]
                beginaxis[
                width=linewidth,
                xmin=-2,
                xmax= 2,
                ymin=-2,
                ymax= 2,
                axis equal,
                axis lines=middle,
                xlabel=Re($z$),
                ylabel=Im($z$),
                disabledatascaling,
                axis on top] % <---
                fill [white] (0,0) circle [radius=0.8];
                endaxis
                endtikzpicture
                enddocument





                share|improve this answer












                you mean something like this?



                enter image description here



                above image is obtain with use of the option axis on top. in code is corrected the image width. now is not wide as width of text.



                documentclass[a4paper]scrartcl
                usepackagepgfplots
                pgfplotssetcompat=1.16
                usepgfplotslibraryfillbetween

                usetikzlibrarybackgrounds,
                intersections

                begindocument
                begintikzpicture[
                background rectangle/.style=fill=gray!50, show background rectangle]
                beginaxis[
                width=linewidth,
                xmin=-2,
                xmax= 2,
                ymin=-2,
                ymax= 2,
                axis equal,
                axis lines=middle,
                xlabel=Re($z$),
                ylabel=Im($z$),
                disabledatascaling,
                axis on top] % <---
                fill [white] (0,0) circle [radius=0.8];
                endaxis
                endtikzpicture
                enddocument






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 38 mins ago









                Zarko

                115k863152




                115k863152




















                    Luc is a new contributor. Be nice, and check out our Code of Conduct.









                     

                    draft saved


                    draft discarded


















                    Luc is a new contributor. Be nice, and check out our Code of Conduct.












                    Luc is a new contributor. Be nice, and check out our Code of Conduct.











                    Luc is a new contributor. Be nice, and check out our Code of Conduct.













                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f456089%2ffill-everything-except-a-circle-in-the-middle-of-the-plot%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Comments

                    Popular posts from this blog

                    What does second last employer means? [closed]

                    List of Gilmore Girls characters

                    One-line joke