implementation of magnetic field plot