Drawing a sub cubic grid inside a cubic grid (with different gray scales)











up vote
0
down vote

favorite
1












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



enter image description here



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}








share


























    up vote
    0
    down vote

    favorite
    1












    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



    enter image description here



    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}








    share
























      up vote
      0
      down vote

      favorite
      1









      up vote
      0
      down vote

      favorite
      1






      1





      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



      enter image description here



      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}








      share













      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



      enter image description here



      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





      share












      share










      share



      share










      asked 9 mins ago









      wonderich

      585518




      585518



























          active

          oldest

          votes











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






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















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





















































          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

          サソリ

          広島県道265号伴広島線

          Setup Asymptote in Texstudio