Fix automatic xlims in line plots
 - [x] closes #11310, closes #11471, closes #15495
 - [x] tests added / passed
 - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff``
 - [x] whatsnew entry