A wheel-like figure











up vote
5
down vote

favorite
1












I am trying to draw a wheel-like figure like this. I had used xfig.



enter image description here



I wonder whether I can also use LaTex tikz or other ways to get similar figure with the additional criterion





  • the area enclosed by the four red rectangulars/squares --- should have been filled in with a gray shaded but still transparent color (like tunable transparency 10%, 30%, 50%, 70% for each wing of the 4 wings of the wheel) or so.




Do any experts know how to do this?



Thank you! (I will accept the answer very soon)










share|improve this question






















  • XFig supports LaTeX export. (Screenshot of the export menu)
    – Henri Menke
    Nov 30 at 4:40















up vote
5
down vote

favorite
1












I am trying to draw a wheel-like figure like this. I had used xfig.



enter image description here



I wonder whether I can also use LaTex tikz or other ways to get similar figure with the additional criterion





  • the area enclosed by the four red rectangulars/squares --- should have been filled in with a gray shaded but still transparent color (like tunable transparency 10%, 30%, 50%, 70% for each wing of the 4 wings of the wheel) or so.




Do any experts know how to do this?



Thank you! (I will accept the answer very soon)










share|improve this question






















  • XFig supports LaTeX export. (Screenshot of the export menu)
    – Henri Menke
    Nov 30 at 4:40













up vote
5
down vote

favorite
1









up vote
5
down vote

favorite
1






1





I am trying to draw a wheel-like figure like this. I had used xfig.



enter image description here



I wonder whether I can also use LaTex tikz or other ways to get similar figure with the additional criterion





  • the area enclosed by the four red rectangulars/squares --- should have been filled in with a gray shaded but still transparent color (like tunable transparency 10%, 30%, 50%, 70% for each wing of the 4 wings of the wheel) or so.




Do any experts know how to do this?



Thank you! (I will accept the answer very soon)










share|improve this question













I am trying to draw a wheel-like figure like this. I had used xfig.



enter image description here



I wonder whether I can also use LaTex tikz or other ways to get similar figure with the additional criterion





  • the area enclosed by the four red rectangulars/squares --- should have been filled in with a gray shaded but still transparent color (like tunable transparency 10%, 30%, 50%, 70% for each wing of the 4 wings of the wheel) or so.




Do any experts know how to do this?



Thank you! (I will accept the answer very soon)







tikz-pgf color tikz-styles shading






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 30 at 4:27









annie heart

1664




1664












  • XFig supports LaTeX export. (Screenshot of the export menu)
    – Henri Menke
    Nov 30 at 4:40


















  • XFig supports LaTeX export. (Screenshot of the export menu)
    – Henri Menke
    Nov 30 at 4:40
















XFig supports LaTeX export. (Screenshot of the export menu)
– Henri Menke
Nov 30 at 4:40




XFig supports LaTeX export. (Screenshot of the export menu)
– Henri Menke
Nov 30 at 4:40










1 Answer
1






active

oldest

votes

















up vote
10
down vote



accepted










Yes, LaTeX can do such things.



documentclass[tikz,border=3.14mm]{standalone}
usepackage{tikz-3dplot}
usetikzlibrary{decorations.markings}
begin{document}
tikzset{->-/.style={decoration={
markings,
mark=at position #1 with {arrow{>}}},postaction={decorate}}}
begin{tikzpicture}[thick,scale=5,>=stealth]
tdplotsetmaincoords{70}{60}
begin{scope}[tdplot_main_coords]
draw[thick,blue] (0,0,0) -- (0,0,1.7);
foreach X/Y in {0/0.2,90/0.3,180/0.4,270/0.5}
{tdplotsetrotatedcoords{X}{0}{0}
begin{scope}[tdplot_rotated_coords]
draw[thick,->-=0.075,->-=0.575,fill=gray,opacity=Y] (0.1,0,0) -- (1.6,0,0) -- (1.6,0,1.5) -- (0.1,0,1.5) -- cycle;
draw[thick,red,->-=0.4,->-=0.9] (0.2,0,0.1) -- (0.2,0,1.4) -- (1.5,0,1.4) --
(1.5,0,0.1) -- cycle;
end{scope}}
draw[->,blue,thick] plot[variable=x,domain=20:-200,samples=31,smooth] ({0.3*sin(x)},{0.3*cos(x)},1.8);
end{scope}
end{tikzpicture}
end{document}


enter image description here






share|improve this answer

















  • 1




    Thanks +1 - you are the tikz god! Can you remind me the function to tune the transparency of the shade area?
    – annie heart
    Nov 30 at 4:54






  • 1




    @annieheart opacity=<value>. In this example the four planes have the opacitie 0.2 ... 0.5, i.e. the Y value in the foreach loop.
    – marmot
    Nov 30 at 4:56










  • I forgot to mention that ->- is from tex.stackexchange.com/a/39282/121799.
    – marmot
    Nov 30 at 5:12











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%2f462510%2fa-wheel-like-figure%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
10
down vote



accepted










Yes, LaTeX can do such things.



documentclass[tikz,border=3.14mm]{standalone}
usepackage{tikz-3dplot}
usetikzlibrary{decorations.markings}
begin{document}
tikzset{->-/.style={decoration={
markings,
mark=at position #1 with {arrow{>}}},postaction={decorate}}}
begin{tikzpicture}[thick,scale=5,>=stealth]
tdplotsetmaincoords{70}{60}
begin{scope}[tdplot_main_coords]
draw[thick,blue] (0,0,0) -- (0,0,1.7);
foreach X/Y in {0/0.2,90/0.3,180/0.4,270/0.5}
{tdplotsetrotatedcoords{X}{0}{0}
begin{scope}[tdplot_rotated_coords]
draw[thick,->-=0.075,->-=0.575,fill=gray,opacity=Y] (0.1,0,0) -- (1.6,0,0) -- (1.6,0,1.5) -- (0.1,0,1.5) -- cycle;
draw[thick,red,->-=0.4,->-=0.9] (0.2,0,0.1) -- (0.2,0,1.4) -- (1.5,0,1.4) --
(1.5,0,0.1) -- cycle;
end{scope}}
draw[->,blue,thick] plot[variable=x,domain=20:-200,samples=31,smooth] ({0.3*sin(x)},{0.3*cos(x)},1.8);
end{scope}
end{tikzpicture}
end{document}


enter image description here






share|improve this answer

















  • 1




    Thanks +1 - you are the tikz god! Can you remind me the function to tune the transparency of the shade area?
    – annie heart
    Nov 30 at 4:54






  • 1




    @annieheart opacity=<value>. In this example the four planes have the opacitie 0.2 ... 0.5, i.e. the Y value in the foreach loop.
    – marmot
    Nov 30 at 4:56










  • I forgot to mention that ->- is from tex.stackexchange.com/a/39282/121799.
    – marmot
    Nov 30 at 5:12















up vote
10
down vote



accepted










Yes, LaTeX can do such things.



documentclass[tikz,border=3.14mm]{standalone}
usepackage{tikz-3dplot}
usetikzlibrary{decorations.markings}
begin{document}
tikzset{->-/.style={decoration={
markings,
mark=at position #1 with {arrow{>}}},postaction={decorate}}}
begin{tikzpicture}[thick,scale=5,>=stealth]
tdplotsetmaincoords{70}{60}
begin{scope}[tdplot_main_coords]
draw[thick,blue] (0,0,0) -- (0,0,1.7);
foreach X/Y in {0/0.2,90/0.3,180/0.4,270/0.5}
{tdplotsetrotatedcoords{X}{0}{0}
begin{scope}[tdplot_rotated_coords]
draw[thick,->-=0.075,->-=0.575,fill=gray,opacity=Y] (0.1,0,0) -- (1.6,0,0) -- (1.6,0,1.5) -- (0.1,0,1.5) -- cycle;
draw[thick,red,->-=0.4,->-=0.9] (0.2,0,0.1) -- (0.2,0,1.4) -- (1.5,0,1.4) --
(1.5,0,0.1) -- cycle;
end{scope}}
draw[->,blue,thick] plot[variable=x,domain=20:-200,samples=31,smooth] ({0.3*sin(x)},{0.3*cos(x)},1.8);
end{scope}
end{tikzpicture}
end{document}


enter image description here






share|improve this answer

















  • 1




    Thanks +1 - you are the tikz god! Can you remind me the function to tune the transparency of the shade area?
    – annie heart
    Nov 30 at 4:54






  • 1




    @annieheart opacity=<value>. In this example the four planes have the opacitie 0.2 ... 0.5, i.e. the Y value in the foreach loop.
    – marmot
    Nov 30 at 4:56










  • I forgot to mention that ->- is from tex.stackexchange.com/a/39282/121799.
    – marmot
    Nov 30 at 5:12













up vote
10
down vote



accepted







up vote
10
down vote



accepted






Yes, LaTeX can do such things.



documentclass[tikz,border=3.14mm]{standalone}
usepackage{tikz-3dplot}
usetikzlibrary{decorations.markings}
begin{document}
tikzset{->-/.style={decoration={
markings,
mark=at position #1 with {arrow{>}}},postaction={decorate}}}
begin{tikzpicture}[thick,scale=5,>=stealth]
tdplotsetmaincoords{70}{60}
begin{scope}[tdplot_main_coords]
draw[thick,blue] (0,0,0) -- (0,0,1.7);
foreach X/Y in {0/0.2,90/0.3,180/0.4,270/0.5}
{tdplotsetrotatedcoords{X}{0}{0}
begin{scope}[tdplot_rotated_coords]
draw[thick,->-=0.075,->-=0.575,fill=gray,opacity=Y] (0.1,0,0) -- (1.6,0,0) -- (1.6,0,1.5) -- (0.1,0,1.5) -- cycle;
draw[thick,red,->-=0.4,->-=0.9] (0.2,0,0.1) -- (0.2,0,1.4) -- (1.5,0,1.4) --
(1.5,0,0.1) -- cycle;
end{scope}}
draw[->,blue,thick] plot[variable=x,domain=20:-200,samples=31,smooth] ({0.3*sin(x)},{0.3*cos(x)},1.8);
end{scope}
end{tikzpicture}
end{document}


enter image description here






share|improve this answer












Yes, LaTeX can do such things.



documentclass[tikz,border=3.14mm]{standalone}
usepackage{tikz-3dplot}
usetikzlibrary{decorations.markings}
begin{document}
tikzset{->-/.style={decoration={
markings,
mark=at position #1 with {arrow{>}}},postaction={decorate}}}
begin{tikzpicture}[thick,scale=5,>=stealth]
tdplotsetmaincoords{70}{60}
begin{scope}[tdplot_main_coords]
draw[thick,blue] (0,0,0) -- (0,0,1.7);
foreach X/Y in {0/0.2,90/0.3,180/0.4,270/0.5}
{tdplotsetrotatedcoords{X}{0}{0}
begin{scope}[tdplot_rotated_coords]
draw[thick,->-=0.075,->-=0.575,fill=gray,opacity=Y] (0.1,0,0) -- (1.6,0,0) -- (1.6,0,1.5) -- (0.1,0,1.5) -- cycle;
draw[thick,red,->-=0.4,->-=0.9] (0.2,0,0.1) -- (0.2,0,1.4) -- (1.5,0,1.4) --
(1.5,0,0.1) -- cycle;
end{scope}}
draw[->,blue,thick] plot[variable=x,domain=20:-200,samples=31,smooth] ({0.3*sin(x)},{0.3*cos(x)},1.8);
end{scope}
end{tikzpicture}
end{document}


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 30 at 4:51









marmot

81.8k491174




81.8k491174








  • 1




    Thanks +1 - you are the tikz god! Can you remind me the function to tune the transparency of the shade area?
    – annie heart
    Nov 30 at 4:54






  • 1




    @annieheart opacity=<value>. In this example the four planes have the opacitie 0.2 ... 0.5, i.e. the Y value in the foreach loop.
    – marmot
    Nov 30 at 4:56










  • I forgot to mention that ->- is from tex.stackexchange.com/a/39282/121799.
    – marmot
    Nov 30 at 5:12














  • 1




    Thanks +1 - you are the tikz god! Can you remind me the function to tune the transparency of the shade area?
    – annie heart
    Nov 30 at 4:54






  • 1




    @annieheart opacity=<value>. In this example the four planes have the opacitie 0.2 ... 0.5, i.e. the Y value in the foreach loop.
    – marmot
    Nov 30 at 4:56










  • I forgot to mention that ->- is from tex.stackexchange.com/a/39282/121799.
    – marmot
    Nov 30 at 5:12








1




1




Thanks +1 - you are the tikz god! Can you remind me the function to tune the transparency of the shade area?
– annie heart
Nov 30 at 4:54




Thanks +1 - you are the tikz god! Can you remind me the function to tune the transparency of the shade area?
– annie heart
Nov 30 at 4:54




1




1




@annieheart opacity=<value>. In this example the four planes have the opacitie 0.2 ... 0.5, i.e. the Y value in the foreach loop.
– marmot
Nov 30 at 4:56




@annieheart opacity=<value>. In this example the four planes have the opacitie 0.2 ... 0.5, i.e. the Y value in the foreach loop.
– marmot
Nov 30 at 4:56












I forgot to mention that ->- is from tex.stackexchange.com/a/39282/121799.
– marmot
Nov 30 at 5:12




I forgot to mention that ->- is from tex.stackexchange.com/a/39282/121799.
– marmot
Nov 30 at 5:12


















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%2f462510%2fa-wheel-like-figure%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

flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

Mangá

 ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕