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
    yesterday















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
    yesterday













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 yesterday









annie heart

1664




1664












  • XFig supports LaTeX export. (Screenshot of the export menu)
    – Henri Menke
    yesterday


















  • XFig supports LaTeX export. (Screenshot of the export menu)
    – Henri Menke
    yesterday
















XFig supports LaTeX export. (Screenshot of the export menu)
– Henri Menke
yesterday




XFig supports LaTeX export. (Screenshot of the export menu)
– Henri Menke
yesterday










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
    yesterday






  • 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
    yesterday










  • I forgot to mention that ->- is from tex.stackexchange.com/a/39282/121799.
    – marmot
    yesterday











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
    yesterday






  • 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
    yesterday










  • I forgot to mention that ->- is from tex.stackexchange.com/a/39282/121799.
    – marmot
    yesterday















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
    yesterday






  • 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
    yesterday










  • I forgot to mention that ->- is from tex.stackexchange.com/a/39282/121799.
    – marmot
    yesterday













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 yesterday









marmot

79.6k490168




79.6k490168








  • 1




    Thanks +1 - you are the tikz god! Can you remind me the function to tune the transparency of the shade area?
    – annie heart
    yesterday






  • 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
    yesterday










  • I forgot to mention that ->- is from tex.stackexchange.com/a/39282/121799.
    – marmot
    yesterday














  • 1




    Thanks +1 - you are the tikz god! Can you remind me the function to tune the transparency of the shade area?
    – annie heart
    yesterday






  • 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
    yesterday










  • I forgot to mention that ->- is from tex.stackexchange.com/a/39282/121799.
    – marmot
    yesterday








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
yesterday




Thanks +1 - you are the tikz god! Can you remind me the function to tune the transparency of the shade area?
– annie heart
yesterday




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
yesterday




@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
yesterday












I forgot to mention that ->- is from tex.stackexchange.com/a/39282/121799.
– marmot
yesterday




I forgot to mention that ->- is from tex.stackexchange.com/a/39282/121799.
– marmot
yesterday


















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

Bressuire

Cabo Verde

Gyllenstierna