adapt matplotlib gitignore, which is more structured