Drawing a sub cubic grid inside a cubic grid (with different gray scales)
up vote
0
down vote
favorite
This is a related but very simple follow-up to a previous question, inspired by the comment of @marmot "Or do you want to use different grays for different planes?"
Here is what I have
This is a 8 x 8 x 8 cubic.
Suppose I like to have a 3 x 4 x 5 lattice with a darker lattice sitting at a new origin (2,2,2) of this 8 x 8 x 8 cubic. How should I do this? [It looks simple -- I just need to redraw another a 3 x 4 x 5 lattice sitting at a new origin (2,2,2).]
begin{figure}[h!]
centering
begin{tikzpicture}[tdplot_main_coords]
begin{scope}[line width=0.01pt,black!20,xshift=5cm,scale=1.5]
foreach X in {0,1,...,8}
{foreach Y in {0,1,...,8}
{draw (X/2,Y/2,0) -- (X/2,Y/2,8/2);
draw (X/2,0,Y/2) -- (X/2,8/2,Y/2);
draw (0,X/2,Y/2) -- (8/2,X/2,Y/2);}}
end{scope}
end{tikzpicture}
label{fig:lattice-2}
caption{}
end{figure}
tikz-pgf tikz-styles technical-drawing draw grids
add a comment |
up vote
0
down vote
favorite
This is a related but very simple follow-up to a previous question, inspired by the comment of @marmot "Or do you want to use different grays for different planes?"
Here is what I have
This is a 8 x 8 x 8 cubic.
Suppose I like to have a 3 x 4 x 5 lattice with a darker lattice sitting at a new origin (2,2,2) of this 8 x 8 x 8 cubic. How should I do this? [It looks simple -- I just need to redraw another a 3 x 4 x 5 lattice sitting at a new origin (2,2,2).]
begin{figure}[h!]
centering
begin{tikzpicture}[tdplot_main_coords]
begin{scope}[line width=0.01pt,black!20,xshift=5cm,scale=1.5]
foreach X in {0,1,...,8}
{foreach Y in {0,1,...,8}
{draw (X/2,Y/2,0) -- (X/2,Y/2,8/2);
draw (X/2,0,Y/2) -- (X/2,8/2,Y/2);
draw (0,X/2,Y/2) -- (8/2,X/2,Y/2);}}
end{scope}
end{tikzpicture}
label{fig:lattice-2}
caption{}
end{figure}
tikz-pgf tikz-styles technical-drawing draw grids
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
This is a related but very simple follow-up to a previous question, inspired by the comment of @marmot "Or do you want to use different grays for different planes?"
Here is what I have
This is a 8 x 8 x 8 cubic.
Suppose I like to have a 3 x 4 x 5 lattice with a darker lattice sitting at a new origin (2,2,2) of this 8 x 8 x 8 cubic. How should I do this? [It looks simple -- I just need to redraw another a 3 x 4 x 5 lattice sitting at a new origin (2,2,2).]
begin{figure}[h!]
centering
begin{tikzpicture}[tdplot_main_coords]
begin{scope}[line width=0.01pt,black!20,xshift=5cm,scale=1.5]
foreach X in {0,1,...,8}
{foreach Y in {0,1,...,8}
{draw (X/2,Y/2,0) -- (X/2,Y/2,8/2);
draw (X/2,0,Y/2) -- (X/2,8/2,Y/2);
draw (0,X/2,Y/2) -- (8/2,X/2,Y/2);}}
end{scope}
end{tikzpicture}
label{fig:lattice-2}
caption{}
end{figure}
tikz-pgf tikz-styles technical-drawing draw grids
This is a related but very simple follow-up to a previous question, inspired by the comment of @marmot "Or do you want to use different grays for different planes?"
Here is what I have
This is a 8 x 8 x 8 cubic.
Suppose I like to have a 3 x 4 x 5 lattice with a darker lattice sitting at a new origin (2,2,2) of this 8 x 8 x 8 cubic. How should I do this? [It looks simple -- I just need to redraw another a 3 x 4 x 5 lattice sitting at a new origin (2,2,2).]
begin{figure}[h!]
centering
begin{tikzpicture}[tdplot_main_coords]
begin{scope}[line width=0.01pt,black!20,xshift=5cm,scale=1.5]
foreach X in {0,1,...,8}
{foreach Y in {0,1,...,8}
{draw (X/2,Y/2,0) -- (X/2,Y/2,8/2);
draw (X/2,0,Y/2) -- (X/2,8/2,Y/2);
draw (0,X/2,Y/2) -- (8/2,X/2,Y/2);}}
end{scope}
end{tikzpicture}
label{fig:lattice-2}
caption{}
end{figure}
tikz-pgf tikz-styles technical-drawing draw grids
tikz-pgf tikz-styles technical-drawing draw grids
asked 9 mins ago
wonderich
585518
585518
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f464454%2fdrawing-a-sub-cubic-grid-inside-a-cubic-grid-with-different-gray-scales%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