How to color a zone in TikzHow does one draw a cylindrical shell in TikZ?How to draw a diagonal rectangle...

Stereotypical names

In Star Trek IV, why did the Bounty go back to a time when whales were already rare?

My boss asked me to take a one-day class, then signs it up as a day off

The most efficient algorithm to find all possible integer pairs which sum to a given integer

Was the picture area of a CRT a parallelogram (instead of a true rectangle)?

Why are all the doors on Ferenginar (the Ferengi home world) far shorter than the average Ferengi?

Did US corporations pay demonstrators in the German demonstrations against article 13?

Invariance of results when scaling explanatory variables in logistic regression, is there a proof?

Is exact Kanji stroke length important?

Can a malicious addon access internet history and such in chrome/firefox?

How do ultrasonic sensors differentiate between transmitted and received signals?

Can the harmonic series explain the origin of the major scale?

Giant Toughroad SLR 2 for 200 miles in two days, will it make it?

Is there an wasy way to program in Tikz something like the one in the image?

Have I saved too much for retirement so far?

Proof of Lemma: Every integer can be written as a product of primes

Hostile work environment after whistle-blowing on coworker and our boss. What do I do?

Is there a problem with hiding "forgot password" until it's needed?

A workplace installs custom certificates on personal devices, can this be used to decrypt HTTPS traffic?

Science Fiction story where a man invents a machine that can help him watch history unfold

What is the opposite of 'gravitas'?

What do you call the infoboxes with text and sometimes images on the side of a page we find in textbooks?

Do all polymers contain either carbon or silicon?

How can I successfully establish a nationwide combat training program for a large country?



How to color a zone in Tikz


How does one draw a cylindrical shell in TikZ?How to draw a diagonal rectangle with TikZ?how to draw automata with 4 statesHow to draw graph with TiKz?How to draw countour integration?How to draw two concentric simple closed curves using tikzHow draw this figure (spiral) in tikz?how to draw a sine wavesPlot curves and color space regions in LaTeXBox half filled color













3















I have this image: enter image description here



That is made with this code:



     documentclass{article}
usepackage{tikz}
usepackage{amssymb,amsthm,amsmath}
usetikzlibrary{shapes,positioning,intersections,quotes}

begin{document}

begin{center}
begin{tikzpicture}
draw [rotate=270] (0,0) arc (180:0:1);
draw [rotate=270] (-2,0) arc (180:0:1);
draw (0,0) circle (2cm);
draw[dashed] (0,2.5) -- (0,-2.5);
draw[dashed](-2.5,0) -- (2.5,0);
draw (0,0) -- (-1.1547,1.9);
draw (0,0) -- (-1.01,2);
draw [rotate=120](0,0) -- (-1.1547,1.9);
draw [rotate=120](0,0) -- (-1.01,2);
filldraw[black] (1.2,0) circle (0pt)
node[anchor=west] {$S_0$};
filldraw[black] (-1.2,0) circle (0pt)
node[anchor=west] {$S_3$};
filldraw[black] (0,1.2) circle (0pt)
node[anchor=west] {$S_1$};
filldraw[black] (0,-1.2) circle (0pt)
node[anchor=west] {$S_2$};

filldraw[black] (-1,2.1) circle (0pt)
node[anchor=west] {tiny{$R_1$}};
end{tikzpicture}
end{center}




end{document}


And I want to know if there is a way to color in gray the zone that is between the 2 lines (in both zones). Any ideas? Thanks.










share|improve this question



























    3















    I have this image: enter image description here



    That is made with this code:



         documentclass{article}
    usepackage{tikz}
    usepackage{amssymb,amsthm,amsmath}
    usetikzlibrary{shapes,positioning,intersections,quotes}

    begin{document}

    begin{center}
    begin{tikzpicture}
    draw [rotate=270] (0,0) arc (180:0:1);
    draw [rotate=270] (-2,0) arc (180:0:1);
    draw (0,0) circle (2cm);
    draw[dashed] (0,2.5) -- (0,-2.5);
    draw[dashed](-2.5,0) -- (2.5,0);
    draw (0,0) -- (-1.1547,1.9);
    draw (0,0) -- (-1.01,2);
    draw [rotate=120](0,0) -- (-1.1547,1.9);
    draw [rotate=120](0,0) -- (-1.01,2);
    filldraw[black] (1.2,0) circle (0pt)
    node[anchor=west] {$S_0$};
    filldraw[black] (-1.2,0) circle (0pt)
    node[anchor=west] {$S_3$};
    filldraw[black] (0,1.2) circle (0pt)
    node[anchor=west] {$S_1$};
    filldraw[black] (0,-1.2) circle (0pt)
    node[anchor=west] {$S_2$};

    filldraw[black] (-1,2.1) circle (0pt)
    node[anchor=west] {tiny{$R_1$}};
    end{tikzpicture}
    end{center}




    end{document}


    And I want to know if there is a way to color in gray the zone that is between the 2 lines (in both zones). Any ideas? Thanks.










    share|improve this question

























      3












      3








      3








      I have this image: enter image description here



      That is made with this code:



           documentclass{article}
      usepackage{tikz}
      usepackage{amssymb,amsthm,amsmath}
      usetikzlibrary{shapes,positioning,intersections,quotes}

      begin{document}

      begin{center}
      begin{tikzpicture}
      draw [rotate=270] (0,0) arc (180:0:1);
      draw [rotate=270] (-2,0) arc (180:0:1);
      draw (0,0) circle (2cm);
      draw[dashed] (0,2.5) -- (0,-2.5);
      draw[dashed](-2.5,0) -- (2.5,0);
      draw (0,0) -- (-1.1547,1.9);
      draw (0,0) -- (-1.01,2);
      draw [rotate=120](0,0) -- (-1.1547,1.9);
      draw [rotate=120](0,0) -- (-1.01,2);
      filldraw[black] (1.2,0) circle (0pt)
      node[anchor=west] {$S_0$};
      filldraw[black] (-1.2,0) circle (0pt)
      node[anchor=west] {$S_3$};
      filldraw[black] (0,1.2) circle (0pt)
      node[anchor=west] {$S_1$};
      filldraw[black] (0,-1.2) circle (0pt)
      node[anchor=west] {$S_2$};

      filldraw[black] (-1,2.1) circle (0pt)
      node[anchor=west] {tiny{$R_1$}};
      end{tikzpicture}
      end{center}




      end{document}


      And I want to know if there is a way to color in gray the zone that is between the 2 lines (in both zones). Any ideas? Thanks.










      share|improve this question














      I have this image: enter image description here



      That is made with this code:



           documentclass{article}
      usepackage{tikz}
      usepackage{amssymb,amsthm,amsmath}
      usetikzlibrary{shapes,positioning,intersections,quotes}

      begin{document}

      begin{center}
      begin{tikzpicture}
      draw [rotate=270] (0,0) arc (180:0:1);
      draw [rotate=270] (-2,0) arc (180:0:1);
      draw (0,0) circle (2cm);
      draw[dashed] (0,2.5) -- (0,-2.5);
      draw[dashed](-2.5,0) -- (2.5,0);
      draw (0,0) -- (-1.1547,1.9);
      draw (0,0) -- (-1.01,2);
      draw [rotate=120](0,0) -- (-1.1547,1.9);
      draw [rotate=120](0,0) -- (-1.01,2);
      filldraw[black] (1.2,0) circle (0pt)
      node[anchor=west] {$S_0$};
      filldraw[black] (-1.2,0) circle (0pt)
      node[anchor=west] {$S_3$};
      filldraw[black] (0,1.2) circle (0pt)
      node[anchor=west] {$S_1$};
      filldraw[black] (0,-1.2) circle (0pt)
      node[anchor=west] {$S_2$};

      filldraw[black] (-1,2.1) circle (0pt)
      node[anchor=west] {tiny{$R_1$}};
      end{tikzpicture}
      end{center}




      end{document}


      And I want to know if there is a way to color in gray the zone that is between the 2 lines (in both zones). Any ideas? Thanks.







      draw






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 1 hour ago









      J.RodriguezJ.Rodriguez

      715




      715






















          1 Answer
          1






          active

          oldest

          votes


















          4














          Sure. (But why do you not use polar coordinates?)



          documentclass{article}
          usepackage{tikz}
          begin{document}
          section*{Two methods that do not require libraries}
          subsection*{Method 1: clip}
          begin{center}
          begin{tikzpicture}
          draw [rotate=270] (0,0) arc (180:0:1);
          draw [rotate=270] (-2,0) arc (180:0:1);
          draw (0,0) circle (2cm);
          draw[dashed] (0,2.5) -- (0,-2.5);
          draw[dashed](-2.5,0) -- (2.5,0);
          draw (0,0) -- (-1.1547,1.9);
          draw (0,0) -- (-1.01,2);
          draw [rotate=120](0,0) -- (-1.1547,1.9);
          draw [rotate=120](0,0) -- (-1.01,2);
          path (1.2,0) node[anchor=west] {$S_0$};
          path (-1.2,0) node[anchor=west] {$S_3$};
          path (0,1.2) node[anchor=west] {$S_1$};
          path (0,-1.2) node[anchor=west] {$S_2$};
          path (-1,2.1) node[anchor=west] {tiny{$R_1$}};
          clip (0,0) circle[radius=2cm-pgflinewidth/2];
          draw[fill=gray] (0,0) -- (-1.01,2) -- (-1.1547,1.9);
          draw[fill=gray,rotate=120] (0,0) -- (-1.01,2) -- (-1.1547,1.9);
          end{tikzpicture}
          end{center}
          subsection*{Method 2: compute the polar coordinates of the points and use them}
          begin{center}
          begin{tikzpicture}
          draw [rotate=270] (0,0) arc (180:0:1);
          draw [rotate=270] (-2,0) arc (180:0:1);
          draw (0,0) circle (2cm);
          draw[dashed] (0,2.5) -- (0,-2.5);
          draw[dashed](-2.5,0) -- (2.5,0);
          draw (0,0) -- (-1.1547,1.9);
          draw (0,0) -- (-1.01,2);
          pgfmathsetmacro{myangleOne}{atan2(1.9,-1.1547)}
          %pgfmathsetmacro{myradius}{veclen(1.9,-1.1547)}
          pgfmathsetmacro{myangleTwo}{atan2(2,-1.01)}
          draw[fill=gray] (0,0) -- (myangleOne:2) arc(myangleOne:myangleTwo:2)
          --cycle;
          %typeout{myangleOne,myangleTwo}
          draw [rotate=120](0,0) -- (-1.1547,1.9);
          draw [rotate=120](0,0) -- (-1.01,2);
          draw[fill=gray,rotate=120] (0,0) -- (myangleOne:2) arc(myangleOne:myangleTwo:2)
          --cycle;
          path (1.2,0) node[anchor=west] {$S_0$};
          path (-1.2,0) node[anchor=west] {$S_3$};
          path (0,1.2) node[anchor=west] {$S_1$};
          path (0,-1.2) node[anchor=west] {$S_2$};
          path (-1,2.1) node[anchor=west] {tiny{$R_1$}};
          end{tikzpicture}
          end{center}
          end{document}


          enter image description here






          share|improve this answer


























          • Wow, thanks, actually I don't use the polar plots becouse I am just learning to use Tikz. But I will look for it.

            – J.Rodriguez
            1 hour ago











          • @J.Rodriguez In this situation they may be very useful. Anyway, I added a second method (clip) in case you do not want to use them.

            – marmot
            1 hour ago











          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%2f481454%2fhow-to-color-a-zone-in-tikz%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














          Sure. (But why do you not use polar coordinates?)



          documentclass{article}
          usepackage{tikz}
          begin{document}
          section*{Two methods that do not require libraries}
          subsection*{Method 1: clip}
          begin{center}
          begin{tikzpicture}
          draw [rotate=270] (0,0) arc (180:0:1);
          draw [rotate=270] (-2,0) arc (180:0:1);
          draw (0,0) circle (2cm);
          draw[dashed] (0,2.5) -- (0,-2.5);
          draw[dashed](-2.5,0) -- (2.5,0);
          draw (0,0) -- (-1.1547,1.9);
          draw (0,0) -- (-1.01,2);
          draw [rotate=120](0,0) -- (-1.1547,1.9);
          draw [rotate=120](0,0) -- (-1.01,2);
          path (1.2,0) node[anchor=west] {$S_0$};
          path (-1.2,0) node[anchor=west] {$S_3$};
          path (0,1.2) node[anchor=west] {$S_1$};
          path (0,-1.2) node[anchor=west] {$S_2$};
          path (-1,2.1) node[anchor=west] {tiny{$R_1$}};
          clip (0,0) circle[radius=2cm-pgflinewidth/2];
          draw[fill=gray] (0,0) -- (-1.01,2) -- (-1.1547,1.9);
          draw[fill=gray,rotate=120] (0,0) -- (-1.01,2) -- (-1.1547,1.9);
          end{tikzpicture}
          end{center}
          subsection*{Method 2: compute the polar coordinates of the points and use them}
          begin{center}
          begin{tikzpicture}
          draw [rotate=270] (0,0) arc (180:0:1);
          draw [rotate=270] (-2,0) arc (180:0:1);
          draw (0,0) circle (2cm);
          draw[dashed] (0,2.5) -- (0,-2.5);
          draw[dashed](-2.5,0) -- (2.5,0);
          draw (0,0) -- (-1.1547,1.9);
          draw (0,0) -- (-1.01,2);
          pgfmathsetmacro{myangleOne}{atan2(1.9,-1.1547)}
          %pgfmathsetmacro{myradius}{veclen(1.9,-1.1547)}
          pgfmathsetmacro{myangleTwo}{atan2(2,-1.01)}
          draw[fill=gray] (0,0) -- (myangleOne:2) arc(myangleOne:myangleTwo:2)
          --cycle;
          %typeout{myangleOne,myangleTwo}
          draw [rotate=120](0,0) -- (-1.1547,1.9);
          draw [rotate=120](0,0) -- (-1.01,2);
          draw[fill=gray,rotate=120] (0,0) -- (myangleOne:2) arc(myangleOne:myangleTwo:2)
          --cycle;
          path (1.2,0) node[anchor=west] {$S_0$};
          path (-1.2,0) node[anchor=west] {$S_3$};
          path (0,1.2) node[anchor=west] {$S_1$};
          path (0,-1.2) node[anchor=west] {$S_2$};
          path (-1,2.1) node[anchor=west] {tiny{$R_1$}};
          end{tikzpicture}
          end{center}
          end{document}


          enter image description here






          share|improve this answer


























          • Wow, thanks, actually I don't use the polar plots becouse I am just learning to use Tikz. But I will look for it.

            – J.Rodriguez
            1 hour ago











          • @J.Rodriguez In this situation they may be very useful. Anyway, I added a second method (clip) in case you do not want to use them.

            – marmot
            1 hour ago
















          4














          Sure. (But why do you not use polar coordinates?)



          documentclass{article}
          usepackage{tikz}
          begin{document}
          section*{Two methods that do not require libraries}
          subsection*{Method 1: clip}
          begin{center}
          begin{tikzpicture}
          draw [rotate=270] (0,0) arc (180:0:1);
          draw [rotate=270] (-2,0) arc (180:0:1);
          draw (0,0) circle (2cm);
          draw[dashed] (0,2.5) -- (0,-2.5);
          draw[dashed](-2.5,0) -- (2.5,0);
          draw (0,0) -- (-1.1547,1.9);
          draw (0,0) -- (-1.01,2);
          draw [rotate=120](0,0) -- (-1.1547,1.9);
          draw [rotate=120](0,0) -- (-1.01,2);
          path (1.2,0) node[anchor=west] {$S_0$};
          path (-1.2,0) node[anchor=west] {$S_3$};
          path (0,1.2) node[anchor=west] {$S_1$};
          path (0,-1.2) node[anchor=west] {$S_2$};
          path (-1,2.1) node[anchor=west] {tiny{$R_1$}};
          clip (0,0) circle[radius=2cm-pgflinewidth/2];
          draw[fill=gray] (0,0) -- (-1.01,2) -- (-1.1547,1.9);
          draw[fill=gray,rotate=120] (0,0) -- (-1.01,2) -- (-1.1547,1.9);
          end{tikzpicture}
          end{center}
          subsection*{Method 2: compute the polar coordinates of the points and use them}
          begin{center}
          begin{tikzpicture}
          draw [rotate=270] (0,0) arc (180:0:1);
          draw [rotate=270] (-2,0) arc (180:0:1);
          draw (0,0) circle (2cm);
          draw[dashed] (0,2.5) -- (0,-2.5);
          draw[dashed](-2.5,0) -- (2.5,0);
          draw (0,0) -- (-1.1547,1.9);
          draw (0,0) -- (-1.01,2);
          pgfmathsetmacro{myangleOne}{atan2(1.9,-1.1547)}
          %pgfmathsetmacro{myradius}{veclen(1.9,-1.1547)}
          pgfmathsetmacro{myangleTwo}{atan2(2,-1.01)}
          draw[fill=gray] (0,0) -- (myangleOne:2) arc(myangleOne:myangleTwo:2)
          --cycle;
          %typeout{myangleOne,myangleTwo}
          draw [rotate=120](0,0) -- (-1.1547,1.9);
          draw [rotate=120](0,0) -- (-1.01,2);
          draw[fill=gray,rotate=120] (0,0) -- (myangleOne:2) arc(myangleOne:myangleTwo:2)
          --cycle;
          path (1.2,0) node[anchor=west] {$S_0$};
          path (-1.2,0) node[anchor=west] {$S_3$};
          path (0,1.2) node[anchor=west] {$S_1$};
          path (0,-1.2) node[anchor=west] {$S_2$};
          path (-1,2.1) node[anchor=west] {tiny{$R_1$}};
          end{tikzpicture}
          end{center}
          end{document}


          enter image description here






          share|improve this answer


























          • Wow, thanks, actually I don't use the polar plots becouse I am just learning to use Tikz. But I will look for it.

            – J.Rodriguez
            1 hour ago











          • @J.Rodriguez In this situation they may be very useful. Anyway, I added a second method (clip) in case you do not want to use them.

            – marmot
            1 hour ago














          4












          4








          4







          Sure. (But why do you not use polar coordinates?)



          documentclass{article}
          usepackage{tikz}
          begin{document}
          section*{Two methods that do not require libraries}
          subsection*{Method 1: clip}
          begin{center}
          begin{tikzpicture}
          draw [rotate=270] (0,0) arc (180:0:1);
          draw [rotate=270] (-2,0) arc (180:0:1);
          draw (0,0) circle (2cm);
          draw[dashed] (0,2.5) -- (0,-2.5);
          draw[dashed](-2.5,0) -- (2.5,0);
          draw (0,0) -- (-1.1547,1.9);
          draw (0,0) -- (-1.01,2);
          draw [rotate=120](0,0) -- (-1.1547,1.9);
          draw [rotate=120](0,0) -- (-1.01,2);
          path (1.2,0) node[anchor=west] {$S_0$};
          path (-1.2,0) node[anchor=west] {$S_3$};
          path (0,1.2) node[anchor=west] {$S_1$};
          path (0,-1.2) node[anchor=west] {$S_2$};
          path (-1,2.1) node[anchor=west] {tiny{$R_1$}};
          clip (0,0) circle[radius=2cm-pgflinewidth/2];
          draw[fill=gray] (0,0) -- (-1.01,2) -- (-1.1547,1.9);
          draw[fill=gray,rotate=120] (0,0) -- (-1.01,2) -- (-1.1547,1.9);
          end{tikzpicture}
          end{center}
          subsection*{Method 2: compute the polar coordinates of the points and use them}
          begin{center}
          begin{tikzpicture}
          draw [rotate=270] (0,0) arc (180:0:1);
          draw [rotate=270] (-2,0) arc (180:0:1);
          draw (0,0) circle (2cm);
          draw[dashed] (0,2.5) -- (0,-2.5);
          draw[dashed](-2.5,0) -- (2.5,0);
          draw (0,0) -- (-1.1547,1.9);
          draw (0,0) -- (-1.01,2);
          pgfmathsetmacro{myangleOne}{atan2(1.9,-1.1547)}
          %pgfmathsetmacro{myradius}{veclen(1.9,-1.1547)}
          pgfmathsetmacro{myangleTwo}{atan2(2,-1.01)}
          draw[fill=gray] (0,0) -- (myangleOne:2) arc(myangleOne:myangleTwo:2)
          --cycle;
          %typeout{myangleOne,myangleTwo}
          draw [rotate=120](0,0) -- (-1.1547,1.9);
          draw [rotate=120](0,0) -- (-1.01,2);
          draw[fill=gray,rotate=120] (0,0) -- (myangleOne:2) arc(myangleOne:myangleTwo:2)
          --cycle;
          path (1.2,0) node[anchor=west] {$S_0$};
          path (-1.2,0) node[anchor=west] {$S_3$};
          path (0,1.2) node[anchor=west] {$S_1$};
          path (0,-1.2) node[anchor=west] {$S_2$};
          path (-1,2.1) node[anchor=west] {tiny{$R_1$}};
          end{tikzpicture}
          end{center}
          end{document}


          enter image description here






          share|improve this answer















          Sure. (But why do you not use polar coordinates?)



          documentclass{article}
          usepackage{tikz}
          begin{document}
          section*{Two methods that do not require libraries}
          subsection*{Method 1: clip}
          begin{center}
          begin{tikzpicture}
          draw [rotate=270] (0,0) arc (180:0:1);
          draw [rotate=270] (-2,0) arc (180:0:1);
          draw (0,0) circle (2cm);
          draw[dashed] (0,2.5) -- (0,-2.5);
          draw[dashed](-2.5,0) -- (2.5,0);
          draw (0,0) -- (-1.1547,1.9);
          draw (0,0) -- (-1.01,2);
          draw [rotate=120](0,0) -- (-1.1547,1.9);
          draw [rotate=120](0,0) -- (-1.01,2);
          path (1.2,0) node[anchor=west] {$S_0$};
          path (-1.2,0) node[anchor=west] {$S_3$};
          path (0,1.2) node[anchor=west] {$S_1$};
          path (0,-1.2) node[anchor=west] {$S_2$};
          path (-1,2.1) node[anchor=west] {tiny{$R_1$}};
          clip (0,0) circle[radius=2cm-pgflinewidth/2];
          draw[fill=gray] (0,0) -- (-1.01,2) -- (-1.1547,1.9);
          draw[fill=gray,rotate=120] (0,0) -- (-1.01,2) -- (-1.1547,1.9);
          end{tikzpicture}
          end{center}
          subsection*{Method 2: compute the polar coordinates of the points and use them}
          begin{center}
          begin{tikzpicture}
          draw [rotate=270] (0,0) arc (180:0:1);
          draw [rotate=270] (-2,0) arc (180:0:1);
          draw (0,0) circle (2cm);
          draw[dashed] (0,2.5) -- (0,-2.5);
          draw[dashed](-2.5,0) -- (2.5,0);
          draw (0,0) -- (-1.1547,1.9);
          draw (0,0) -- (-1.01,2);
          pgfmathsetmacro{myangleOne}{atan2(1.9,-1.1547)}
          %pgfmathsetmacro{myradius}{veclen(1.9,-1.1547)}
          pgfmathsetmacro{myangleTwo}{atan2(2,-1.01)}
          draw[fill=gray] (0,0) -- (myangleOne:2) arc(myangleOne:myangleTwo:2)
          --cycle;
          %typeout{myangleOne,myangleTwo}
          draw [rotate=120](0,0) -- (-1.1547,1.9);
          draw [rotate=120](0,0) -- (-1.01,2);
          draw[fill=gray,rotate=120] (0,0) -- (myangleOne:2) arc(myangleOne:myangleTwo:2)
          --cycle;
          path (1.2,0) node[anchor=west] {$S_0$};
          path (-1.2,0) node[anchor=west] {$S_3$};
          path (0,1.2) node[anchor=west] {$S_1$};
          path (0,-1.2) node[anchor=west] {$S_2$};
          path (-1,2.1) node[anchor=west] {tiny{$R_1$}};
          end{tikzpicture}
          end{center}
          end{document}


          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 1 hour ago

























          answered 1 hour ago









          marmotmarmot

          111k5140264




          111k5140264













          • Wow, thanks, actually I don't use the polar plots becouse I am just learning to use Tikz. But I will look for it.

            – J.Rodriguez
            1 hour ago











          • @J.Rodriguez In this situation they may be very useful. Anyway, I added a second method (clip) in case you do not want to use them.

            – marmot
            1 hour ago



















          • Wow, thanks, actually I don't use the polar plots becouse I am just learning to use Tikz. But I will look for it.

            – J.Rodriguez
            1 hour ago











          • @J.Rodriguez In this situation they may be very useful. Anyway, I added a second method (clip) in case you do not want to use them.

            – marmot
            1 hour ago

















          Wow, thanks, actually I don't use the polar plots becouse I am just learning to use Tikz. But I will look for it.

          – J.Rodriguez
          1 hour ago





          Wow, thanks, actually I don't use the polar plots becouse I am just learning to use Tikz. But I will look for it.

          – J.Rodriguez
          1 hour ago













          @J.Rodriguez In this situation they may be very useful. Anyway, I added a second method (clip) in case you do not want to use them.

          – marmot
          1 hour ago





          @J.Rodriguez In this situation they may be very useful. Anyway, I added a second method (clip) in case you do not want to use them.

          – marmot
          1 hour ago


















          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%2f481454%2fhow-to-color-a-zone-in-tikz%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

          Anexo:Material bélico de la Fuerza Aérea de Chile Índice Aeronaves Defensa...

          Always On Availability groups resolving state after failover - Remote harden of transaction...

          update json value to null Announcing the arrival of Valued Associate #679: Cesar Manara ...