I Hope someone can help me. I want to make a picture like this in latex. Everywhere I'm searching there are examples that are much too complicated, I think.
I can draw a circle, but LaTeX don't recognize it as a 3D-object. So I can't get a proper radius on it. I will give you my MWE but it's very minimal, I hope it don't bothers you to much for this time.
\documentclass{standalone}
\usepackage{tikz}
\usepackage{pgfplots}
\usetikzlibrary{quotes,angles,shapes,arrows}
\pgfplotsset{compat=1.11}
\tikzset{>=latex}
\pagestyle{empty}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
view={35}{15},
unit vector ratio=1 1 1,
ticks = none,
ymin=-2.8,
ymax=0,
xmax=2.8,
xmin=0,
zmin=0,
zmax=2,
axis lines=middle,
xlabel=$x$,
ylabel=$y$,
zlabel=$z$,
every axis x label/.style={at={(ticklabel* cs:1)},anchor=west,},
every axis y label/.style={at={(ticklabel* cs:0)},anchor=north east,},
every axis z label/.style={at={(ticklabel* cs:1)},anchor=south,},
x axis line style=-,
y axis line style=-,
z axis line style=-,
clip=false
]
\draw[->](0,0)--(-2,2) node[midway, fill=white]{$r$};
\shade[ball color = blue, opacity = 0.2] (0,0,0) circle [radius=2];
\draw (0,0,0) circle [radius=2];
\filldraw(0,0) circle (1pt) node[align=right,above,xshift=0.8em] {$G$};
\end{axis}
\end{tikzpicture}
\end{document}
Thank you in advance,
Kees



tikz-3dplotdoes have such a coordinate system. – Jun 26 '19 at 19:05