A wheel-like figure
up vote
3
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
3
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
2 hours ago
add a comment |
up vote
3
down vote
favorite
up vote
3
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 3 hours ago
annie heart
1564
1564
XFig supports LaTeX export. (Screenshot of the export menu)
– Henri Menke
2 hours ago
add a comment |
XFig supports LaTeX export. (Screenshot of the export menu)
– Henri Menke
2 hours ago
XFig supports LaTeX export. (Screenshot of the export menu)
– Henri Menke
2 hours ago
XFig supports LaTeX export. (Screenshot of the export menu)
– Henri Menke
2 hours ago
add a comment |
1 Answer
1
active
oldest
votes
up vote
6
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}
Thanks +1 - you are the tikz god! Can you remind me the function to tune the transparency of the shade area?
– annie heart
2 hours ago
1
@annieheartopacity=<value>
. In this example the four planes have the opacitie0.2
...0.5
, i.e. theY
value in the foreach loop.
– marmot
2 hours ago
I forgot to mention that->-
is from tex.stackexchange.com/a/39282/121799.
– marmot
2 hours ago
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
6
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}
Thanks +1 - you are the tikz god! Can you remind me the function to tune the transparency of the shade area?
– annie heart
2 hours ago
1
@annieheartopacity=<value>
. In this example the four planes have the opacitie0.2
...0.5
, i.e. theY
value in the foreach loop.
– marmot
2 hours ago
I forgot to mention that->-
is from tex.stackexchange.com/a/39282/121799.
– marmot
2 hours ago
add a comment |
up vote
6
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}
Thanks +1 - you are the tikz god! Can you remind me the function to tune the transparency of the shade area?
– annie heart
2 hours ago
1
@annieheartopacity=<value>
. In this example the four planes have the opacitie0.2
...0.5
, i.e. theY
value in the foreach loop.
– marmot
2 hours ago
I forgot to mention that->-
is from tex.stackexchange.com/a/39282/121799.
– marmot
2 hours ago
add a comment |
up vote
6
down vote
accepted
up vote
6
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 2 hours ago
marmot
79.4k488166
79.4k488166
Thanks +1 - you are the tikz god! Can you remind me the function to tune the transparency of the shade area?
– annie heart
2 hours ago
1
@annieheartopacity=<value>
. In this example the four planes have the opacitie0.2
...0.5
, i.e. theY
value in the foreach loop.
– marmot
2 hours ago
I forgot to mention that->-
is from tex.stackexchange.com/a/39282/121799.
– marmot
2 hours ago
add a comment |
Thanks +1 - you are the tikz god! Can you remind me the function to tune the transparency of the shade area?
– annie heart
2 hours ago
1
@annieheartopacity=<value>
. In this example the four planes have the opacitie0.2
...0.5
, i.e. theY
value in the foreach loop.
– marmot
2 hours ago
I forgot to mention that->-
is from tex.stackexchange.com/a/39282/121799.
– marmot
2 hours ago
Thanks +1 - you are the tikz god! Can you remind me the function to tune the transparency of the shade area?
– annie heart
2 hours ago
Thanks +1 - you are the tikz god! Can you remind me the function to tune the transparency of the shade area?
– annie heart
2 hours 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
2 hours 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
2 hours ago
I forgot to mention that
->-
is from tex.stackexchange.com/a/39282/121799.– marmot
2 hours ago
I forgot to mention that
->-
is from tex.stackexchange.com/a/39282/121799.– marmot
2 hours ago
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
2 hours ago