Fix for Matplotlib issues in TravisCI