Minor fix of a deprecated matplotlib feature that caused output to stderr.