updated mag spectrum plotting