A wheel-like figure











up vote
2
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
    1 hour ago















up vote
2
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
    1 hour ago













up vote
2
down vote

favorite
1









up vote
2
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 2 hours ago









annie heart

1514




1514












  • XFig supports LaTeX export. (Screenshot of the export menu)
    – Henri Menke
    1 hour ago


















  • XFig supports LaTeX export. (Screenshot of the export menu)
    – Henri Menke
    1 hour ago
















XFig supports LaTeX export. (Screenshot of the export menu)
– Henri Menke
1 hour ago




XFig supports LaTeX export. (Screenshot of the export menu)
– Henri Menke
1 hour ago










1 Answer
1






active

oldest

votes

















up vote
4
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





















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






  • 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
    1 hour ago










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











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





















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






  • 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
    1 hour ago










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















up vote
4
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





















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






  • 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
    1 hour ago










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













up vote
4
down vote



accepted







up vote
4
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 1 hour ago









marmot

79.3k488166




79.3k488166












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






  • 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
    1 hour ago










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


















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






  • 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
    1 hour ago










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
















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




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




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
1 hour ago




@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
1 hour ago












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




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


















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á

Eduardo VII do Reino Unido