DOC: Fix visualization.rst flake8 issues
Removes a number of trailing whitespaces as well

- [x] closes #24181 
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
