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)


Yes, LaTeX can do such things.

  mark=at position #1 with {\arrow{>}}},postaction={decorate}}}
 \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}
  \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;
 \draw[->,blue,thick] plot[variable=\x,domain=20:-200,samples=31,smooth] ({0.3*sin(\x)},{0.3*cos(\x)},1.8);

enter image description here

  • 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 '18 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 '18 at 4:56
  • I forgot to mention that ->- is from tex.stackexchange.com/a/39282/121799. – marmot Nov 30 '18 at 5:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.