How do I draw 3-D axes in TIKZ?
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.
tikz-pgf diagrams physics
add a comment |
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.
tikz-pgf diagrams physics
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 withdocumentclass
, includes all relevantusepackage
commands, ends withend{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
add a comment |
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.
tikz-pgf diagrams physics
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.
tikz-pgf diagrams physics
tikz-pgf diagrams physics
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 withdocumentclass
, includes all relevantusepackage
commands, ends withend{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
add a comment |
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 withdocumentclass
, includes all relevantusepackage
commands, ends withend{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
add a comment |
1 Answer
1
active
oldest
votes
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}
add a comment |
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
});
}
});
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%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
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}
add a comment |
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}
add a comment |
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}
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}
edited 4 mins ago
answered 11 mins ago
marmotmarmot
104k4124236
104k4124236
add a comment |
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.
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%2f477243%2fhow-do-i-draw-3-d-axes-in-tikz%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
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 relevantusepackage
commands, ends withend{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