Matplotlib doesn't have scipy as a dependency, so we can't have this line in the example. On the plus side, it looks like this function isn't even used in the example.