I am modeling a Helmholtz Coil as two dipoles from far away and I want to plot the magnetic field.
$$\mathbf{B}(\mathbf{r}) = \frac{\mu_0 |\mathbf{m}|}{4\pi r^3}\left(2\cos\theta\,\hat{\mathbf{r}} + \sin\theta\,\hat{\boldsymbol{\theta}}\right)\, .$$
I am struggling to plot the magnetic field in spherical coordinates in Python. Can somebody show me an easy way to plot 3D functions in spherical coordinates?