matplotlib API internal usage change