BUG: xtick labels didn't work some times 
use locally defined self._get_xticks instead of matplotlib default ax.get_xticks() 

actually fixes #18755  the other is unrelated

Can you include a test to ensure this stays fixed? And is #18755 the right issue? At a glance, I don't see how this would fix it.