BUG: fix PeriodConverter issue when given a list of integers (GH9012)

For example coming up when [0, 1] is passed by axhline

Closes #9012