Created in November 2023 by Corentin Deprez. This code generates the plots giving the evolution of an anisotropic g-factor as function of the magnetic field orientation in the basis spanned by the principal axes of the g-tensor. The author used python v3.9.7, numpy v1.25.2 and matplotlib v3.7.0.