How to autoscale the Y-axis if line hidden on Legend

Please see this discussion, re: only_visible