We probably don't need both `rot` and `xrot` in the function signature.

I'd just keep it as `rot` (even though its inconsistent with `hist`), and in the function body check

```python
`xrot = kwargs.get('xrot') or rot`
```