changing axis scale on window resize