BF - correct location of allow_rasterization.

The code used the decorator `matplotlib.axes.allow_rasterization` which is part of the internal API of `matplotlib.axes` and has gone away since matplotlib/matplotlib#1931. The correct location to obtain this decorator is `matplotlib.artist.allow_rasterization`.