See https://github.com/pydata/pandas/issues/7233 and https://github.com/matplotlib/matplotlib/issues/2259