Figure 6:
Potential energy in the plane of the magnet
as a function of the polar angle
.