How can I rotate a section of a figure by 180 degrees?
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:
How do I change it to produce this?
pstricks rotating
add a comment |
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:
How do I change it to produce this?
pstricks rotating
add a comment |
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:
How do I change it to produce this?
pstricks rotating
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:
How do I change it to produce this?
pstricks rotating
pstricks rotating
edited Dec 21 '18 at 6:28
Herbert
276k25419732
276k25419732
asked Dec 20 '18 at 10:32
chishimutojichishimutoji
7331323
7331323
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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}
Which package consist of psscalebox?
– chishimutoji
Dec 20 '18 at 11:07
basic command ofpstricks
– 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
add a comment |
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}
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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}
Which package consist of psscalebox?
– chishimutoji
Dec 20 '18 at 11:07
basic command ofpstricks
– 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
add a comment |
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}
Which package consist of psscalebox?
– chishimutoji
Dec 20 '18 at 11:07
basic command ofpstricks
– 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
add a comment |
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}
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}
answered Dec 20 '18 at 11:01
HerbertHerbert
276k25419732
276k25419732
Which package consist of psscalebox?
– chishimutoji
Dec 20 '18 at 11:07
basic command ofpstricks
– 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
add a comment |
Which package consist of psscalebox?
– chishimutoji
Dec 20 '18 at 11:07
basic command ofpstricks
– 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
add a comment |
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}
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
add a comment |
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}
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
add a comment |
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}
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}
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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