Distributing circles along a circular path











up vote
6
down vote

favorite












In the left scope, how to automate evenly distributing the red circles along the third blue circle instead of manually drawing and shifting them; and making this third circle invisible (white).



In the right scope, how to gather the red circles around a certain point and control the distances between them to make the second and third drawings.



documentclass{beamer}
beamertemplatenavigationsymbolsempty
usepackage{tikz}
begin{document}
begin{frame}[t]
frametitle{bias}
begin{minipage}{textwidth}
{
tikzset{pics/.cd,cc/.style={code={draw [red, thin, fill=red] circle (0.248cm);}}}
begin{tikzpicture}[scale=.9, transform shape]
begin{scope}[scale=.4]
draw[black, thick, fill=black] (0,0)node (o){} circle (0.24cm);
draw[black, thick, dashdotted] ([shift={(-90.:5.4cm)}]o.center) -- ([shift={(90.:5.4cm)}]o.center) ([shift={(180.:5.4cm)}]o.center) -- ([shift={(0.:5.4cm)}]o.center);
foreach r in {1, 2,2.5,3,4,5} draw[blue, thick] (o.center) circle (r);
pic at ([shift={(-90.:2.4cm)}]o.center) {cc};
pic at ([shift={(90.:2.4cm)}]o.center) {cc};
pic at ([shift={(170.:2.48cm)}]o.center) {cc};
pic at ([shift={(10.:2.48cm)}]o.center) {cc};
pic at ([shift={(45.:2.48cm)}]o.center) {cc};
pic at ([shift={(-45.:2.48cm)}]o.center) {cc};
pic at ([shift={(135.:2.48cm)}]o.center) {cc};
pic at ([shift={(-135.:2.48cm)}]o.center) {cc};
end{scope}
begin{scope}[scale=.4, xshift=14cm]
draw[black, thick, fill=black] (0,0)node (o){} circle (0.24cm);
draw[black, thick, dashdotted] ([shift={(-90.:5.4cm)}]o.center) -- ([shift={(90.:5.4cm)}]o.center) ([shift={(180.:5.4cm)}]o.center) -- ([shift={(0.:5.4cm)}]o.center);
foreach r in {1, 2,...,5} draw[blue, thick] (o.center) circle (r);
pic at ([shift={(145.:2.48cm)}]o.center) {cc};
pic at ([shift={(156.:2.4cm)}]o.center) {cc};
pic at ([shift={(145.:3.cm)}]o.center) {cc};
pic at ([shift={(150.:3.6cm)}]o.center) {cc};
pic at ([shift={(159.:3.6cm)}]o.center) {cc};
pic at ([shift={(168.:2.48cm)}]o.center) {cc};
pic at ([shift={(168.:3.6cm)}]o.center) {cc};
pic at ([shift={(168.:3.06cm)}]o.center) {cc};
end{scope}
end{tikzpicture}
}
end{minipage}
end{frame}
end{document}


enter image description here



enter image description here










share|improve this question


























    up vote
    6
    down vote

    favorite












    In the left scope, how to automate evenly distributing the red circles along the third blue circle instead of manually drawing and shifting them; and making this third circle invisible (white).



    In the right scope, how to gather the red circles around a certain point and control the distances between them to make the second and third drawings.



    documentclass{beamer}
    beamertemplatenavigationsymbolsempty
    usepackage{tikz}
    begin{document}
    begin{frame}[t]
    frametitle{bias}
    begin{minipage}{textwidth}
    {
    tikzset{pics/.cd,cc/.style={code={draw [red, thin, fill=red] circle (0.248cm);}}}
    begin{tikzpicture}[scale=.9, transform shape]
    begin{scope}[scale=.4]
    draw[black, thick, fill=black] (0,0)node (o){} circle (0.24cm);
    draw[black, thick, dashdotted] ([shift={(-90.:5.4cm)}]o.center) -- ([shift={(90.:5.4cm)}]o.center) ([shift={(180.:5.4cm)}]o.center) -- ([shift={(0.:5.4cm)}]o.center);
    foreach r in {1, 2,2.5,3,4,5} draw[blue, thick] (o.center) circle (r);
    pic at ([shift={(-90.:2.4cm)}]o.center) {cc};
    pic at ([shift={(90.:2.4cm)}]o.center) {cc};
    pic at ([shift={(170.:2.48cm)}]o.center) {cc};
    pic at ([shift={(10.:2.48cm)}]o.center) {cc};
    pic at ([shift={(45.:2.48cm)}]o.center) {cc};
    pic at ([shift={(-45.:2.48cm)}]o.center) {cc};
    pic at ([shift={(135.:2.48cm)}]o.center) {cc};
    pic at ([shift={(-135.:2.48cm)}]o.center) {cc};
    end{scope}
    begin{scope}[scale=.4, xshift=14cm]
    draw[black, thick, fill=black] (0,0)node (o){} circle (0.24cm);
    draw[black, thick, dashdotted] ([shift={(-90.:5.4cm)}]o.center) -- ([shift={(90.:5.4cm)}]o.center) ([shift={(180.:5.4cm)}]o.center) -- ([shift={(0.:5.4cm)}]o.center);
    foreach r in {1, 2,...,5} draw[blue, thick] (o.center) circle (r);
    pic at ([shift={(145.:2.48cm)}]o.center) {cc};
    pic at ([shift={(156.:2.4cm)}]o.center) {cc};
    pic at ([shift={(145.:3.cm)}]o.center) {cc};
    pic at ([shift={(150.:3.6cm)}]o.center) {cc};
    pic at ([shift={(159.:3.6cm)}]o.center) {cc};
    pic at ([shift={(168.:2.48cm)}]o.center) {cc};
    pic at ([shift={(168.:3.6cm)}]o.center) {cc};
    pic at ([shift={(168.:3.06cm)}]o.center) {cc};
    end{scope}
    end{tikzpicture}
    }
    end{minipage}
    end{frame}
    end{document}


    enter image description here



    enter image description here










    share|improve this question
























      up vote
      6
      down vote

      favorite









      up vote
      6
      down vote

      favorite











      In the left scope, how to automate evenly distributing the red circles along the third blue circle instead of manually drawing and shifting them; and making this third circle invisible (white).



      In the right scope, how to gather the red circles around a certain point and control the distances between them to make the second and third drawings.



      documentclass{beamer}
      beamertemplatenavigationsymbolsempty
      usepackage{tikz}
      begin{document}
      begin{frame}[t]
      frametitle{bias}
      begin{minipage}{textwidth}
      {
      tikzset{pics/.cd,cc/.style={code={draw [red, thin, fill=red] circle (0.248cm);}}}
      begin{tikzpicture}[scale=.9, transform shape]
      begin{scope}[scale=.4]
      draw[black, thick, fill=black] (0,0)node (o){} circle (0.24cm);
      draw[black, thick, dashdotted] ([shift={(-90.:5.4cm)}]o.center) -- ([shift={(90.:5.4cm)}]o.center) ([shift={(180.:5.4cm)}]o.center) -- ([shift={(0.:5.4cm)}]o.center);
      foreach r in {1, 2,2.5,3,4,5} draw[blue, thick] (o.center) circle (r);
      pic at ([shift={(-90.:2.4cm)}]o.center) {cc};
      pic at ([shift={(90.:2.4cm)}]o.center) {cc};
      pic at ([shift={(170.:2.48cm)}]o.center) {cc};
      pic at ([shift={(10.:2.48cm)}]o.center) {cc};
      pic at ([shift={(45.:2.48cm)}]o.center) {cc};
      pic at ([shift={(-45.:2.48cm)}]o.center) {cc};
      pic at ([shift={(135.:2.48cm)}]o.center) {cc};
      pic at ([shift={(-135.:2.48cm)}]o.center) {cc};
      end{scope}
      begin{scope}[scale=.4, xshift=14cm]
      draw[black, thick, fill=black] (0,0)node (o){} circle (0.24cm);
      draw[black, thick, dashdotted] ([shift={(-90.:5.4cm)}]o.center) -- ([shift={(90.:5.4cm)}]o.center) ([shift={(180.:5.4cm)}]o.center) -- ([shift={(0.:5.4cm)}]o.center);
      foreach r in {1, 2,...,5} draw[blue, thick] (o.center) circle (r);
      pic at ([shift={(145.:2.48cm)}]o.center) {cc};
      pic at ([shift={(156.:2.4cm)}]o.center) {cc};
      pic at ([shift={(145.:3.cm)}]o.center) {cc};
      pic at ([shift={(150.:3.6cm)}]o.center) {cc};
      pic at ([shift={(159.:3.6cm)}]o.center) {cc};
      pic at ([shift={(168.:2.48cm)}]o.center) {cc};
      pic at ([shift={(168.:3.6cm)}]o.center) {cc};
      pic at ([shift={(168.:3.06cm)}]o.center) {cc};
      end{scope}
      end{tikzpicture}
      }
      end{minipage}
      end{frame}
      end{document}


      enter image description here



      enter image description here










      share|improve this question













      In the left scope, how to automate evenly distributing the red circles along the third blue circle instead of manually drawing and shifting them; and making this third circle invisible (white).



      In the right scope, how to gather the red circles around a certain point and control the distances between them to make the second and third drawings.



      documentclass{beamer}
      beamertemplatenavigationsymbolsempty
      usepackage{tikz}
      begin{document}
      begin{frame}[t]
      frametitle{bias}
      begin{minipage}{textwidth}
      {
      tikzset{pics/.cd,cc/.style={code={draw [red, thin, fill=red] circle (0.248cm);}}}
      begin{tikzpicture}[scale=.9, transform shape]
      begin{scope}[scale=.4]
      draw[black, thick, fill=black] (0,0)node (o){} circle (0.24cm);
      draw[black, thick, dashdotted] ([shift={(-90.:5.4cm)}]o.center) -- ([shift={(90.:5.4cm)}]o.center) ([shift={(180.:5.4cm)}]o.center) -- ([shift={(0.:5.4cm)}]o.center);
      foreach r in {1, 2,2.5,3,4,5} draw[blue, thick] (o.center) circle (r);
      pic at ([shift={(-90.:2.4cm)}]o.center) {cc};
      pic at ([shift={(90.:2.4cm)}]o.center) {cc};
      pic at ([shift={(170.:2.48cm)}]o.center) {cc};
      pic at ([shift={(10.:2.48cm)}]o.center) {cc};
      pic at ([shift={(45.:2.48cm)}]o.center) {cc};
      pic at ([shift={(-45.:2.48cm)}]o.center) {cc};
      pic at ([shift={(135.:2.48cm)}]o.center) {cc};
      pic at ([shift={(-135.:2.48cm)}]o.center) {cc};
      end{scope}
      begin{scope}[scale=.4, xshift=14cm]
      draw[black, thick, fill=black] (0,0)node (o){} circle (0.24cm);
      draw[black, thick, dashdotted] ([shift={(-90.:5.4cm)}]o.center) -- ([shift={(90.:5.4cm)}]o.center) ([shift={(180.:5.4cm)}]o.center) -- ([shift={(0.:5.4cm)}]o.center);
      foreach r in {1, 2,...,5} draw[blue, thick] (o.center) circle (r);
      pic at ([shift={(145.:2.48cm)}]o.center) {cc};
      pic at ([shift={(156.:2.4cm)}]o.center) {cc};
      pic at ([shift={(145.:3.cm)}]o.center) {cc};
      pic at ([shift={(150.:3.6cm)}]o.center) {cc};
      pic at ([shift={(159.:3.6cm)}]o.center) {cc};
      pic at ([shift={(168.:2.48cm)}]o.center) {cc};
      pic at ([shift={(168.:3.6cm)}]o.center) {cc};
      pic at ([shift={(168.:3.06cm)}]o.center) {cc};
      end{scope}
      end{tikzpicture}
      }
      end{minipage}
      end{frame}
      end{document}


      enter image description here



      enter image description here







      tikz-pgf






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 4 at 6:51









      Hany

      1,056415




      1,056415






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          5
          down vote



          accepted










          Is this what you are lookig for?



          enter image description here



          documentclass[border=3mm]{standalone}
          usepackage{tikz}
          begin{document}
          tikzset{pics/.cd,cc/.style={code={draw [black, thin, fill=red] circle (0.248cm);}}}
          begin{tikzpicture}[scale=.9, transform shape]
          begin{scope}[scale=.4]
          draw[black, thick, fill=black] (0,0)node (o){} circle (0.24cm);
          draw[black, thick, dashdotted] ([shift={(-90.:5.4cm)}]o.center) -- ([shift={(90.:5.4cm)}]o.center) ([shift={(180.:5.4cm)}]o.center) -- ([shift={(0.:5.4cm)}]o.center);
          foreach r in {1, 2,3,4,5} draw[blue, thick] (o.center) circle (r);
          foreach ang in {0,45,...,315}
          pic at (ang:2.5cm) {cc};
          end{scope}
          begin{scope}[scale=.4, xshift=14cm]
          draw[black, thick, fill=black] (0,0)node (o){} circle (0.24cm);
          draw[black, thick, dashdotted] ([shift={(-90.:5.4cm)}]o.center) -- ([shift={(90.:5.4cm)}]o.center) ([shift={(180.:5.4cm)}]o.center) -- ([shift={(0.:5.4cm)}]o.center);
          foreach r in {1, 2,...,5} draw[blue, thick] (o.center) circle (r);
          defdist{0.7}
          coordinate (p) at (240:3cm);
          foreach ang in {0,45,...,315}
          pic at ([shift={(ang:dist)}]p) {cc};
          end{scope}
          end{tikzpicture}
          end{document}





          share|improve this answer





















          • Yes this is what I was looking for. Thank you very much.
            – Hany
            Dec 4 at 12:00


















          up vote
          7
          down vote













          A PSTricks solution only for comparison purposes.



          One



          documentclass[pstricks,border=12pt]{standalone}
          pstVerb{realtime srand}
          begin{document}
          begin{pspicture}(-6,-6)(6,6)
          qdisk(0,0){5pt}
          foreach i in {1,...,6}{pscircle[linecolor=blue]{i}}
          foreach i in {0,1,...,7}{pscircle[fillstyle=solid,fillcolor=red,origin={!3 45 ispace mul PtoC}]{5pt}}
          psset{linestyle=dashed}
          psline(0,-6)(0,6)
          psline(-6,0)(6,0)
          end{pspicture}
          end{document}


          enter image description here



          Two



          documentclass[pstricks,border=12pt]{standalone}
          pstVerb{realtime srand}
          begin{document}
          begin{pspicture}(-6,-6)(6,6)
          qdisk(0,0){5pt}
          foreach i in {1,...,6}{pscircle[linecolor=blue]{i}}
          psLoop{8}{pscircle[fillstyle=solid,fillcolor=red,origin={-3,-2}](!Rand .5 mul Rand 360 mul PtoC){5pt}}
          psset{linestyle=dashed}
          psline(0,-6)(0,6)
          psline(-6,0)(6,0)
          end{pspicture}
          end{document}


          enter image description here



          Three



          documentclass[pstricks,border=12pt]{standalone}
          pstVerb{realtime srand}
          begin{document}
          begin{pspicture}(-6,-6)(6,6)
          qdisk(0,0){5pt}
          foreach i in {1,...,6}{pscircle[linecolor=blue]{i}}
          foreach i in {0,1,...,7}{pscircle[fillstyle=solid,fillcolor=red,origin={3;225}](!.5 45 ispace mul PtoC){5pt}}
          psset{linestyle=dashed}
          psline(0,-6)(0,6)
          psline(-6,0)(6,0)
          end{pspicture}
          end{document}


          enter image description here






          share|improve this answer























          • Thank you for your answer. Unfortunately, for some reason, I can not compile pstricks. Would you please use tikz in Beamer class.
            – Hany
            Dec 4 at 7:59








          • 1




            (0) The beautiful code. :-))
            – chishimotoji
            Dec 4 at 8:16








          • 3




            @Hany I think for PSTricks you need either latex+dvips + ps2pdf or xelatex or use package auto-pst-pdf with shell-escape and pdflatex.
            – jfbu
            Dec 4 at 8:18










          • @jfbu Thank you for your advice.
            – Hany
            Dec 4 at 12:03











          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%2f463096%2fdistributing-circles-along-a-circular-path%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          5
          down vote



          accepted










          Is this what you are lookig for?



          enter image description here



          documentclass[border=3mm]{standalone}
          usepackage{tikz}
          begin{document}
          tikzset{pics/.cd,cc/.style={code={draw [black, thin, fill=red] circle (0.248cm);}}}
          begin{tikzpicture}[scale=.9, transform shape]
          begin{scope}[scale=.4]
          draw[black, thick, fill=black] (0,0)node (o){} circle (0.24cm);
          draw[black, thick, dashdotted] ([shift={(-90.:5.4cm)}]o.center) -- ([shift={(90.:5.4cm)}]o.center) ([shift={(180.:5.4cm)}]o.center) -- ([shift={(0.:5.4cm)}]o.center);
          foreach r in {1, 2,3,4,5} draw[blue, thick] (o.center) circle (r);
          foreach ang in {0,45,...,315}
          pic at (ang:2.5cm) {cc};
          end{scope}
          begin{scope}[scale=.4, xshift=14cm]
          draw[black, thick, fill=black] (0,0)node (o){} circle (0.24cm);
          draw[black, thick, dashdotted] ([shift={(-90.:5.4cm)}]o.center) -- ([shift={(90.:5.4cm)}]o.center) ([shift={(180.:5.4cm)}]o.center) -- ([shift={(0.:5.4cm)}]o.center);
          foreach r in {1, 2,...,5} draw[blue, thick] (o.center) circle (r);
          defdist{0.7}
          coordinate (p) at (240:3cm);
          foreach ang in {0,45,...,315}
          pic at ([shift={(ang:dist)}]p) {cc};
          end{scope}
          end{tikzpicture}
          end{document}





          share|improve this answer





















          • Yes this is what I was looking for. Thank you very much.
            – Hany
            Dec 4 at 12:00















          up vote
          5
          down vote



          accepted










          Is this what you are lookig for?



          enter image description here



          documentclass[border=3mm]{standalone}
          usepackage{tikz}
          begin{document}
          tikzset{pics/.cd,cc/.style={code={draw [black, thin, fill=red] circle (0.248cm);}}}
          begin{tikzpicture}[scale=.9, transform shape]
          begin{scope}[scale=.4]
          draw[black, thick, fill=black] (0,0)node (o){} circle (0.24cm);
          draw[black, thick, dashdotted] ([shift={(-90.:5.4cm)}]o.center) -- ([shift={(90.:5.4cm)}]o.center) ([shift={(180.:5.4cm)}]o.center) -- ([shift={(0.:5.4cm)}]o.center);
          foreach r in {1, 2,3,4,5} draw[blue, thick] (o.center) circle (r);
          foreach ang in {0,45,...,315}
          pic at (ang:2.5cm) {cc};
          end{scope}
          begin{scope}[scale=.4, xshift=14cm]
          draw[black, thick, fill=black] (0,0)node (o){} circle (0.24cm);
          draw[black, thick, dashdotted] ([shift={(-90.:5.4cm)}]o.center) -- ([shift={(90.:5.4cm)}]o.center) ([shift={(180.:5.4cm)}]o.center) -- ([shift={(0.:5.4cm)}]o.center);
          foreach r in {1, 2,...,5} draw[blue, thick] (o.center) circle (r);
          defdist{0.7}
          coordinate (p) at (240:3cm);
          foreach ang in {0,45,...,315}
          pic at ([shift={(ang:dist)}]p) {cc};
          end{scope}
          end{tikzpicture}
          end{document}





          share|improve this answer





















          • Yes this is what I was looking for. Thank you very much.
            – Hany
            Dec 4 at 12:00













          up vote
          5
          down vote



          accepted







          up vote
          5
          down vote



          accepted






          Is this what you are lookig for?



          enter image description here



          documentclass[border=3mm]{standalone}
          usepackage{tikz}
          begin{document}
          tikzset{pics/.cd,cc/.style={code={draw [black, thin, fill=red] circle (0.248cm);}}}
          begin{tikzpicture}[scale=.9, transform shape]
          begin{scope}[scale=.4]
          draw[black, thick, fill=black] (0,0)node (o){} circle (0.24cm);
          draw[black, thick, dashdotted] ([shift={(-90.:5.4cm)}]o.center) -- ([shift={(90.:5.4cm)}]o.center) ([shift={(180.:5.4cm)}]o.center) -- ([shift={(0.:5.4cm)}]o.center);
          foreach r in {1, 2,3,4,5} draw[blue, thick] (o.center) circle (r);
          foreach ang in {0,45,...,315}
          pic at (ang:2.5cm) {cc};
          end{scope}
          begin{scope}[scale=.4, xshift=14cm]
          draw[black, thick, fill=black] (0,0)node (o){} circle (0.24cm);
          draw[black, thick, dashdotted] ([shift={(-90.:5.4cm)}]o.center) -- ([shift={(90.:5.4cm)}]o.center) ([shift={(180.:5.4cm)}]o.center) -- ([shift={(0.:5.4cm)}]o.center);
          foreach r in {1, 2,...,5} draw[blue, thick] (o.center) circle (r);
          defdist{0.7}
          coordinate (p) at (240:3cm);
          foreach ang in {0,45,...,315}
          pic at ([shift={(ang:dist)}]p) {cc};
          end{scope}
          end{tikzpicture}
          end{document}





          share|improve this answer












          Is this what you are lookig for?



          enter image description here



          documentclass[border=3mm]{standalone}
          usepackage{tikz}
          begin{document}
          tikzset{pics/.cd,cc/.style={code={draw [black, thin, fill=red] circle (0.248cm);}}}
          begin{tikzpicture}[scale=.9, transform shape]
          begin{scope}[scale=.4]
          draw[black, thick, fill=black] (0,0)node (o){} circle (0.24cm);
          draw[black, thick, dashdotted] ([shift={(-90.:5.4cm)}]o.center) -- ([shift={(90.:5.4cm)}]o.center) ([shift={(180.:5.4cm)}]o.center) -- ([shift={(0.:5.4cm)}]o.center);
          foreach r in {1, 2,3,4,5} draw[blue, thick] (o.center) circle (r);
          foreach ang in {0,45,...,315}
          pic at (ang:2.5cm) {cc};
          end{scope}
          begin{scope}[scale=.4, xshift=14cm]
          draw[black, thick, fill=black] (0,0)node (o){} circle (0.24cm);
          draw[black, thick, dashdotted] ([shift={(-90.:5.4cm)}]o.center) -- ([shift={(90.:5.4cm)}]o.center) ([shift={(180.:5.4cm)}]o.center) -- ([shift={(0.:5.4cm)}]o.center);
          foreach r in {1, 2,...,5} draw[blue, thick] (o.center) circle (r);
          defdist{0.7}
          coordinate (p) at (240:3cm);
          foreach ang in {0,45,...,315}
          pic at ([shift={(ang:dist)}]p) {cc};
          end{scope}
          end{tikzpicture}
          end{document}






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 4 at 9:07









          nidhin

          2,889926




          2,889926












          • Yes this is what I was looking for. Thank you very much.
            – Hany
            Dec 4 at 12:00


















          • Yes this is what I was looking for. Thank you very much.
            – Hany
            Dec 4 at 12:00
















          Yes this is what I was looking for. Thank you very much.
          – Hany
          Dec 4 at 12:00




          Yes this is what I was looking for. Thank you very much.
          – Hany
          Dec 4 at 12:00










          up vote
          7
          down vote













          A PSTricks solution only for comparison purposes.



          One



          documentclass[pstricks,border=12pt]{standalone}
          pstVerb{realtime srand}
          begin{document}
          begin{pspicture}(-6,-6)(6,6)
          qdisk(0,0){5pt}
          foreach i in {1,...,6}{pscircle[linecolor=blue]{i}}
          foreach i in {0,1,...,7}{pscircle[fillstyle=solid,fillcolor=red,origin={!3 45 ispace mul PtoC}]{5pt}}
          psset{linestyle=dashed}
          psline(0,-6)(0,6)
          psline(-6,0)(6,0)
          end{pspicture}
          end{document}


          enter image description here



          Two



          documentclass[pstricks,border=12pt]{standalone}
          pstVerb{realtime srand}
          begin{document}
          begin{pspicture}(-6,-6)(6,6)
          qdisk(0,0){5pt}
          foreach i in {1,...,6}{pscircle[linecolor=blue]{i}}
          psLoop{8}{pscircle[fillstyle=solid,fillcolor=red,origin={-3,-2}](!Rand .5 mul Rand 360 mul PtoC){5pt}}
          psset{linestyle=dashed}
          psline(0,-6)(0,6)
          psline(-6,0)(6,0)
          end{pspicture}
          end{document}


          enter image description here



          Three



          documentclass[pstricks,border=12pt]{standalone}
          pstVerb{realtime srand}
          begin{document}
          begin{pspicture}(-6,-6)(6,6)
          qdisk(0,0){5pt}
          foreach i in {1,...,6}{pscircle[linecolor=blue]{i}}
          foreach i in {0,1,...,7}{pscircle[fillstyle=solid,fillcolor=red,origin={3;225}](!.5 45 ispace mul PtoC){5pt}}
          psset{linestyle=dashed}
          psline(0,-6)(0,6)
          psline(-6,0)(6,0)
          end{pspicture}
          end{document}


          enter image description here






          share|improve this answer























          • Thank you for your answer. Unfortunately, for some reason, I can not compile pstricks. Would you please use tikz in Beamer class.
            – Hany
            Dec 4 at 7:59








          • 1




            (0) The beautiful code. :-))
            – chishimotoji
            Dec 4 at 8:16








          • 3




            @Hany I think for PSTricks you need either latex+dvips + ps2pdf or xelatex or use package auto-pst-pdf with shell-escape and pdflatex.
            – jfbu
            Dec 4 at 8:18










          • @jfbu Thank you for your advice.
            – Hany
            Dec 4 at 12:03















          up vote
          7
          down vote













          A PSTricks solution only for comparison purposes.



          One



          documentclass[pstricks,border=12pt]{standalone}
          pstVerb{realtime srand}
          begin{document}
          begin{pspicture}(-6,-6)(6,6)
          qdisk(0,0){5pt}
          foreach i in {1,...,6}{pscircle[linecolor=blue]{i}}
          foreach i in {0,1,...,7}{pscircle[fillstyle=solid,fillcolor=red,origin={!3 45 ispace mul PtoC}]{5pt}}
          psset{linestyle=dashed}
          psline(0,-6)(0,6)
          psline(-6,0)(6,0)
          end{pspicture}
          end{document}


          enter image description here



          Two



          documentclass[pstricks,border=12pt]{standalone}
          pstVerb{realtime srand}
          begin{document}
          begin{pspicture}(-6,-6)(6,6)
          qdisk(0,0){5pt}
          foreach i in {1,...,6}{pscircle[linecolor=blue]{i}}
          psLoop{8}{pscircle[fillstyle=solid,fillcolor=red,origin={-3,-2}](!Rand .5 mul Rand 360 mul PtoC){5pt}}
          psset{linestyle=dashed}
          psline(0,-6)(0,6)
          psline(-6,0)(6,0)
          end{pspicture}
          end{document}


          enter image description here



          Three



          documentclass[pstricks,border=12pt]{standalone}
          pstVerb{realtime srand}
          begin{document}
          begin{pspicture}(-6,-6)(6,6)
          qdisk(0,0){5pt}
          foreach i in {1,...,6}{pscircle[linecolor=blue]{i}}
          foreach i in {0,1,...,7}{pscircle[fillstyle=solid,fillcolor=red,origin={3;225}](!.5 45 ispace mul PtoC){5pt}}
          psset{linestyle=dashed}
          psline(0,-6)(0,6)
          psline(-6,0)(6,0)
          end{pspicture}
          end{document}


          enter image description here






          share|improve this answer























          • Thank you for your answer. Unfortunately, for some reason, I can not compile pstricks. Would you please use tikz in Beamer class.
            – Hany
            Dec 4 at 7:59








          • 1




            (0) The beautiful code. :-))
            – chishimotoji
            Dec 4 at 8:16








          • 3




            @Hany I think for PSTricks you need either latex+dvips + ps2pdf or xelatex or use package auto-pst-pdf with shell-escape and pdflatex.
            – jfbu
            Dec 4 at 8:18










          • @jfbu Thank you for your advice.
            – Hany
            Dec 4 at 12:03













          up vote
          7
          down vote










          up vote
          7
          down vote









          A PSTricks solution only for comparison purposes.



          One



          documentclass[pstricks,border=12pt]{standalone}
          pstVerb{realtime srand}
          begin{document}
          begin{pspicture}(-6,-6)(6,6)
          qdisk(0,0){5pt}
          foreach i in {1,...,6}{pscircle[linecolor=blue]{i}}
          foreach i in {0,1,...,7}{pscircle[fillstyle=solid,fillcolor=red,origin={!3 45 ispace mul PtoC}]{5pt}}
          psset{linestyle=dashed}
          psline(0,-6)(0,6)
          psline(-6,0)(6,0)
          end{pspicture}
          end{document}


          enter image description here



          Two



          documentclass[pstricks,border=12pt]{standalone}
          pstVerb{realtime srand}
          begin{document}
          begin{pspicture}(-6,-6)(6,6)
          qdisk(0,0){5pt}
          foreach i in {1,...,6}{pscircle[linecolor=blue]{i}}
          psLoop{8}{pscircle[fillstyle=solid,fillcolor=red,origin={-3,-2}](!Rand .5 mul Rand 360 mul PtoC){5pt}}
          psset{linestyle=dashed}
          psline(0,-6)(0,6)
          psline(-6,0)(6,0)
          end{pspicture}
          end{document}


          enter image description here



          Three



          documentclass[pstricks,border=12pt]{standalone}
          pstVerb{realtime srand}
          begin{document}
          begin{pspicture}(-6,-6)(6,6)
          qdisk(0,0){5pt}
          foreach i in {1,...,6}{pscircle[linecolor=blue]{i}}
          foreach i in {0,1,...,7}{pscircle[fillstyle=solid,fillcolor=red,origin={3;225}](!.5 45 ispace mul PtoC){5pt}}
          psset{linestyle=dashed}
          psline(0,-6)(0,6)
          psline(-6,0)(6,0)
          end{pspicture}
          end{document}


          enter image description here






          share|improve this answer














          A PSTricks solution only for comparison purposes.



          One



          documentclass[pstricks,border=12pt]{standalone}
          pstVerb{realtime srand}
          begin{document}
          begin{pspicture}(-6,-6)(6,6)
          qdisk(0,0){5pt}
          foreach i in {1,...,6}{pscircle[linecolor=blue]{i}}
          foreach i in {0,1,...,7}{pscircle[fillstyle=solid,fillcolor=red,origin={!3 45 ispace mul PtoC}]{5pt}}
          psset{linestyle=dashed}
          psline(0,-6)(0,6)
          psline(-6,0)(6,0)
          end{pspicture}
          end{document}


          enter image description here



          Two



          documentclass[pstricks,border=12pt]{standalone}
          pstVerb{realtime srand}
          begin{document}
          begin{pspicture}(-6,-6)(6,6)
          qdisk(0,0){5pt}
          foreach i in {1,...,6}{pscircle[linecolor=blue]{i}}
          psLoop{8}{pscircle[fillstyle=solid,fillcolor=red,origin={-3,-2}](!Rand .5 mul Rand 360 mul PtoC){5pt}}
          psset{linestyle=dashed}
          psline(0,-6)(0,6)
          psline(-6,0)(6,0)
          end{pspicture}
          end{document}


          enter image description here



          Three



          documentclass[pstricks,border=12pt]{standalone}
          pstVerb{realtime srand}
          begin{document}
          begin{pspicture}(-6,-6)(6,6)
          qdisk(0,0){5pt}
          foreach i in {1,...,6}{pscircle[linecolor=blue]{i}}
          foreach i in {0,1,...,7}{pscircle[fillstyle=solid,fillcolor=red,origin={3;225}](!.5 45 ispace mul PtoC){5pt}}
          psset{linestyle=dashed}
          psline(0,-6)(0,6)
          psline(-6,0)(6,0)
          end{pspicture}
          end{document}


          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Dec 4 at 9:35

























          answered Dec 4 at 7:30









          Artificial Stupidity

          4,74111039




          4,74111039












          • Thank you for your answer. Unfortunately, for some reason, I can not compile pstricks. Would you please use tikz in Beamer class.
            – Hany
            Dec 4 at 7:59








          • 1




            (0) The beautiful code. :-))
            – chishimotoji
            Dec 4 at 8:16








          • 3




            @Hany I think for PSTricks you need either latex+dvips + ps2pdf or xelatex or use package auto-pst-pdf with shell-escape and pdflatex.
            – jfbu
            Dec 4 at 8:18










          • @jfbu Thank you for your advice.
            – Hany
            Dec 4 at 12:03


















          • Thank you for your answer. Unfortunately, for some reason, I can not compile pstricks. Would you please use tikz in Beamer class.
            – Hany
            Dec 4 at 7:59








          • 1




            (0) The beautiful code. :-))
            – chishimotoji
            Dec 4 at 8:16








          • 3




            @Hany I think for PSTricks you need either latex+dvips + ps2pdf or xelatex or use package auto-pst-pdf with shell-escape and pdflatex.
            – jfbu
            Dec 4 at 8:18










          • @jfbu Thank you for your advice.
            – Hany
            Dec 4 at 12:03
















          Thank you for your answer. Unfortunately, for some reason, I can not compile pstricks. Would you please use tikz in Beamer class.
          – Hany
          Dec 4 at 7:59






          Thank you for your answer. Unfortunately, for some reason, I can not compile pstricks. Would you please use tikz in Beamer class.
          – Hany
          Dec 4 at 7:59






          1




          1




          (0) The beautiful code. :-))
          – chishimotoji
          Dec 4 at 8:16






          (0) The beautiful code. :-))
          – chishimotoji
          Dec 4 at 8:16






          3




          3




          @Hany I think for PSTricks you need either latex+dvips + ps2pdf or xelatex or use package auto-pst-pdf with shell-escape and pdflatex.
          – jfbu
          Dec 4 at 8:18




          @Hany I think for PSTricks you need either latex+dvips + ps2pdf or xelatex or use package auto-pst-pdf with shell-escape and pdflatex.
          – jfbu
          Dec 4 at 8:18












          @jfbu Thank you for your advice.
          – Hany
          Dec 4 at 12:03




          @jfbu Thank you for your advice.
          – Hany
          Dec 4 at 12:03


















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2f463096%2fdistributing-circles-along-a-circular-path%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

          How to change which sound is reproduced for terminal bell?

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

          Can I use Tabulator js library in my java Spring + Thymeleaf project?