Add check for plot axis ranges