COMPAT: Matplotlib 2.2 compatability
Summary of changes

- clean up version detection in compat
- Update timedelta tick formatting tests. Matplotlib fixed tick formatting of timedeltas so they're consistent with non-timedelta formatting.

closes #20031 