Trying to fix matplotlib patching