bugfix for plot for string x values
- [ ] closes #18687
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

Matplotlib can handle string data, so `_get_xticks` does not need to convert strings to int