fix zoom issues in demag_gui.py