You are welcomed to check out [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1602.msg6216#msg6216]Ejs Open Source 2 Bar Magnet & Compass Model java applet[/url]

You can drag two magnets and rotate each one of them and find out the field pattern.