How can I rotate a section of a figure by 180 degrees?












7















documentclass[12pt,pstricks,border=15pt]{standalone}
begin{document}
defmyFig{%
pscustom[fillstyle=solid,fillcolor=yellow,opacity=.5]{%
psarcn(3,0){3}{180}{90}psarcn(1,3){2}{0}{-90}
psarc(1,2){1}{-90}{0}psarc(2,0){2}{90}{180}
}%
pscustom[fillstyle=solid,fillcolor=blue,opacity=.5]{%
psarc(0,3){3}{-90}{0}psarcn(1,3){2}{0}{-90}
psarcn(2,1){1}{180}{90}psarc(2,0){2}{90}{180}
closepath
}%
}

begin{pspicture}(6,6)
rput(3,3){myFig}
rput{-90}(3,3){myFig}
rput{180}(3,3){myFig}
rput{-270}(3,3){myFig}
end{pspicture}
end{document}


The above code produces this image:



Existing Image



How do I change it to produce this?



Changed image










share|improve this question





























    7















    documentclass[12pt,pstricks,border=15pt]{standalone}
    begin{document}
    defmyFig{%
    pscustom[fillstyle=solid,fillcolor=yellow,opacity=.5]{%
    psarcn(3,0){3}{180}{90}psarcn(1,3){2}{0}{-90}
    psarc(1,2){1}{-90}{0}psarc(2,0){2}{90}{180}
    }%
    pscustom[fillstyle=solid,fillcolor=blue,opacity=.5]{%
    psarc(0,3){3}{-90}{0}psarcn(1,3){2}{0}{-90}
    psarcn(2,1){1}{180}{90}psarc(2,0){2}{90}{180}
    closepath
    }%
    }

    begin{pspicture}(6,6)
    rput(3,3){myFig}
    rput{-90}(3,3){myFig}
    rput{180}(3,3){myFig}
    rput{-270}(3,3){myFig}
    end{pspicture}
    end{document}


    The above code produces this image:



    Existing Image



    How do I change it to produce this?



    Changed image










    share|improve this question



























      7












      7








      7


      0






      documentclass[12pt,pstricks,border=15pt]{standalone}
      begin{document}
      defmyFig{%
      pscustom[fillstyle=solid,fillcolor=yellow,opacity=.5]{%
      psarcn(3,0){3}{180}{90}psarcn(1,3){2}{0}{-90}
      psarc(1,2){1}{-90}{0}psarc(2,0){2}{90}{180}
      }%
      pscustom[fillstyle=solid,fillcolor=blue,opacity=.5]{%
      psarc(0,3){3}{-90}{0}psarcn(1,3){2}{0}{-90}
      psarcn(2,1){1}{180}{90}psarc(2,0){2}{90}{180}
      closepath
      }%
      }

      begin{pspicture}(6,6)
      rput(3,3){myFig}
      rput{-90}(3,3){myFig}
      rput{180}(3,3){myFig}
      rput{-270}(3,3){myFig}
      end{pspicture}
      end{document}


      The above code produces this image:



      Existing Image



      How do I change it to produce this?



      Changed image










      share|improve this question
















      documentclass[12pt,pstricks,border=15pt]{standalone}
      begin{document}
      defmyFig{%
      pscustom[fillstyle=solid,fillcolor=yellow,opacity=.5]{%
      psarcn(3,0){3}{180}{90}psarcn(1,3){2}{0}{-90}
      psarc(1,2){1}{-90}{0}psarc(2,0){2}{90}{180}
      }%
      pscustom[fillstyle=solid,fillcolor=blue,opacity=.5]{%
      psarc(0,3){3}{-90}{0}psarcn(1,3){2}{0}{-90}
      psarcn(2,1){1}{180}{90}psarc(2,0){2}{90}{180}
      closepath
      }%
      }

      begin{pspicture}(6,6)
      rput(3,3){myFig}
      rput{-90}(3,3){myFig}
      rput{180}(3,3){myFig}
      rput{-270}(3,3){myFig}
      end{pspicture}
      end{document}


      The above code produces this image:



      Existing Image



      How do I change it to produce this?



      Changed image







      pstricks rotating






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 21 '18 at 6:28









      Herbert

      276k25419732




      276k25419732










      asked Dec 20 '18 at 10:32









      chishimutojichishimutoji

      7331323




      7331323






















          2 Answers
          2






          active

          oldest

          votes


















          6














          begin{pspicture}(6,6)
          rput(3,3){myFig}
          rput{-180}(3,3){psscalebox{-1 1}{myFig}}% -1 1 -> reflecting
          rput{180}(3,3){myFig}
          rput(3,3){psscalebox{-1 1}{myFig}}
          end{pspicture}


          enter image description here






          share|improve this answer
























          • Which package consist of psscalebox?

            – chishimutoji
            Dec 20 '18 at 11:07











          • basic command of pstricks

            – Herbert
            Dec 20 '18 at 11:11











          • Wow, only be "basic" command. :-(

            – chishimutoji
            Dec 20 '18 at 11:13













          • I found some bugs in PSTricks: for the details

            – The Inventor of God
            Dec 23 '18 at 18:45



















          4














          Not sure if this is the desired look. (yellow to the inside in quadrants II, IV)



          documentclass[12pt,pstricks,border=15pt]{standalone}
          usepackage{graphicx}
          begin{document}
          defmyFig{%
          pscustom[fillstyle=solid,fillcolor=yellow,opacity=.5]{%
          psarcn(3,0){3}{180}{90}psarcn(1,3){2}{0}{-90}
          psarc(1,2){1}{-90}{0}psarc(2,0){2}{90}{180}
          }%
          pscustom[fillstyle=solid,fillcolor=blue,opacity=.5]{%
          psarc(0,3){3}{-90}{0}psarcn(1,3){2}{0}{-90}
          psarcn(2,1){1}{180}{90}psarc(2,0){2}{90}{180}
          closepath
          }%
          }

          begin{pspicture}(6,6)
          rput(3,3){myFig}
          rput(6,0){rotatebox{90}{myFig}}
          rput{180}(3,3){myFig}
          rput(0,6){rotatebox{-90}{myFig}}
          end{pspicture}
          end{document}


          enter image description here






          share|improve this answer



















          • 1





            A lot of rotations and reflections are possible, but I think OP wants the figure to look like @herbert 's.

            – AlexG
            Dec 20 '18 at 11:34













          • @AlexG You are obviously correct in your deduction. I guess the implied (bent arrow) "rotation" is what threw me off, when it seems the OP wanted "reflection."

            – Steven B. Segletes
            Dec 20 '18 at 11:50













          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%2f466667%2fhow-can-i-rotate-a-section-of-a-figure-by-180-degrees%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









          6














          begin{pspicture}(6,6)
          rput(3,3){myFig}
          rput{-180}(3,3){psscalebox{-1 1}{myFig}}% -1 1 -> reflecting
          rput{180}(3,3){myFig}
          rput(3,3){psscalebox{-1 1}{myFig}}
          end{pspicture}


          enter image description here






          share|improve this answer
























          • Which package consist of psscalebox?

            – chishimutoji
            Dec 20 '18 at 11:07











          • basic command of pstricks

            – Herbert
            Dec 20 '18 at 11:11











          • Wow, only be "basic" command. :-(

            – chishimutoji
            Dec 20 '18 at 11:13













          • I found some bugs in PSTricks: for the details

            – The Inventor of God
            Dec 23 '18 at 18:45
















          6














          begin{pspicture}(6,6)
          rput(3,3){myFig}
          rput{-180}(3,3){psscalebox{-1 1}{myFig}}% -1 1 -> reflecting
          rput{180}(3,3){myFig}
          rput(3,3){psscalebox{-1 1}{myFig}}
          end{pspicture}


          enter image description here






          share|improve this answer
























          • Which package consist of psscalebox?

            – chishimutoji
            Dec 20 '18 at 11:07











          • basic command of pstricks

            – Herbert
            Dec 20 '18 at 11:11











          • Wow, only be "basic" command. :-(

            – chishimutoji
            Dec 20 '18 at 11:13













          • I found some bugs in PSTricks: for the details

            – The Inventor of God
            Dec 23 '18 at 18:45














          6












          6








          6







          begin{pspicture}(6,6)
          rput(3,3){myFig}
          rput{-180}(3,3){psscalebox{-1 1}{myFig}}% -1 1 -> reflecting
          rput{180}(3,3){myFig}
          rput(3,3){psscalebox{-1 1}{myFig}}
          end{pspicture}


          enter image description here






          share|improve this answer













          begin{pspicture}(6,6)
          rput(3,3){myFig}
          rput{-180}(3,3){psscalebox{-1 1}{myFig}}% -1 1 -> reflecting
          rput{180}(3,3){myFig}
          rput(3,3){psscalebox{-1 1}{myFig}}
          end{pspicture}


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 20 '18 at 11:01









          HerbertHerbert

          276k25419732




          276k25419732













          • Which package consist of psscalebox?

            – chishimutoji
            Dec 20 '18 at 11:07











          • basic command of pstricks

            – Herbert
            Dec 20 '18 at 11:11











          • Wow, only be "basic" command. :-(

            – chishimutoji
            Dec 20 '18 at 11:13













          • I found some bugs in PSTricks: for the details

            – The Inventor of God
            Dec 23 '18 at 18:45



















          • Which package consist of psscalebox?

            – chishimutoji
            Dec 20 '18 at 11:07











          • basic command of pstricks

            – Herbert
            Dec 20 '18 at 11:11











          • Wow, only be "basic" command. :-(

            – chishimutoji
            Dec 20 '18 at 11:13













          • I found some bugs in PSTricks: for the details

            – The Inventor of God
            Dec 23 '18 at 18:45

















          Which package consist of psscalebox?

          – chishimutoji
          Dec 20 '18 at 11:07





          Which package consist of psscalebox?

          – chishimutoji
          Dec 20 '18 at 11:07













          basic command of pstricks

          – Herbert
          Dec 20 '18 at 11:11





          basic command of pstricks

          – Herbert
          Dec 20 '18 at 11:11













          Wow, only be "basic" command. :-(

          – chishimutoji
          Dec 20 '18 at 11:13







          Wow, only be "basic" command. :-(

          – chishimutoji
          Dec 20 '18 at 11:13















          I found some bugs in PSTricks: for the details

          – The Inventor of God
          Dec 23 '18 at 18:45





          I found some bugs in PSTricks: for the details

          – The Inventor of God
          Dec 23 '18 at 18:45











          4














          Not sure if this is the desired look. (yellow to the inside in quadrants II, IV)



          documentclass[12pt,pstricks,border=15pt]{standalone}
          usepackage{graphicx}
          begin{document}
          defmyFig{%
          pscustom[fillstyle=solid,fillcolor=yellow,opacity=.5]{%
          psarcn(3,0){3}{180}{90}psarcn(1,3){2}{0}{-90}
          psarc(1,2){1}{-90}{0}psarc(2,0){2}{90}{180}
          }%
          pscustom[fillstyle=solid,fillcolor=blue,opacity=.5]{%
          psarc(0,3){3}{-90}{0}psarcn(1,3){2}{0}{-90}
          psarcn(2,1){1}{180}{90}psarc(2,0){2}{90}{180}
          closepath
          }%
          }

          begin{pspicture}(6,6)
          rput(3,3){myFig}
          rput(6,0){rotatebox{90}{myFig}}
          rput{180}(3,3){myFig}
          rput(0,6){rotatebox{-90}{myFig}}
          end{pspicture}
          end{document}


          enter image description here






          share|improve this answer



















          • 1





            A lot of rotations and reflections are possible, but I think OP wants the figure to look like @herbert 's.

            – AlexG
            Dec 20 '18 at 11:34













          • @AlexG You are obviously correct in your deduction. I guess the implied (bent arrow) "rotation" is what threw me off, when it seems the OP wanted "reflection."

            – Steven B. Segletes
            Dec 20 '18 at 11:50


















          4














          Not sure if this is the desired look. (yellow to the inside in quadrants II, IV)



          documentclass[12pt,pstricks,border=15pt]{standalone}
          usepackage{graphicx}
          begin{document}
          defmyFig{%
          pscustom[fillstyle=solid,fillcolor=yellow,opacity=.5]{%
          psarcn(3,0){3}{180}{90}psarcn(1,3){2}{0}{-90}
          psarc(1,2){1}{-90}{0}psarc(2,0){2}{90}{180}
          }%
          pscustom[fillstyle=solid,fillcolor=blue,opacity=.5]{%
          psarc(0,3){3}{-90}{0}psarcn(1,3){2}{0}{-90}
          psarcn(2,1){1}{180}{90}psarc(2,0){2}{90}{180}
          closepath
          }%
          }

          begin{pspicture}(6,6)
          rput(3,3){myFig}
          rput(6,0){rotatebox{90}{myFig}}
          rput{180}(3,3){myFig}
          rput(0,6){rotatebox{-90}{myFig}}
          end{pspicture}
          end{document}


          enter image description here






          share|improve this answer



















          • 1





            A lot of rotations and reflections are possible, but I think OP wants the figure to look like @herbert 's.

            – AlexG
            Dec 20 '18 at 11:34













          • @AlexG You are obviously correct in your deduction. I guess the implied (bent arrow) "rotation" is what threw me off, when it seems the OP wanted "reflection."

            – Steven B. Segletes
            Dec 20 '18 at 11:50
















          4












          4








          4







          Not sure if this is the desired look. (yellow to the inside in quadrants II, IV)



          documentclass[12pt,pstricks,border=15pt]{standalone}
          usepackage{graphicx}
          begin{document}
          defmyFig{%
          pscustom[fillstyle=solid,fillcolor=yellow,opacity=.5]{%
          psarcn(3,0){3}{180}{90}psarcn(1,3){2}{0}{-90}
          psarc(1,2){1}{-90}{0}psarc(2,0){2}{90}{180}
          }%
          pscustom[fillstyle=solid,fillcolor=blue,opacity=.5]{%
          psarc(0,3){3}{-90}{0}psarcn(1,3){2}{0}{-90}
          psarcn(2,1){1}{180}{90}psarc(2,0){2}{90}{180}
          closepath
          }%
          }

          begin{pspicture}(6,6)
          rput(3,3){myFig}
          rput(6,0){rotatebox{90}{myFig}}
          rput{180}(3,3){myFig}
          rput(0,6){rotatebox{-90}{myFig}}
          end{pspicture}
          end{document}


          enter image description here






          share|improve this answer













          Not sure if this is the desired look. (yellow to the inside in quadrants II, IV)



          documentclass[12pt,pstricks,border=15pt]{standalone}
          usepackage{graphicx}
          begin{document}
          defmyFig{%
          pscustom[fillstyle=solid,fillcolor=yellow,opacity=.5]{%
          psarcn(3,0){3}{180}{90}psarcn(1,3){2}{0}{-90}
          psarc(1,2){1}{-90}{0}psarc(2,0){2}{90}{180}
          }%
          pscustom[fillstyle=solid,fillcolor=blue,opacity=.5]{%
          psarc(0,3){3}{-90}{0}psarcn(1,3){2}{0}{-90}
          psarcn(2,1){1}{180}{90}psarc(2,0){2}{90}{180}
          closepath
          }%
          }

          begin{pspicture}(6,6)
          rput(3,3){myFig}
          rput(6,0){rotatebox{90}{myFig}}
          rput{180}(3,3){myFig}
          rput(0,6){rotatebox{-90}{myFig}}
          end{pspicture}
          end{document}


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 20 '18 at 11:16









          Steven B. SegletesSteven B. Segletes

          159k9204412




          159k9204412








          • 1





            A lot of rotations and reflections are possible, but I think OP wants the figure to look like @herbert 's.

            – AlexG
            Dec 20 '18 at 11:34













          • @AlexG You are obviously correct in your deduction. I guess the implied (bent arrow) "rotation" is what threw me off, when it seems the OP wanted "reflection."

            – Steven B. Segletes
            Dec 20 '18 at 11:50
















          • 1





            A lot of rotations and reflections are possible, but I think OP wants the figure to look like @herbert 's.

            – AlexG
            Dec 20 '18 at 11:34













          • @AlexG You are obviously correct in your deduction. I guess the implied (bent arrow) "rotation" is what threw me off, when it seems the OP wanted "reflection."

            – Steven B. Segletes
            Dec 20 '18 at 11:50










          1




          1





          A lot of rotations and reflections are possible, but I think OP wants the figure to look like @herbert 's.

          – AlexG
          Dec 20 '18 at 11:34







          A lot of rotations and reflections are possible, but I think OP wants the figure to look like @herbert 's.

          – AlexG
          Dec 20 '18 at 11:34















          @AlexG You are obviously correct in your deduction. I guess the implied (bent arrow) "rotation" is what threw me off, when it seems the OP wanted "reflection."

          – Steven B. Segletes
          Dec 20 '18 at 11:50







          @AlexG You are obviously correct in your deduction. I guess the implied (bent arrow) "rotation" is what threw me off, when it seems the OP wanted "reflection."

          – Steven B. Segletes
          Dec 20 '18 at 11:50




















          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%2f466667%2fhow-can-i-rotate-a-section-of-a-figure-by-180-degrees%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

          Bundesstraße 106

          Verónica Boquete

          Ida-Boy-Ed-Garten