Representing 3 points (also with negative coordinates) in a 3d cartesian plane

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












12














I'm trying to represent 3 points in a 3D Cartesian plane. I can do the Cartesian plane but I can not make the grid and color the parts of the plan in yellow, orange and blue. Can you help me?



documentclassstandalone
usepackagetikz
begindocument

begintikzpicture[x=1pt, y=1pt, z=-0.5pt] % Agh
% Let's draw some 3D axes
coordinate (x) at (100,0,0);
coordinate (y) at (0,100,0);
coordinate (z) at (0,0,100);
foreach axis in x,y,z
draw[-latex] (0,0,0) -- (axis);

endtikzpicture

enddocument


enter image description here










share|improve this question




























    12














    I'm trying to represent 3 points in a 3D Cartesian plane. I can do the Cartesian plane but I can not make the grid and color the parts of the plan in yellow, orange and blue. Can you help me?



    documentclassstandalone
    usepackagetikz
    begindocument

    begintikzpicture[x=1pt, y=1pt, z=-0.5pt] % Agh
    % Let's draw some 3D axes
    coordinate (x) at (100,0,0);
    coordinate (y) at (0,100,0);
    coordinate (z) at (0,0,100);
    foreach axis in x,y,z
    draw[-latex] (0,0,0) -- (axis);

    endtikzpicture

    enddocument


    enter image description here










    share|improve this question


























      12












      12








      12


      1





      I'm trying to represent 3 points in a 3D Cartesian plane. I can do the Cartesian plane but I can not make the grid and color the parts of the plan in yellow, orange and blue. Can you help me?



      documentclassstandalone
      usepackagetikz
      begindocument

      begintikzpicture[x=1pt, y=1pt, z=-0.5pt] % Agh
      % Let's draw some 3D axes
      coordinate (x) at (100,0,0);
      coordinate (y) at (0,100,0);
      coordinate (z) at (0,0,100);
      foreach axis in x,y,z
      draw[-latex] (0,0,0) -- (axis);

      endtikzpicture

      enddocument


      enter image description here










      share|improve this question















      I'm trying to represent 3 points in a 3D Cartesian plane. I can do the Cartesian plane but I can not make the grid and color the parts of the plan in yellow, orange and blue. Can you help me?



      documentclassstandalone
      usepackagetikz
      begindocument

      begintikzpicture[x=1pt, y=1pt, z=-0.5pt] % Agh
      % Let's draw some 3D axes
      coordinate (x) at (100,0,0);
      coordinate (y) at (0,100,0);
      coordinate (z) at (0,0,100);
      foreach axis in x,y,z
      draw[-latex] (0,0,0) -- (axis);

      endtikzpicture

      enddocument


      enter image description here







      tikz-pgf






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 26 '18 at 15:54









      caverac

      6,0051625




      6,0051625










      asked Dec 26 '18 at 13:08









      ryukryuk

      1,090720




      1,090720




















          1 Answer
          1






          active

          oldest

          votes


















          10














          This should get you started



          documentclassarticle
          usepackagetikz
          usetikzlibrary3d
          usetikzlibrarycalc

          begindocument

          begintikzpicture [x=(-0.6cm,-0.4cm), y=(1cm,0cm), z=(0cm,1cm), scale=1]
          beginscope[canvas is zy plane at x=0]
          fill[blue, opacity = 0.2] (0, 0) rectangle (6, 6);
          draw[gray!40] (0, 0) grid (6, 6);
          endscope

          beginscope[canvas is zx plane at y=0]
          fill[orange, opacity = 0.2] (0, 0) rectangle (6, 8);
          draw[gray!40] (0, 0) grid (6, 8);
          draw[black, -latex] (0, 0) -- (6.5, 0) node[left] $z$;

          draw[gray, -latex] (0, 0) -- (-3.5, 0);
          foreach z in 1,...,6 draw (z, -0.1) -- (z, 0.1) node[left]z;
          foreach z in -3,...,-1 draw[gray] (z, -0.1) -- (z, 0.1) node[left]z;

          endscope

          beginscope[canvas is yx plane at z=0]
          fill[yellow, opacity = 0.2] (0, 0) rectangle (6, 8);
          draw[gray!40] (0, 0) grid (6, 8);

          draw[black, -latex] (0, 0) -- (6.5, 0) node[above] $y$;
          draw[black, -latex] (0, 0) -- (0, 8.5) node[above] $x$;

          draw[gray, -latex] (0, 0) -- (0, -8.5);
          foreach x in 0,...,8 draw (-0.1, x) -- (0.1, x) node[right]x;
          foreach x in -8,...,-1 draw[gray] (-0.1, x) -- (0.1, x) node[right]x;

          draw[gray, -latex] (0, 0) -- (-4.5, 0);
          foreach y in 1,...,6 draw (y, -0.1) -- (y, 0.1) node[below]y;
          foreach y in -4,...,-1 draw[gray] (y, -0.1) -- (y, 0.1) node[below]-y;
          endscope

          fill[black] (2, 4, 3) circle (0.05) node[above]$P$;
          draw[red, thick] (0, 4, 0) -- (2, 4, 0);
          draw[blue, thick] (2, 4, 0) -- (2, 4, 3);
          draw[green, thick] (2, 0, 0) -- (2, 4, 0);

          endtikzpicture
          enddocument


          enter image description here






          share|improve this answer




















          • thank you so much! I'll analyse the code! One question... how can I erase the arrow in the final parts of the axis (with negative numbers)? look at the picture.
            – ryuk
            Dec 26 '18 at 15:08






          • 1




            @ryuk Change draw[gray, -latex] (0, 0) -- (-3.5, 0); to draw[gray] (0, 0) -- (-3.5, 0);
            – caverac
            Dec 26 '18 at 15:09










          • thanks...I mean I would like to see only one arrow for axis and not two ;)
            – ryuk
            Dec 26 '18 at 15:12







          • 1




            @ryuk Right, the change above should do it, it removes the arrow tip, but leaves the axis untouched otherwise
            – caverac
            Dec 26 '18 at 15:13











          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',
          autoActivateHeartbeat: false,
          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%2f467395%2frepresenting-3-points-also-with-negative-coordinates-in-a-3d-cartesian-plane%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          10














          This should get you started



          documentclassarticle
          usepackagetikz
          usetikzlibrary3d
          usetikzlibrarycalc

          begindocument

          begintikzpicture [x=(-0.6cm,-0.4cm), y=(1cm,0cm), z=(0cm,1cm), scale=1]
          beginscope[canvas is zy plane at x=0]
          fill[blue, opacity = 0.2] (0, 0) rectangle (6, 6);
          draw[gray!40] (0, 0) grid (6, 6);
          endscope

          beginscope[canvas is zx plane at y=0]
          fill[orange, opacity = 0.2] (0, 0) rectangle (6, 8);
          draw[gray!40] (0, 0) grid (6, 8);
          draw[black, -latex] (0, 0) -- (6.5, 0) node[left] $z$;

          draw[gray, -latex] (0, 0) -- (-3.5, 0);
          foreach z in 1,...,6 draw (z, -0.1) -- (z, 0.1) node[left]z;
          foreach z in -3,...,-1 draw[gray] (z, -0.1) -- (z, 0.1) node[left]z;

          endscope

          beginscope[canvas is yx plane at z=0]
          fill[yellow, opacity = 0.2] (0, 0) rectangle (6, 8);
          draw[gray!40] (0, 0) grid (6, 8);

          draw[black, -latex] (0, 0) -- (6.5, 0) node[above] $y$;
          draw[black, -latex] (0, 0) -- (0, 8.5) node[above] $x$;

          draw[gray, -latex] (0, 0) -- (0, -8.5);
          foreach x in 0,...,8 draw (-0.1, x) -- (0.1, x) node[right]x;
          foreach x in -8,...,-1 draw[gray] (-0.1, x) -- (0.1, x) node[right]x;

          draw[gray, -latex] (0, 0) -- (-4.5, 0);
          foreach y in 1,...,6 draw (y, -0.1) -- (y, 0.1) node[below]y;
          foreach y in -4,...,-1 draw[gray] (y, -0.1) -- (y, 0.1) node[below]-y;
          endscope

          fill[black] (2, 4, 3) circle (0.05) node[above]$P$;
          draw[red, thick] (0, 4, 0) -- (2, 4, 0);
          draw[blue, thick] (2, 4, 0) -- (2, 4, 3);
          draw[green, thick] (2, 0, 0) -- (2, 4, 0);

          endtikzpicture
          enddocument


          enter image description here






          share|improve this answer




















          • thank you so much! I'll analyse the code! One question... how can I erase the arrow in the final parts of the axis (with negative numbers)? look at the picture.
            – ryuk
            Dec 26 '18 at 15:08






          • 1




            @ryuk Change draw[gray, -latex] (0, 0) -- (-3.5, 0); to draw[gray] (0, 0) -- (-3.5, 0);
            – caverac
            Dec 26 '18 at 15:09










          • thanks...I mean I would like to see only one arrow for axis and not two ;)
            – ryuk
            Dec 26 '18 at 15:12







          • 1




            @ryuk Right, the change above should do it, it removes the arrow tip, but leaves the axis untouched otherwise
            – caverac
            Dec 26 '18 at 15:13
















          10














          This should get you started



          documentclassarticle
          usepackagetikz
          usetikzlibrary3d
          usetikzlibrarycalc

          begindocument

          begintikzpicture [x=(-0.6cm,-0.4cm), y=(1cm,0cm), z=(0cm,1cm), scale=1]
          beginscope[canvas is zy plane at x=0]
          fill[blue, opacity = 0.2] (0, 0) rectangle (6, 6);
          draw[gray!40] (0, 0) grid (6, 6);
          endscope

          beginscope[canvas is zx plane at y=0]
          fill[orange, opacity = 0.2] (0, 0) rectangle (6, 8);
          draw[gray!40] (0, 0) grid (6, 8);
          draw[black, -latex] (0, 0) -- (6.5, 0) node[left] $z$;

          draw[gray, -latex] (0, 0) -- (-3.5, 0);
          foreach z in 1,...,6 draw (z, -0.1) -- (z, 0.1) node[left]z;
          foreach z in -3,...,-1 draw[gray] (z, -0.1) -- (z, 0.1) node[left]z;

          endscope

          beginscope[canvas is yx plane at z=0]
          fill[yellow, opacity = 0.2] (0, 0) rectangle (6, 8);
          draw[gray!40] (0, 0) grid (6, 8);

          draw[black, -latex] (0, 0) -- (6.5, 0) node[above] $y$;
          draw[black, -latex] (0, 0) -- (0, 8.5) node[above] $x$;

          draw[gray, -latex] (0, 0) -- (0, -8.5);
          foreach x in 0,...,8 draw (-0.1, x) -- (0.1, x) node[right]x;
          foreach x in -8,...,-1 draw[gray] (-0.1, x) -- (0.1, x) node[right]x;

          draw[gray, -latex] (0, 0) -- (-4.5, 0);
          foreach y in 1,...,6 draw (y, -0.1) -- (y, 0.1) node[below]y;
          foreach y in -4,...,-1 draw[gray] (y, -0.1) -- (y, 0.1) node[below]-y;
          endscope

          fill[black] (2, 4, 3) circle (0.05) node[above]$P$;
          draw[red, thick] (0, 4, 0) -- (2, 4, 0);
          draw[blue, thick] (2, 4, 0) -- (2, 4, 3);
          draw[green, thick] (2, 0, 0) -- (2, 4, 0);

          endtikzpicture
          enddocument


          enter image description here






          share|improve this answer




















          • thank you so much! I'll analyse the code! One question... how can I erase the arrow in the final parts of the axis (with negative numbers)? look at the picture.
            – ryuk
            Dec 26 '18 at 15:08






          • 1




            @ryuk Change draw[gray, -latex] (0, 0) -- (-3.5, 0); to draw[gray] (0, 0) -- (-3.5, 0);
            – caverac
            Dec 26 '18 at 15:09










          • thanks...I mean I would like to see only one arrow for axis and not two ;)
            – ryuk
            Dec 26 '18 at 15:12







          • 1




            @ryuk Right, the change above should do it, it removes the arrow tip, but leaves the axis untouched otherwise
            – caverac
            Dec 26 '18 at 15:13














          10












          10








          10






          This should get you started



          documentclassarticle
          usepackagetikz
          usetikzlibrary3d
          usetikzlibrarycalc

          begindocument

          begintikzpicture [x=(-0.6cm,-0.4cm), y=(1cm,0cm), z=(0cm,1cm), scale=1]
          beginscope[canvas is zy plane at x=0]
          fill[blue, opacity = 0.2] (0, 0) rectangle (6, 6);
          draw[gray!40] (0, 0) grid (6, 6);
          endscope

          beginscope[canvas is zx plane at y=0]
          fill[orange, opacity = 0.2] (0, 0) rectangle (6, 8);
          draw[gray!40] (0, 0) grid (6, 8);
          draw[black, -latex] (0, 0) -- (6.5, 0) node[left] $z$;

          draw[gray, -latex] (0, 0) -- (-3.5, 0);
          foreach z in 1,...,6 draw (z, -0.1) -- (z, 0.1) node[left]z;
          foreach z in -3,...,-1 draw[gray] (z, -0.1) -- (z, 0.1) node[left]z;

          endscope

          beginscope[canvas is yx plane at z=0]
          fill[yellow, opacity = 0.2] (0, 0) rectangle (6, 8);
          draw[gray!40] (0, 0) grid (6, 8);

          draw[black, -latex] (0, 0) -- (6.5, 0) node[above] $y$;
          draw[black, -latex] (0, 0) -- (0, 8.5) node[above] $x$;

          draw[gray, -latex] (0, 0) -- (0, -8.5);
          foreach x in 0,...,8 draw (-0.1, x) -- (0.1, x) node[right]x;
          foreach x in -8,...,-1 draw[gray] (-0.1, x) -- (0.1, x) node[right]x;

          draw[gray, -latex] (0, 0) -- (-4.5, 0);
          foreach y in 1,...,6 draw (y, -0.1) -- (y, 0.1) node[below]y;
          foreach y in -4,...,-1 draw[gray] (y, -0.1) -- (y, 0.1) node[below]-y;
          endscope

          fill[black] (2, 4, 3) circle (0.05) node[above]$P$;
          draw[red, thick] (0, 4, 0) -- (2, 4, 0);
          draw[blue, thick] (2, 4, 0) -- (2, 4, 3);
          draw[green, thick] (2, 0, 0) -- (2, 4, 0);

          endtikzpicture
          enddocument


          enter image description here






          share|improve this answer












          This should get you started



          documentclassarticle
          usepackagetikz
          usetikzlibrary3d
          usetikzlibrarycalc

          begindocument

          begintikzpicture [x=(-0.6cm,-0.4cm), y=(1cm,0cm), z=(0cm,1cm), scale=1]
          beginscope[canvas is zy plane at x=0]
          fill[blue, opacity = 0.2] (0, 0) rectangle (6, 6);
          draw[gray!40] (0, 0) grid (6, 6);
          endscope

          beginscope[canvas is zx plane at y=0]
          fill[orange, opacity = 0.2] (0, 0) rectangle (6, 8);
          draw[gray!40] (0, 0) grid (6, 8);
          draw[black, -latex] (0, 0) -- (6.5, 0) node[left] $z$;

          draw[gray, -latex] (0, 0) -- (-3.5, 0);
          foreach z in 1,...,6 draw (z, -0.1) -- (z, 0.1) node[left]z;
          foreach z in -3,...,-1 draw[gray] (z, -0.1) -- (z, 0.1) node[left]z;

          endscope

          beginscope[canvas is yx plane at z=0]
          fill[yellow, opacity = 0.2] (0, 0) rectangle (6, 8);
          draw[gray!40] (0, 0) grid (6, 8);

          draw[black, -latex] (0, 0) -- (6.5, 0) node[above] $y$;
          draw[black, -latex] (0, 0) -- (0, 8.5) node[above] $x$;

          draw[gray, -latex] (0, 0) -- (0, -8.5);
          foreach x in 0,...,8 draw (-0.1, x) -- (0.1, x) node[right]x;
          foreach x in -8,...,-1 draw[gray] (-0.1, x) -- (0.1, x) node[right]x;

          draw[gray, -latex] (0, 0) -- (-4.5, 0);
          foreach y in 1,...,6 draw (y, -0.1) -- (y, 0.1) node[below]y;
          foreach y in -4,...,-1 draw[gray] (y, -0.1) -- (y, 0.1) node[below]-y;
          endscope

          fill[black] (2, 4, 3) circle (0.05) node[above]$P$;
          draw[red, thick] (0, 4, 0) -- (2, 4, 0);
          draw[blue, thick] (2, 4, 0) -- (2, 4, 3);
          draw[green, thick] (2, 0, 0) -- (2, 4, 0);

          endtikzpicture
          enddocument


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 26 '18 at 14:33









          caveraccaverac

          6,0051625




          6,0051625











          • thank you so much! I'll analyse the code! One question... how can I erase the arrow in the final parts of the axis (with negative numbers)? look at the picture.
            – ryuk
            Dec 26 '18 at 15:08






          • 1




            @ryuk Change draw[gray, -latex] (0, 0) -- (-3.5, 0); to draw[gray] (0, 0) -- (-3.5, 0);
            – caverac
            Dec 26 '18 at 15:09










          • thanks...I mean I would like to see only one arrow for axis and not two ;)
            – ryuk
            Dec 26 '18 at 15:12







          • 1




            @ryuk Right, the change above should do it, it removes the arrow tip, but leaves the axis untouched otherwise
            – caverac
            Dec 26 '18 at 15:13

















          • thank you so much! I'll analyse the code! One question... how can I erase the arrow in the final parts of the axis (with negative numbers)? look at the picture.
            – ryuk
            Dec 26 '18 at 15:08






          • 1




            @ryuk Change draw[gray, -latex] (0, 0) -- (-3.5, 0); to draw[gray] (0, 0) -- (-3.5, 0);
            – caverac
            Dec 26 '18 at 15:09










          • thanks...I mean I would like to see only one arrow for axis and not two ;)
            – ryuk
            Dec 26 '18 at 15:12







          • 1




            @ryuk Right, the change above should do it, it removes the arrow tip, but leaves the axis untouched otherwise
            – caverac
            Dec 26 '18 at 15:13
















          thank you so much! I'll analyse the code! One question... how can I erase the arrow in the final parts of the axis (with negative numbers)? look at the picture.
          – ryuk
          Dec 26 '18 at 15:08




          thank you so much! I'll analyse the code! One question... how can I erase the arrow in the final parts of the axis (with negative numbers)? look at the picture.
          – ryuk
          Dec 26 '18 at 15:08




          1




          1




          @ryuk Change draw[gray, -latex] (0, 0) -- (-3.5, 0); to draw[gray] (0, 0) -- (-3.5, 0);
          – caverac
          Dec 26 '18 at 15:09




          @ryuk Change draw[gray, -latex] (0, 0) -- (-3.5, 0); to draw[gray] (0, 0) -- (-3.5, 0);
          – caverac
          Dec 26 '18 at 15:09












          thanks...I mean I would like to see only one arrow for axis and not two ;)
          – ryuk
          Dec 26 '18 at 15:12





          thanks...I mean I would like to see only one arrow for axis and not two ;)
          – ryuk
          Dec 26 '18 at 15:12





          1




          1




          @ryuk Right, the change above should do it, it removes the arrow tip, but leaves the axis untouched otherwise
          – caverac
          Dec 26 '18 at 15:13





          @ryuk Right, the change above should do it, it removes the arrow tip, but leaves the axis untouched otherwise
          – caverac
          Dec 26 '18 at 15:13


















          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%2f467395%2frepresenting-3-points-also-with-negative-coordinates-in-a-3d-cartesian-plane%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

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay