fix get_limits for log-scale axes