Would you happen to have any demo matlab code of 3D field line mapping of a simple diametrically magnetized ring magnet?