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 at 6:28









      Herbert

      269k24407717




      269k24407717










      asked Dec 20 at 10:32









      chishimotoji

      727215




      727215






















          2 Answers
          2






          active

          oldest

          votes


















          5














          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?
            – chishimotoji
            Dec 20 at 11:07










          • basic command of pstricks
            – Herbert
            Dec 20 at 11:11










          • Wow, only be "basic" command. :-(
            – chishimotoji
            Dec 20 at 11:13












          • I found some bugs in PSTricks: for the details
            – God Must Be Crazy
            Dec 23 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





















          • Oh, I see. Thank you.
            – chishimotoji
            Dec 20 at 11:27






          • 1




            A lot of rotations and reflections are possible, but I think OP wants the figure to look like @herbert 's.
            – AlexG
            Dec 20 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 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









          5














          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?
            – chishimotoji
            Dec 20 at 11:07










          • basic command of pstricks
            – Herbert
            Dec 20 at 11:11










          • Wow, only be "basic" command. :-(
            – chishimotoji
            Dec 20 at 11:13












          • I found some bugs in PSTricks: for the details
            – God Must Be Crazy
            Dec 23 at 18:45
















          5














          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?
            – chishimotoji
            Dec 20 at 11:07










          • basic command of pstricks
            – Herbert
            Dec 20 at 11:11










          • Wow, only be "basic" command. :-(
            – chishimotoji
            Dec 20 at 11:13












          • I found some bugs in PSTricks: for the details
            – God Must Be Crazy
            Dec 23 at 18:45














          5












          5








          5






          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 at 11:01









          Herbert

          269k24407717




          269k24407717












          • Which package consist of psscalebox?
            – chishimotoji
            Dec 20 at 11:07










          • basic command of pstricks
            – Herbert
            Dec 20 at 11:11










          • Wow, only be "basic" command. :-(
            – chishimotoji
            Dec 20 at 11:13












          • I found some bugs in PSTricks: for the details
            – God Must Be Crazy
            Dec 23 at 18:45


















          • Which package consist of psscalebox?
            – chishimotoji
            Dec 20 at 11:07










          • basic command of pstricks
            – Herbert
            Dec 20 at 11:11










          • Wow, only be "basic" command. :-(
            – chishimotoji
            Dec 20 at 11:13












          • I found some bugs in PSTricks: for the details
            – God Must Be Crazy
            Dec 23 at 18:45
















          Which package consist of psscalebox?
          – chishimotoji
          Dec 20 at 11:07




          Which package consist of psscalebox?
          – chishimotoji
          Dec 20 at 11:07












          basic command of pstricks
          – Herbert
          Dec 20 at 11:11




          basic command of pstricks
          – Herbert
          Dec 20 at 11:11












          Wow, only be "basic" command. :-(
          – chishimotoji
          Dec 20 at 11:13






          Wow, only be "basic" command. :-(
          – chishimotoji
          Dec 20 at 11:13














          I found some bugs in PSTricks: for the details
          – God Must Be Crazy
          Dec 23 at 18:45




          I found some bugs in PSTricks: for the details
          – God Must Be Crazy
          Dec 23 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





















          • Oh, I see. Thank you.
            – chishimotoji
            Dec 20 at 11:27






          • 1




            A lot of rotations and reflections are possible, but I think OP wants the figure to look like @herbert 's.
            – AlexG
            Dec 20 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 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





















          • Oh, I see. Thank you.
            – chishimotoji
            Dec 20 at 11:27






          • 1




            A lot of rotations and reflections are possible, but I think OP wants the figure to look like @herbert 's.
            – AlexG
            Dec 20 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 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 at 11:16









          Steven B. Segletes

          152k9192400




          152k9192400












          • Oh, I see. Thank you.
            – chishimotoji
            Dec 20 at 11:27






          • 1




            A lot of rotations and reflections are possible, but I think OP wants the figure to look like @herbert 's.
            – AlexG
            Dec 20 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 at 11:50




















          • Oh, I see. Thank you.
            – chishimotoji
            Dec 20 at 11:27






          • 1




            A lot of rotations and reflections are possible, but I think OP wants the figure to look like @herbert 's.
            – AlexG
            Dec 20 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 at 11:50


















          Oh, I see. Thank you.
          – chishimotoji
          Dec 20 at 11:27




          Oh, I see. Thank you.
          – chishimotoji
          Dec 20 at 11:27




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





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

          Список кардиналов, возведённых папой римским Каликстом III

          Deduzione

          Mysql.sock missing - “Can't connect to local MySQL server through socket”