How to compact two the parabol commands in the following example?Example from the pstricks-add manual not compiliingLaTeX Trellis Diagrams for STBCsbegindocument ended by endfigure, latex error in thesis templateGeogebra PStricks export not workingAnother problem with poker packageHow to draw closed path if used the following code:how to draw like the following picture ( use pairs gsave…grestore):How to compact ncline command with PSTricksHow to combine three animations as the following example?Conflict error when using pstMarkAngle with XeLaTeX
Why did the soldiers of the North disobey Jon?
How can we delete item permanently without storing in Recycle Bin?
How can I fix the label locations on my tikzcd diagram?
Why is so much ransomware breakable?
multiline equation inside a matrix that is a part of multiline equation
Would it be fair to use 1d30 (instead of rolling 2d20 and taking the higher die) for advantage rolls?
Is Precocious Apprentice enough for Mystic Theurge?
Is it standard to have the first week's pay indefinitely withheld?
Polynomial division: Is this trick obvious?
Given 0s on Assignments with suspected and dismissed cheating?
"Counterexample" for the Inverse function theorem
Cuban Primes
Non-African Click Languages
Why do academics prefer Mac/Linux?
What kind of action are dodge and disengage?
Resistor Selection to retain same brightness in LED PWM circuit
Deleting the same lines from a list
Is Big Ben visible from the British museum?
Do we see some Unsullied doing this in S08E05?
Would life always name the light from their sun "white"
Why use a retrograde orbit?
Is there any deeper thematic meaning to the white horse that Arya finds in The Bells (S08E05)?
Can I pay my credit card?
301 Redirects what does ([a-z]+)-(.*) and ([0-9]+)-(.*) mean
How to compact two the parabol commands in the following example?
Example from the pstricks-add manual not compiliingLaTeX Trellis Diagrams for STBCsbegindocument ended by endfigure, latex error in thesis templateGeogebra PStricks export not workingAnother problem with poker packageHow to draw closed path if used the following code:how to draw like the following picture ( use pairs gsave…grestore):How to compact ncline command with PSTricksHow to combine three animations as the following example?Conflict error when using pstMarkAngle with XeLaTeX
documentclass[border=15pt,pstricks,12pt]standalone
usepackagepstricks-add
begindocument
beginpspicture[showgrid](-3,-3)(3,3)
psframe[dimen=m](-3,-3)(3,3)
%%%
psclipparabola(3,3)(0,0)%
psrotate(0,0)-90parabola[fillstyle=hlines](3,3)(0,0)
psrotate(0,0)90parabola[fillstyle=hlines](3,3)(0,0)
endpsclip
psclipparabola(-3,-3)(0,0)%
psrotate(0,0)-90parabola[fillstyle=hlines](3,3)(0,0)
psrotate(0,0)90parabola[fillstyle=hlines](3,3)(0,0)%%
endpsclip%%
endpspicture
enddocument
Hmm, seem %% and %% are missing!
pstricks pstricks-add
add a comment |
documentclass[border=15pt,pstricks,12pt]standalone
usepackagepstricks-add
begindocument
beginpspicture[showgrid](-3,-3)(3,3)
psframe[dimen=m](-3,-3)(3,3)
%%%
psclipparabola(3,3)(0,0)%
psrotate(0,0)-90parabola[fillstyle=hlines](3,3)(0,0)
psrotate(0,0)90parabola[fillstyle=hlines](3,3)(0,0)
endpsclip
psclipparabola(-3,-3)(0,0)%
psrotate(0,0)-90parabola[fillstyle=hlines](3,3)(0,0)
psrotate(0,0)90parabola[fillstyle=hlines](3,3)(0,0)%%
endpsclip%%
endpspicture
enddocument
Hmm, seem %% and %% are missing!
pstricks pstricks-add
1
Yes, you need%
at the end of everypsrotate
line.
– egreg
May 11 at 16:27
add a comment |
documentclass[border=15pt,pstricks,12pt]standalone
usepackagepstricks-add
begindocument
beginpspicture[showgrid](-3,-3)(3,3)
psframe[dimen=m](-3,-3)(3,3)
%%%
psclipparabola(3,3)(0,0)%
psrotate(0,0)-90parabola[fillstyle=hlines](3,3)(0,0)
psrotate(0,0)90parabola[fillstyle=hlines](3,3)(0,0)
endpsclip
psclipparabola(-3,-3)(0,0)%
psrotate(0,0)-90parabola[fillstyle=hlines](3,3)(0,0)
psrotate(0,0)90parabola[fillstyle=hlines](3,3)(0,0)%%
endpsclip%%
endpspicture
enddocument
Hmm, seem %% and %% are missing!
pstricks pstricks-add
documentclass[border=15pt,pstricks,12pt]standalone
usepackagepstricks-add
begindocument
beginpspicture[showgrid](-3,-3)(3,3)
psframe[dimen=m](-3,-3)(3,3)
%%%
psclipparabola(3,3)(0,0)%
psrotate(0,0)-90parabola[fillstyle=hlines](3,3)(0,0)
psrotate(0,0)90parabola[fillstyle=hlines](3,3)(0,0)
endpsclip
psclipparabola(-3,-3)(0,0)%
psrotate(0,0)-90parabola[fillstyle=hlines](3,3)(0,0)
psrotate(0,0)90parabola[fillstyle=hlines](3,3)(0,0)%%
endpsclip%%
endpspicture
enddocument
Hmm, seem %% and %% are missing!
pstricks pstricks-add
pstricks pstricks-add
asked May 11 at 16:17
Trong VuongTrong Vuong
7011323
7011323
1
Yes, you need%
at the end of everypsrotate
line.
– egreg
May 11 at 16:27
add a comment |
1
Yes, you need%
at the end of everypsrotate
line.
– egreg
May 11 at 16:27
1
1
Yes, you need
%
at the end of every psrotate
line.– egreg
May 11 at 16:27
Yes, you need
%
at the end of every psrotate
line.– egreg
May 11 at 16:27
add a comment |
3 Answers
3
active
oldest
votes
psrotate
is for more complex objects, not for simple rotations around the origin:
documentclass[border=15pt,pstricks,12pt]standalone
usepackagepstricks-add
begindocument
beginpspicture[showgrid](-3,-3)(3,3)
psframe[dimen=m](-3,-3)(3,3)
%%%
psclipparabola(3,3)(0,0)%
rput-90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
rput90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
endpsclip
psclipparabola(-3,-3)(0,0)%
rput-90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
rput90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
endpsclip
endpspicture
enddocument
or a shorter version
documentclass[border=15pt,pstricks,12pt]standalone
usepackagepstricks-add
defObjectpsclipparabola(3,3)(0,0)%
rput-90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
rput90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
endpsclip
begindocument
beginpspicture[showgrid](-3,-3)(3,3)
psframe[dimen=m](-3,-3)(3,3)
Objectrput180(0,0)Object
endpspicture
enddocument
or without clipping:
pscustom[fillstyle=hlines]%
psplot-33-x^2/3
psplot30-sqrt(3*x)psplot03sqrt(3*x)
psplot3-3x^2/3
psplot-30sqrt(3*(-x))psplot0-3-sqrt(3*(-x))
or
pscustom[fillstyle=hlines]%
psplot-33-x^2/3
psparametricplot-33t^2/3
psplot3-3x^2/3
psparametricplot3-3 t
Yes, I understood.
– Trong Vuong
May 11 at 17:09
add a comment |
It's simpler to plot with swapaxes
:
documentclass[border=15pt, pstricks, svgnames, 12pt]standalone
usepackagepstricks-add
begindocument
beginpspicture[showgrid](-3,-3)(3,3)
psframe[dimen=m](-3,-3)(3,3)
%%%
pssetlinecolor=LightSlateGrey, hatchwidth=0.5pt, hatchsep=3pt, hatchcolor=LightSteelBlue
psclipparabola[](3, 3)(0, 0)%
pssetswapaxes=true, fillstyle=vlines
parabola(3,3)(0,0)
parabola(3,-3)(0,0)
endpsclip
%
psclipparabola(-3, -3)(0, 0)%
pssetswapaxes=true, fillstyle=vlines
parabola(3,3)(0,0)
parabola(3,-3)(0,0)
endpsclip
endpspicture
enddocument
Yes, swapaxes ... I will think about it.
– Trong Vuong
May 12 at 1:15
add a comment |
Just for fun: a TikZ version.
documentclass[tikz,border=3.14mm]standalone
usetikzlibrarypatterns
begindocument
begintikzpicture
beginscope[every path/.append style=pattern=north west lines]
draw (0,0) parabola (3,3)[rotate=90] parabola[bend pos=1] (0,6);
draw (0,0) parabola (-3,-3)[rotate=90] parabola[bend pos=1] (0,-6);
draw (0,0) parabola (-3,3)[rotate=-90] parabola[bend pos=1] (0,6);
draw (0,0) parabola (3,-3)[rotate=-90] parabola[bend pos=1] (0,-6);
endscope
draw (-3,-3) rectangle (3,3);
endtikzpicture
enddocument
One can do it in one path, too, but then the rotations and shifts start to accumulate.
documentclass[tikz,border=3.14mm]standalone
usetikzlibrarypatterns
begindocument
begintikzpicture
draw[pattern=north west lines] (0,0) coordinate (O) parabola (3,3)
[rotate=90] parabola[bend pos=1] (0,6) [rotate=0]
parabola (-3,3) [rotate=90] parabola[bend pos=1] (O) [rotate=0]
parabola (3,3) [rotate=-90] parabola[bend pos=1] (6,0) [rotate=0]
parabola (9,3)[rotate=-90] parabola[bend pos=1] (12,0);
draw (-3,-3) rectangle (3,3);
endtikzpicture
enddocument
Thank for your answer.
– Trong Vuong
May 11 at 17:04
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%2f490349%2fhow-to-compact-two-the-parabol-commands-in-the-following-example%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
psrotate
is for more complex objects, not for simple rotations around the origin:
documentclass[border=15pt,pstricks,12pt]standalone
usepackagepstricks-add
begindocument
beginpspicture[showgrid](-3,-3)(3,3)
psframe[dimen=m](-3,-3)(3,3)
%%%
psclipparabola(3,3)(0,0)%
rput-90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
rput90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
endpsclip
psclipparabola(-3,-3)(0,0)%
rput-90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
rput90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
endpsclip
endpspicture
enddocument
or a shorter version
documentclass[border=15pt,pstricks,12pt]standalone
usepackagepstricks-add
defObjectpsclipparabola(3,3)(0,0)%
rput-90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
rput90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
endpsclip
begindocument
beginpspicture[showgrid](-3,-3)(3,3)
psframe[dimen=m](-3,-3)(3,3)
Objectrput180(0,0)Object
endpspicture
enddocument
or without clipping:
pscustom[fillstyle=hlines]%
psplot-33-x^2/3
psplot30-sqrt(3*x)psplot03sqrt(3*x)
psplot3-3x^2/3
psplot-30sqrt(3*(-x))psplot0-3-sqrt(3*(-x))
or
pscustom[fillstyle=hlines]%
psplot-33-x^2/3
psparametricplot-33t^2/3
psplot3-3x^2/3
psparametricplot3-3 t
Yes, I understood.
– Trong Vuong
May 11 at 17:09
add a comment |
psrotate
is for more complex objects, not for simple rotations around the origin:
documentclass[border=15pt,pstricks,12pt]standalone
usepackagepstricks-add
begindocument
beginpspicture[showgrid](-3,-3)(3,3)
psframe[dimen=m](-3,-3)(3,3)
%%%
psclipparabola(3,3)(0,0)%
rput-90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
rput90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
endpsclip
psclipparabola(-3,-3)(0,0)%
rput-90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
rput90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
endpsclip
endpspicture
enddocument
or a shorter version
documentclass[border=15pt,pstricks,12pt]standalone
usepackagepstricks-add
defObjectpsclipparabola(3,3)(0,0)%
rput-90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
rput90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
endpsclip
begindocument
beginpspicture[showgrid](-3,-3)(3,3)
psframe[dimen=m](-3,-3)(3,3)
Objectrput180(0,0)Object
endpspicture
enddocument
or without clipping:
pscustom[fillstyle=hlines]%
psplot-33-x^2/3
psplot30-sqrt(3*x)psplot03sqrt(3*x)
psplot3-3x^2/3
psplot-30sqrt(3*(-x))psplot0-3-sqrt(3*(-x))
or
pscustom[fillstyle=hlines]%
psplot-33-x^2/3
psparametricplot-33t^2/3
psplot3-3x^2/3
psparametricplot3-3 t
Yes, I understood.
– Trong Vuong
May 11 at 17:09
add a comment |
psrotate
is for more complex objects, not for simple rotations around the origin:
documentclass[border=15pt,pstricks,12pt]standalone
usepackagepstricks-add
begindocument
beginpspicture[showgrid](-3,-3)(3,3)
psframe[dimen=m](-3,-3)(3,3)
%%%
psclipparabola(3,3)(0,0)%
rput-90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
rput90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
endpsclip
psclipparabola(-3,-3)(0,0)%
rput-90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
rput90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
endpsclip
endpspicture
enddocument
or a shorter version
documentclass[border=15pt,pstricks,12pt]standalone
usepackagepstricks-add
defObjectpsclipparabola(3,3)(0,0)%
rput-90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
rput90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
endpsclip
begindocument
beginpspicture[showgrid](-3,-3)(3,3)
psframe[dimen=m](-3,-3)(3,3)
Objectrput180(0,0)Object
endpspicture
enddocument
or without clipping:
pscustom[fillstyle=hlines]%
psplot-33-x^2/3
psplot30-sqrt(3*x)psplot03sqrt(3*x)
psplot3-3x^2/3
psplot-30sqrt(3*(-x))psplot0-3-sqrt(3*(-x))
or
pscustom[fillstyle=hlines]%
psplot-33-x^2/3
psparametricplot-33t^2/3
psplot3-3x^2/3
psparametricplot3-3 t
psrotate
is for more complex objects, not for simple rotations around the origin:
documentclass[border=15pt,pstricks,12pt]standalone
usepackagepstricks-add
begindocument
beginpspicture[showgrid](-3,-3)(3,3)
psframe[dimen=m](-3,-3)(3,3)
%%%
psclipparabola(3,3)(0,0)%
rput-90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
rput90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
endpsclip
psclipparabola(-3,-3)(0,0)%
rput-90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
rput90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
endpsclip
endpspicture
enddocument
or a shorter version
documentclass[border=15pt,pstricks,12pt]standalone
usepackagepstricks-add
defObjectpsclipparabola(3,3)(0,0)%
rput-90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
rput90(0,0)parabola[fillstyle=hlines](3,3)(0,0)
endpsclip
begindocument
beginpspicture[showgrid](-3,-3)(3,3)
psframe[dimen=m](-3,-3)(3,3)
Objectrput180(0,0)Object
endpspicture
enddocument
or without clipping:
pscustom[fillstyle=hlines]%
psplot-33-x^2/3
psplot30-sqrt(3*x)psplot03sqrt(3*x)
psplot3-3x^2/3
psplot-30sqrt(3*(-x))psplot0-3-sqrt(3*(-x))
or
pscustom[fillstyle=hlines]%
psplot-33-x^2/3
psparametricplot-33t^2/3
psplot3-3x^2/3
psparametricplot3-3 t
edited May 11 at 18:09
answered May 11 at 16:52
Red-CloudRed-Cloud
2,30313
2,30313
Yes, I understood.
– Trong Vuong
May 11 at 17:09
add a comment |
Yes, I understood.
– Trong Vuong
May 11 at 17:09
Yes, I understood.
– Trong Vuong
May 11 at 17:09
Yes, I understood.
– Trong Vuong
May 11 at 17:09
add a comment |
It's simpler to plot with swapaxes
:
documentclass[border=15pt, pstricks, svgnames, 12pt]standalone
usepackagepstricks-add
begindocument
beginpspicture[showgrid](-3,-3)(3,3)
psframe[dimen=m](-3,-3)(3,3)
%%%
pssetlinecolor=LightSlateGrey, hatchwidth=0.5pt, hatchsep=3pt, hatchcolor=LightSteelBlue
psclipparabola[](3, 3)(0, 0)%
pssetswapaxes=true, fillstyle=vlines
parabola(3,3)(0,0)
parabola(3,-3)(0,0)
endpsclip
%
psclipparabola(-3, -3)(0, 0)%
pssetswapaxes=true, fillstyle=vlines
parabola(3,3)(0,0)
parabola(3,-3)(0,0)
endpsclip
endpspicture
enddocument
Yes, swapaxes ... I will think about it.
– Trong Vuong
May 12 at 1:15
add a comment |
It's simpler to plot with swapaxes
:
documentclass[border=15pt, pstricks, svgnames, 12pt]standalone
usepackagepstricks-add
begindocument
beginpspicture[showgrid](-3,-3)(3,3)
psframe[dimen=m](-3,-3)(3,3)
%%%
pssetlinecolor=LightSlateGrey, hatchwidth=0.5pt, hatchsep=3pt, hatchcolor=LightSteelBlue
psclipparabola[](3, 3)(0, 0)%
pssetswapaxes=true, fillstyle=vlines
parabola(3,3)(0,0)
parabola(3,-3)(0,0)
endpsclip
%
psclipparabola(-3, -3)(0, 0)%
pssetswapaxes=true, fillstyle=vlines
parabola(3,3)(0,0)
parabola(3,-3)(0,0)
endpsclip
endpspicture
enddocument
Yes, swapaxes ... I will think about it.
– Trong Vuong
May 12 at 1:15
add a comment |
It's simpler to plot with swapaxes
:
documentclass[border=15pt, pstricks, svgnames, 12pt]standalone
usepackagepstricks-add
begindocument
beginpspicture[showgrid](-3,-3)(3,3)
psframe[dimen=m](-3,-3)(3,3)
%%%
pssetlinecolor=LightSlateGrey, hatchwidth=0.5pt, hatchsep=3pt, hatchcolor=LightSteelBlue
psclipparabola[](3, 3)(0, 0)%
pssetswapaxes=true, fillstyle=vlines
parabola(3,3)(0,0)
parabola(3,-3)(0,0)
endpsclip
%
psclipparabola(-3, -3)(0, 0)%
pssetswapaxes=true, fillstyle=vlines
parabola(3,3)(0,0)
parabola(3,-3)(0,0)
endpsclip
endpspicture
enddocument
It's simpler to plot with swapaxes
:
documentclass[border=15pt, pstricks, svgnames, 12pt]standalone
usepackagepstricks-add
begindocument
beginpspicture[showgrid](-3,-3)(3,3)
psframe[dimen=m](-3,-3)(3,3)
%%%
pssetlinecolor=LightSlateGrey, hatchwidth=0.5pt, hatchsep=3pt, hatchcolor=LightSteelBlue
psclipparabola[](3, 3)(0, 0)%
pssetswapaxes=true, fillstyle=vlines
parabola(3,3)(0,0)
parabola(3,-3)(0,0)
endpsclip
%
psclipparabola(-3, -3)(0, 0)%
pssetswapaxes=true, fillstyle=vlines
parabola(3,3)(0,0)
parabola(3,-3)(0,0)
endpsclip
endpspicture
enddocument
edited May 11 at 17:57
answered May 11 at 17:20
BernardBernard
179k779211
179k779211
Yes, swapaxes ... I will think about it.
– Trong Vuong
May 12 at 1:15
add a comment |
Yes, swapaxes ... I will think about it.
– Trong Vuong
May 12 at 1:15
Yes, swapaxes ... I will think about it.
– Trong Vuong
May 12 at 1:15
Yes, swapaxes ... I will think about it.
– Trong Vuong
May 12 at 1:15
add a comment |
Just for fun: a TikZ version.
documentclass[tikz,border=3.14mm]standalone
usetikzlibrarypatterns
begindocument
begintikzpicture
beginscope[every path/.append style=pattern=north west lines]
draw (0,0) parabola (3,3)[rotate=90] parabola[bend pos=1] (0,6);
draw (0,0) parabola (-3,-3)[rotate=90] parabola[bend pos=1] (0,-6);
draw (0,0) parabola (-3,3)[rotate=-90] parabola[bend pos=1] (0,6);
draw (0,0) parabola (3,-3)[rotate=-90] parabola[bend pos=1] (0,-6);
endscope
draw (-3,-3) rectangle (3,3);
endtikzpicture
enddocument
One can do it in one path, too, but then the rotations and shifts start to accumulate.
documentclass[tikz,border=3.14mm]standalone
usetikzlibrarypatterns
begindocument
begintikzpicture
draw[pattern=north west lines] (0,0) coordinate (O) parabola (3,3)
[rotate=90] parabola[bend pos=1] (0,6) [rotate=0]
parabola (-3,3) [rotate=90] parabola[bend pos=1] (O) [rotate=0]
parabola (3,3) [rotate=-90] parabola[bend pos=1] (6,0) [rotate=0]
parabola (9,3)[rotate=-90] parabola[bend pos=1] (12,0);
draw (-3,-3) rectangle (3,3);
endtikzpicture
enddocument
Thank for your answer.
– Trong Vuong
May 11 at 17:04
add a comment |
Just for fun: a TikZ version.
documentclass[tikz,border=3.14mm]standalone
usetikzlibrarypatterns
begindocument
begintikzpicture
beginscope[every path/.append style=pattern=north west lines]
draw (0,0) parabola (3,3)[rotate=90] parabola[bend pos=1] (0,6);
draw (0,0) parabola (-3,-3)[rotate=90] parabola[bend pos=1] (0,-6);
draw (0,0) parabola (-3,3)[rotate=-90] parabola[bend pos=1] (0,6);
draw (0,0) parabola (3,-3)[rotate=-90] parabola[bend pos=1] (0,-6);
endscope
draw (-3,-3) rectangle (3,3);
endtikzpicture
enddocument
One can do it in one path, too, but then the rotations and shifts start to accumulate.
documentclass[tikz,border=3.14mm]standalone
usetikzlibrarypatterns
begindocument
begintikzpicture
draw[pattern=north west lines] (0,0) coordinate (O) parabola (3,3)
[rotate=90] parabola[bend pos=1] (0,6) [rotate=0]
parabola (-3,3) [rotate=90] parabola[bend pos=1] (O) [rotate=0]
parabola (3,3) [rotate=-90] parabola[bend pos=1] (6,0) [rotate=0]
parabola (9,3)[rotate=-90] parabola[bend pos=1] (12,0);
draw (-3,-3) rectangle (3,3);
endtikzpicture
enddocument
Thank for your answer.
– Trong Vuong
May 11 at 17:04
add a comment |
Just for fun: a TikZ version.
documentclass[tikz,border=3.14mm]standalone
usetikzlibrarypatterns
begindocument
begintikzpicture
beginscope[every path/.append style=pattern=north west lines]
draw (0,0) parabola (3,3)[rotate=90] parabola[bend pos=1] (0,6);
draw (0,0) parabola (-3,-3)[rotate=90] parabola[bend pos=1] (0,-6);
draw (0,0) parabola (-3,3)[rotate=-90] parabola[bend pos=1] (0,6);
draw (0,0) parabola (3,-3)[rotate=-90] parabola[bend pos=1] (0,-6);
endscope
draw (-3,-3) rectangle (3,3);
endtikzpicture
enddocument
One can do it in one path, too, but then the rotations and shifts start to accumulate.
documentclass[tikz,border=3.14mm]standalone
usetikzlibrarypatterns
begindocument
begintikzpicture
draw[pattern=north west lines] (0,0) coordinate (O) parabola (3,3)
[rotate=90] parabola[bend pos=1] (0,6) [rotate=0]
parabola (-3,3) [rotate=90] parabola[bend pos=1] (O) [rotate=0]
parabola (3,3) [rotate=-90] parabola[bend pos=1] (6,0) [rotate=0]
parabola (9,3)[rotate=-90] parabola[bend pos=1] (12,0);
draw (-3,-3) rectangle (3,3);
endtikzpicture
enddocument
Just for fun: a TikZ version.
documentclass[tikz,border=3.14mm]standalone
usetikzlibrarypatterns
begindocument
begintikzpicture
beginscope[every path/.append style=pattern=north west lines]
draw (0,0) parabola (3,3)[rotate=90] parabola[bend pos=1] (0,6);
draw (0,0) parabola (-3,-3)[rotate=90] parabola[bend pos=1] (0,-6);
draw (0,0) parabola (-3,3)[rotate=-90] parabola[bend pos=1] (0,6);
draw (0,0) parabola (3,-3)[rotate=-90] parabola[bend pos=1] (0,-6);
endscope
draw (-3,-3) rectangle (3,3);
endtikzpicture
enddocument
One can do it in one path, too, but then the rotations and shifts start to accumulate.
documentclass[tikz,border=3.14mm]standalone
usetikzlibrarypatterns
begindocument
begintikzpicture
draw[pattern=north west lines] (0,0) coordinate (O) parabola (3,3)
[rotate=90] parabola[bend pos=1] (0,6) [rotate=0]
parabola (-3,3) [rotate=90] parabola[bend pos=1] (O) [rotate=0]
parabola (3,3) [rotate=-90] parabola[bend pos=1] (6,0) [rotate=0]
parabola (9,3)[rotate=-90] parabola[bend pos=1] (12,0);
draw (-3,-3) rectangle (3,3);
endtikzpicture
enddocument
edited May 11 at 18:01
answered May 11 at 16:45
marmotmarmot
127k6162308
127k6162308
Thank for your answer.
– Trong Vuong
May 11 at 17:04
add a comment |
Thank for your answer.
– Trong Vuong
May 11 at 17:04
Thank for your answer.
– Trong Vuong
May 11 at 17:04
Thank for your answer.
– Trong Vuong
May 11 at 17:04
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%2f490349%2fhow-to-compact-two-the-parabol-commands-in-the-following-example%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
1
Yes, you need
%
at the end of everypsrotate
line.– egreg
May 11 at 16:27