Spherical Coordinates in 3D Plane

For more figures related to the definition of coordinate systems, please have a look at the “coordinates” tag.

spherical_1

Edit and compile if you like:

\documentclass[border=3pt]{standalone}
%Drawing
\usepackage{tikz}
%3D
\usepackage{tikz-3dplot}
%Tikz Library
\usetikzlibrary{angles, quotes, intersections}
%Styles
\tikzset{axis/.style={thick,-latex}}
\tikzset{vec/.style={thick,blue}}
\tikzset{univec/.style={thick,red,-latex}}
%Notation
\usepackage{physics}
\usepackage{bm}
\begin{document}
\tdplotsetmaincoords{70}{110}
%
\pgfmathsetmacro{\thetavec}{48.17}
\pgfmathsetmacro{\phivec}{63.5}
%
\begin{tikzpicture}[tdplot_main_coords]
%Axis
\draw[axis] (0,0,0) -- (6.5,0,0) node [pos=1.1] {$x$};
\draw[axis] (0,0,0) -- (0,6,0) node [pos=1.05] {$y$};
\draw[axis] (0,0,0) -- (0,0,5.5) node [pos=1.05] {$z$};
%Unit Vectors
% \tdplotsetcoord{p}{1}{90}{\phivec}
% \draw[univec] (2,4,0) -- ($(p)+(2,4,0)$) node [pos=1.35] {$\vu*{\varpi}$};
\tdplotsetcoord{P'}{7}{\thetavec}{\phivec}
\draw[univec] (0,0,0) -- (P') node [pos=1.05] {$\vu{r}$};
\tdplotsetcoord{P''}{1}{90}{90+\phivec}
\draw[univec] (2,4,0) -- ($(P'') + (2,4,0)$) node [pos=1.3] {$\vu*{\phi}$};
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Click to download: spherical_1.tex
Open in Overleaf: spherical_1.tex
This file is available on GitHub.
See more on the author page of Alexandros Tsagkaropolulos.

Leave a Reply

Your email address will not be published.