A wheel-like figure
up vote
5
down vote
favorite
I am trying to draw a wheel-like figure like this. I had used xfig.
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
add a comment |
up vote
5
down vote
favorite
I am trying to draw a wheel-like figure like this. I had used xfig.
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
XFig supports LaTeX export. (Screenshot of the export menu)
– Henri Menke
Nov 30 at 4:40
add a comment |
up vote
5
down vote
favorite
up vote
5
down vote
favorite
I am trying to draw a wheel-like figure like this. I had used xfig.
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
I am trying to draw a wheel-like figure like this. I had used xfig.
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
tikz-pgf color tikz-styles shading
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
add a comment |
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
add a comment |
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}
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
@annieheartopacity=<value>
. In this example the four planes have the opacitie0.2
...0.5
, i.e. theY
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
add a comment |
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}
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
@annieheartopacity=<value>
. In this example the four planes have the opacitie0.2
...0.5
, i.e. theY
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
add a comment |
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}
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
@annieheartopacity=<value>
. In this example the four planes have the opacitie0.2
...0.5
, i.e. theY
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
add a comment |
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}
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}
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
@annieheartopacity=<value>
. In this example the four planes have the opacitie0.2
...0.5
, i.e. theY
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
add a comment |
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
@annieheartopacity=<value>
. In this example the four planes have the opacitie0.2
...0.5
, i.e. theY
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
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.
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.
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%2f462510%2fa-wheel-like-figure%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
XFig supports LaTeX export. (Screenshot of the export menu)
– Henri Menke
Nov 30 at 4:40