I guess that makes sense. I would be worried that it might cover up something down the line, but that's probably just overthinking. It would also make that line even simpler if we do a short try-except block:

```
# Get major tick label size (assumes that's all we really care about!)
try:
    props['fontsize'] = axis.get_ticklabels()[0].get_fontsize()
except IndexError:
    props['fontsize'] = None
```