How do I draw 3-D axes in TIKZ?












1















Can someone help me draw this? I need it to show the effect of a rotated polarizing component, and things always looks better in tikz, my my skills are sub-standard.



enter image description here










share|improve this question

























  • With tikz-3dplot this is really straightforward. Are you aware of this package?

    – marmot
    1 hour ago











  • no how does it work?

    – easychachi
    1 hour ago






  • 1





    Welcome to TeX.SX. When you post a question, please provide a "Minimal Working Example" (MWE) that starts with documentclass, includes all relevant usepackage commands, ends with end{document} and compiles without errors, even if it does not produce your desired output. On this site there is an expectation that posters will make an attempt at the solution (even if it's just a start), rather than just asking for someone to do it for them.

    – Sandy G
    46 mins ago
















1















Can someone help me draw this? I need it to show the effect of a rotated polarizing component, and things always looks better in tikz, my my skills are sub-standard.



enter image description here










share|improve this question

























  • With tikz-3dplot this is really straightforward. Are you aware of this package?

    – marmot
    1 hour ago











  • no how does it work?

    – easychachi
    1 hour ago






  • 1





    Welcome to TeX.SX. When you post a question, please provide a "Minimal Working Example" (MWE) that starts with documentclass, includes all relevant usepackage commands, ends with end{document} and compiles without errors, even if it does not produce your desired output. On this site there is an expectation that posters will make an attempt at the solution (even if it's just a start), rather than just asking for someone to do it for them.

    – Sandy G
    46 mins ago














1












1








1








Can someone help me draw this? I need it to show the effect of a rotated polarizing component, and things always looks better in tikz, my my skills are sub-standard.



enter image description here










share|improve this question
















Can someone help me draw this? I need it to show the effect of a rotated polarizing component, and things always looks better in tikz, my my skills are sub-standard.



enter image description here







tikz-pgf diagrams physics






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 4 mins ago









Davislor

6,4771329




6,4771329










asked 1 hour ago









easychachieasychachi

213




213













  • With tikz-3dplot this is really straightforward. Are you aware of this package?

    – marmot
    1 hour ago











  • no how does it work?

    – easychachi
    1 hour ago






  • 1





    Welcome to TeX.SX. When you post a question, please provide a "Minimal Working Example" (MWE) that starts with documentclass, includes all relevant usepackage commands, ends with end{document} and compiles without errors, even if it does not produce your desired output. On this site there is an expectation that posters will make an attempt at the solution (even if it's just a start), rather than just asking for someone to do it for them.

    – Sandy G
    46 mins ago



















  • With tikz-3dplot this is really straightforward. Are you aware of this package?

    – marmot
    1 hour ago











  • no how does it work?

    – easychachi
    1 hour ago






  • 1





    Welcome to TeX.SX. When you post a question, please provide a "Minimal Working Example" (MWE) that starts with documentclass, includes all relevant usepackage commands, ends with end{document} and compiles without errors, even if it does not produce your desired output. On this site there is an expectation that posters will make an attempt at the solution (even if it's just a start), rather than just asking for someone to do it for them.

    – Sandy G
    46 mins ago

















With tikz-3dplot this is really straightforward. Are you aware of this package?

– marmot
1 hour ago





With tikz-3dplot this is really straightforward. Are you aware of this package?

– marmot
1 hour ago













no how does it work?

– easychachi
1 hour ago





no how does it work?

– easychachi
1 hour ago




1




1





Welcome to TeX.SX. When you post a question, please provide a "Minimal Working Example" (MWE) that starts with documentclass, includes all relevant usepackage commands, ends with end{document} and compiles without errors, even if it does not produce your desired output. On this site there is an expectation that posters will make an attempt at the solution (even if it's just a start), rather than just asking for someone to do it for them.

– Sandy G
46 mins ago





Welcome to TeX.SX. When you post a question, please provide a "Minimal Working Example" (MWE) that starts with documentclass, includes all relevant usepackage commands, ends with end{document} and compiles without errors, even if it does not produce your desired output. On this site there is an expectation that posters will make an attempt at the solution (even if it's just a start), rather than just asking for someone to do it for them.

– Sandy G
46 mins ago










1 Answer
1






active

oldest

votes


















1














This is a rather basic task for the tikz-3dplot package and the 3d library. The package allows you to obtain orthographic projections for any view angles. The 3d library allows you to switch to a plane and project things therein. What I am not sure about is how to make sense of the primes attached to S vs. x and y so I just added some symbols.



documentclass[tikz,border=3.14mm]{standalone}
usepackage{tikz-3dplot}
usetikzlibrary{3d}
begin{document}
tdplotsetmaincoords{0}{0}
tdplotsetrotatedcoords{-30}{60}{45}
begin{tikzpicture}[tdplot_rotated_coords,
pics/.cd,
3d xy axes/.style={code={
draw[-stealth] (-3,0,0) -- (3,0,0) node[pos=1.05] {$x#1$};
draw[-stealth] (0,-3,0) -- (0,3,0) node[pos=1.05] {$y#1$};
node[canvas is xy plane at z=0] at (-1.5,-1.5) {$S#1$};
}}]
foreach Prime [count=Z] in {'',,}
{path (0,0,18-6*Z) pic {3d xy axes=Prime};
draw[red,-stealth] (0,0,15-6*Z) -- (0,0,21-6*Z);}
begin{scope}[canvas is xy plane at z=6,rotate=30]
draw[-stealth] (-3,0) -- (3,0) node[pos=1.05] {$x'$};
draw[-stealth] (0,-3) -- (0,3) node[pos=1.05] {$y'$};
draw (1,0) arc(0:-30:1) node[pos=0.5,right,transform shape]{$theta$};
end{scope}
end{tikzpicture}
end{document}


enter image description here






share|improve this answer

























    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%2f477243%2fhow-do-i-draw-3-d-axes-in-tikz%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









    1














    This is a rather basic task for the tikz-3dplot package and the 3d library. The package allows you to obtain orthographic projections for any view angles. The 3d library allows you to switch to a plane and project things therein. What I am not sure about is how to make sense of the primes attached to S vs. x and y so I just added some symbols.



    documentclass[tikz,border=3.14mm]{standalone}
    usepackage{tikz-3dplot}
    usetikzlibrary{3d}
    begin{document}
    tdplotsetmaincoords{0}{0}
    tdplotsetrotatedcoords{-30}{60}{45}
    begin{tikzpicture}[tdplot_rotated_coords,
    pics/.cd,
    3d xy axes/.style={code={
    draw[-stealth] (-3,0,0) -- (3,0,0) node[pos=1.05] {$x#1$};
    draw[-stealth] (0,-3,0) -- (0,3,0) node[pos=1.05] {$y#1$};
    node[canvas is xy plane at z=0] at (-1.5,-1.5) {$S#1$};
    }}]
    foreach Prime [count=Z] in {'',,}
    {path (0,0,18-6*Z) pic {3d xy axes=Prime};
    draw[red,-stealth] (0,0,15-6*Z) -- (0,0,21-6*Z);}
    begin{scope}[canvas is xy plane at z=6,rotate=30]
    draw[-stealth] (-3,0) -- (3,0) node[pos=1.05] {$x'$};
    draw[-stealth] (0,-3) -- (0,3) node[pos=1.05] {$y'$};
    draw (1,0) arc(0:-30:1) node[pos=0.5,right,transform shape]{$theta$};
    end{scope}
    end{tikzpicture}
    end{document}


    enter image description here






    share|improve this answer






























      1














      This is a rather basic task for the tikz-3dplot package and the 3d library. The package allows you to obtain orthographic projections for any view angles. The 3d library allows you to switch to a plane and project things therein. What I am not sure about is how to make sense of the primes attached to S vs. x and y so I just added some symbols.



      documentclass[tikz,border=3.14mm]{standalone}
      usepackage{tikz-3dplot}
      usetikzlibrary{3d}
      begin{document}
      tdplotsetmaincoords{0}{0}
      tdplotsetrotatedcoords{-30}{60}{45}
      begin{tikzpicture}[tdplot_rotated_coords,
      pics/.cd,
      3d xy axes/.style={code={
      draw[-stealth] (-3,0,0) -- (3,0,0) node[pos=1.05] {$x#1$};
      draw[-stealth] (0,-3,0) -- (0,3,0) node[pos=1.05] {$y#1$};
      node[canvas is xy plane at z=0] at (-1.5,-1.5) {$S#1$};
      }}]
      foreach Prime [count=Z] in {'',,}
      {path (0,0,18-6*Z) pic {3d xy axes=Prime};
      draw[red,-stealth] (0,0,15-6*Z) -- (0,0,21-6*Z);}
      begin{scope}[canvas is xy plane at z=6,rotate=30]
      draw[-stealth] (-3,0) -- (3,0) node[pos=1.05] {$x'$};
      draw[-stealth] (0,-3) -- (0,3) node[pos=1.05] {$y'$};
      draw (1,0) arc(0:-30:1) node[pos=0.5,right,transform shape]{$theta$};
      end{scope}
      end{tikzpicture}
      end{document}


      enter image description here






      share|improve this answer




























        1












        1








        1







        This is a rather basic task for the tikz-3dplot package and the 3d library. The package allows you to obtain orthographic projections for any view angles. The 3d library allows you to switch to a plane and project things therein. What I am not sure about is how to make sense of the primes attached to S vs. x and y so I just added some symbols.



        documentclass[tikz,border=3.14mm]{standalone}
        usepackage{tikz-3dplot}
        usetikzlibrary{3d}
        begin{document}
        tdplotsetmaincoords{0}{0}
        tdplotsetrotatedcoords{-30}{60}{45}
        begin{tikzpicture}[tdplot_rotated_coords,
        pics/.cd,
        3d xy axes/.style={code={
        draw[-stealth] (-3,0,0) -- (3,0,0) node[pos=1.05] {$x#1$};
        draw[-stealth] (0,-3,0) -- (0,3,0) node[pos=1.05] {$y#1$};
        node[canvas is xy plane at z=0] at (-1.5,-1.5) {$S#1$};
        }}]
        foreach Prime [count=Z] in {'',,}
        {path (0,0,18-6*Z) pic {3d xy axes=Prime};
        draw[red,-stealth] (0,0,15-6*Z) -- (0,0,21-6*Z);}
        begin{scope}[canvas is xy plane at z=6,rotate=30]
        draw[-stealth] (-3,0) -- (3,0) node[pos=1.05] {$x'$};
        draw[-stealth] (0,-3) -- (0,3) node[pos=1.05] {$y'$};
        draw (1,0) arc(0:-30:1) node[pos=0.5,right,transform shape]{$theta$};
        end{scope}
        end{tikzpicture}
        end{document}


        enter image description here






        share|improve this answer















        This is a rather basic task for the tikz-3dplot package and the 3d library. The package allows you to obtain orthographic projections for any view angles. The 3d library allows you to switch to a plane and project things therein. What I am not sure about is how to make sense of the primes attached to S vs. x and y so I just added some symbols.



        documentclass[tikz,border=3.14mm]{standalone}
        usepackage{tikz-3dplot}
        usetikzlibrary{3d}
        begin{document}
        tdplotsetmaincoords{0}{0}
        tdplotsetrotatedcoords{-30}{60}{45}
        begin{tikzpicture}[tdplot_rotated_coords,
        pics/.cd,
        3d xy axes/.style={code={
        draw[-stealth] (-3,0,0) -- (3,0,0) node[pos=1.05] {$x#1$};
        draw[-stealth] (0,-3,0) -- (0,3,0) node[pos=1.05] {$y#1$};
        node[canvas is xy plane at z=0] at (-1.5,-1.5) {$S#1$};
        }}]
        foreach Prime [count=Z] in {'',,}
        {path (0,0,18-6*Z) pic {3d xy axes=Prime};
        draw[red,-stealth] (0,0,15-6*Z) -- (0,0,21-6*Z);}
        begin{scope}[canvas is xy plane at z=6,rotate=30]
        draw[-stealth] (-3,0) -- (3,0) node[pos=1.05] {$x'$};
        draw[-stealth] (0,-3) -- (0,3) node[pos=1.05] {$y'$};
        draw (1,0) arc(0:-30:1) node[pos=0.5,right,transform shape]{$theta$};
        end{scope}
        end{tikzpicture}
        end{document}


        enter image description here







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 4 mins ago

























        answered 11 mins ago









        marmotmarmot

        104k4124236




        104k4124236






























            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f477243%2fhow-do-i-draw-3-d-axes-in-tikz%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

            A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

            Calculate evaluation metrics using cross_val_predict sklearn

            Insert data from modal to MySQL (multiple modal on website)